An MCP server that exposes SageMath to LLM clients by running SageMath as a subprocess, enabling symbolic math operations like solving equations, differentiation, integration, factoring, matrix operations, plotting, and LaTeX conversion. It supports stdio and HTTP transport, with optional API-key protection for HTTP.
From the registry: MCP server wrapping SageMath's full computer algebra system — 10 symbolic-math tools for LLMs.
$ npm install -g @justice8096/sagemath-mcp-serverhttps://www.npmjs.com/package/@justice8096/sagemath-mcp-serverPlease install the `sagemath-mcp-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Node.js 18 or later** — Node.js version 18 or newer is required to run the server.
- **Install the MCP server package** — Install the published npm package globally so the `sagemath-mcp` command is available. Run: `npm install -g @justice8096/sagemath-mcp-server` (https://www.npmjs.com/package/@justice8096/sagemath-mcp-server)
- **Provide SageMath runtime** — The server needs SageMath available either as a local `sage` executable on PATH or via Docker on the host. For the preferred stdio setup shown in the README, local SageMath on PATH is the simplest portable option. (https://doc.sagemath.org/html/en/installation/)
Canonical MCP server config (stdio transport):
- command: `sagemath-mcp`
- args: []
- optional environment variables:
- `TRANSPORT`: Transport mode. Defaults to `stdio`; set only if you need to override it. (example: `stdio`)
- `SAGE_TIMEOUT`: Per-call SageMath timeout in milliseconds. (example: `<timeout-ms>`)
- `SAGE_DOCKER_IMAGE`: Docker image to use when SageMath is not installed locally. (example: `<your-sagemath-docker-image>`)
Note: The README documents both stdio and HTTP modes. The canonical local MCP client configuration is stdio with `command: sagemath-mcp`. For HTTP mode, start the server with `TRANSPORT=http`; it listens on `/mcp`, defaults to port `3000`, and may require an `API_KEY` header if `API_KEY` is set. HTTP env vars mentioned in the README are `TRANSPORT`, `PORT`, and optional `API_KEY`.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.API_KEYrequiredRequired for HTTP transport if set; incoming HTTP requests must include the matching API_KEY header.AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.