chuk-mcp-math-server
Verified Safeby chrishayuk
Overview
Provides a highly configurable, high-performance server for a wide range of mathematical computations via the Mathematical Computation Protocol (MCP).
Installation
uvx chuk-mcp-math-serverEnvironment Variables
- MCP_SERVER_TRANSPORT
- MCP_SERVER_PORT
- MCP_SERVER_HOST
- MCP_SERVER_LOG_LEVEL
- MCP_SERVER_CACHE_STRATEGY
- MCP_SERVER_CACHE_SIZE
- MCP_SERVER_NAME
- MCP_MATH_TRANSPORT
- MCP_MATH_PORT
- MCP_MATH_HOST
- MCP_MATH_CACHE_STRATEGY
- MCP_MATH_CACHE_SIZE
- MCP_MATH_LOG_LEVEL
- MCP_MATH_TIMEOUT
- MCP_MATH_MAX_CONCURRENT
- MCP_MATH_ENABLE_TOOLS
- MCP_MATH_ENABLE_PROMPTS
- MCP_MATH_ENABLE_RESOURCES
- MCP_MATH_FUNCTION_ALLOWLIST
- MCP_MATH_FUNCTION_DENYLIST
- MCP_MATH_DOMAIN_ALLOWLIST
- MCP_MATH_DOMAIN_DENYLIST
- MCP_MATH_CATEGORY_ALLOWLIST
- MCP_MATH_CATEGORY_DENYLIST
- PYTHONDONTWRITEBYTECODE
- PYTHONUNBUFFERED
Security Notes
The server's core functionality involves exposing a controlled set of mathematical functions from the `chuk-mcp-math` library, which limits the risk of arbitrary code execution. Configuration is managed via Pydantic models, offering type-safe validation. The default host binding of '0.0.0.0' is noted with `nosec B104` (Bandit warning) but is a common and often necessary default for containerized services; it's explicitly documented. Default `enable_cors: true` is permissive but typical for an API. `rate_limit_enabled` defaults to `false`, which could be a concern in production without external rate limiting. There is no usage of `eval()` or similar dangerous functions on arbitrary user input. The dynamic tool registration is based on trusted function references, not arbitrary strings. Overall, the design prioritizes safety by filtering and exposing well-defined operations.
Similar Servers
claude-faf-mcp
Provides AI-optimized context for software projects to large language models, enhancing collaboration and project understanding via 50+ specialized tools within Claude Desktop workflows.
unified-thinking
A Model Context Protocol (MCP) server that consolidates multiple cognitive thinking patterns into a single Go-based implementation with 85 specialized reasoning tools, offering advanced AI capabilities like multi-mode reasoning, agentic tool-calling, knowledge graphs, and adaptive learning.
mcp-exercise
Provides basic arithmetic operations as a Model Context Protocol (MCP) API server over HTTP.
mcp-math-server
A minimal Model Context Protocol (MCP) server designed to expose basic mathematical tools to AI models.