sagemath-mcp

XBP-Europe/sagemath-mcp
★ 12 stars Python AI/LLM Updated today ✗ Risk
Stateful SageMath MCP server: 37 tools for symbolic math, algebra, number theory, graphs and plotting. A persistent Sage session per client, an AST policy in front of it, and a hardened container as the real boundary.
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "sagemath-mcp": {
      "command": "uvx",
      "args": [
        "sagemath-mcp"
      ]
    }
  }
}

Or install with pip: pip install sagemath-mcp

README Excerpt

<!-- mcp-name: io.github.XBP-Europe/sagemath-mcp --> A universal mathematics [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server that gives LLM clients full access to [SageMath](https://www.sagemath.org/) --- one of the most comprehensive open-source mathematics systems available. Built on [FastMCP 3.x](https://gofastmcp.com/), the server maintains a dedicated SageMath process for each MCP session so variables, functions, and assumptions persist across tool calls.

Tools (20)

INFOSAGEMATH_MCP_EVAL_TIMEOUTSAGEMATH_MCP_FORCE_PYTHON_WORKERSAGEMATH_MCP_IDLE_TTLSAGEMATH_MCP_MAX_STDOUTSAGEMATH_MCP_PURE_PYTHONSAGEMATH_MCP_SAGE_BINARYSAGEMATH_MCP_SECURITY_ALLOWED_IMPORTSSAGEMATH_MCP_SECURITY_ALLOWED_IMPORT_PREFIXESSAGEMATH_MCP_SECURITY_ALLOW_IMPORTSSAGEMATH_MCP_SECURITY_ENABLEDSAGEMATH_MCP_SECURITY_FORBID_GLOBALSAGEMATH_MCP_SECURITY_FORBID_NONLOCALSAGEMATH_MCP_SECURITY_LOG_VIOLATIONSSAGEMATH_MCP_SECURITY_MAX_AST_DEPTHSAGEMATH_MCP_SECURITY_MAX_AST_NODESSAGEMATH_MCP_SECURITY_MAX_SOURCESAGEMATH_MCP_SHUTDOWN_GRACESAGEMATH_MCP_STARTUPboolean_algebra_operation

Topics

ai-toolscasclaudecomputer-algebrafastmcpllmmathmathematicsmcpmcp-servermodel-context-protocolpythonsagesagemathsymbolic-computation