Math
Provides a secure Model Context Protocol server for evaluating mathematical expressions with robust grammar validation and comprehensive safety features.
소개
Math offers a secure and versatile Model Context Protocol (MCP) server designed for the precise evaluation of mathematical expressions. Engineered with a security-first approach, it rigorously validates all input against a comprehensive BNF grammar, whitelists functions, and sandboxes execution with timeout protection. Beyond basic arithmetic, it supports advanced features like trigonometric functions, variables, conditional logic, summation operations, and unit values, making it an ideal backend for applications requiring reliable and safe mathematical computations, especially for integration with AI agents.
주요 기능
- Security-First Design: Comprehensive grammar validation, function whitelisting, and sandboxed evaluation
- Extensive Mathematical Capabilities: Supports arithmetic, advanced functions, variables, and complex structures like arrays and summation
- MCP Integration: Offers 6 tools for expression evaluation and variable management, plus 3 resources for grammar and function documentation
- Real-time Validation & Error Reporting: Provides detailed feedback on expression syntax and evaluation
- 0 GitHub stars
- Session State & Configurability: Maintains persistent variable context across sessions and offers fine-grained control via CLI options
사용 사례
- Providing a secure and validated backend for applications requiring complex mathematical computations
- Integrating advanced mathematical evaluation capabilities into LLM agents and AI applications (e.g., Claude Desktop)
- Programmatically validating the syntax and evaluating user-provided mathematical expressions in a sandboxed environment