math-mcp-learning-server
Verified Safeby clouatre-labs
Overview
An educational Model Context Protocol (MCP) server providing persistent mathematical calculations, statistical analysis, unit conversions, and data visualizations, primarily for learning and agent interaction.
Installation
uvx math-mcp-learning-serverEnvironment Variables
- MATH_TIMEOUT
- MCP_RATE_LIMIT_PER_MINUTE
- MAX_EXPRESSION_LENGTH
- MAX_STRING_PARAM_LENGTH
- MAX_ARRAY_SIZE
- MAX_GROUPS_COUNT
- MAX_GROUP_SIZE
- MAX_VARIABLE_NAME_LENGTH
- MAX_DAYS_FINANCIAL
Security Notes
The server employs 'eval()' for mathematical expressions but does so within a heavily sandboxed environment. This includes whitelisting allowed characters and math functions, blocking dangerous keywords ('import', 'exec', 'eval', 'open', 'file'), and restricting the 'eval' global scope. Comprehensive input validation using Pydantic, DoS prevention via length/size limits (expressions, arrays, matrices), and rate limiting are implemented. File system operations are confined to a user-specific workspace directory. 'SECURITY.md' provides clear documentation on these measures.
Similar Servers
mcp-for-beginners
Building custom Model Context Protocol (MCP) servers for AI agent development, including weather data retrieval and GitHub repository automation.
mcp-compose
This server provides a robust example of OAuth2 authentication for MCP (Model Context Protocol) servers, using GitHub as the identity provider. It demonstrates secure multi-server management, protocol translation, and integration with AI agents for tool invocation.
chuk-mcp-math-server
Provides a highly configurable, high-performance server for a wide range of mathematical computations via the Mathematical Computation Protocol (MCP).
mcp-servers
Provides current weather conditions and forecasts from the Open-Meteo API for a given geographical location.