Back to Home
chrishayuk icon

chuk-mcp-math-server

Verified Safe

by chrishayuk

Overview

Provides a highly configurable, high-performance server for a wide range of mathematical computations via the Mathematical Computation Protocol (MCP).

Installation

Run Command
uvx chuk-mcp-math-server

Environment 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

Stats

Interest Score32
Security Score9
Cost ClassLow
Stars2
Forks0
Last Update2025-12-07

Tags

mathematicsservermcpapipython