Server data from the Official MCP Registry
MCP server wrapping SageMath's full computer algebra system — 10 symbolic-math tools for LLMs.
MCP server wrapping SageMath's full computer algebra system — 10 symbolic-math tools for LLMs.
Valid MCP server (4 strong, 7 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
15 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Set these up before or after installing:
Environment variable: SAGE_TIMEOUT
Environment variable: SAGE_DOCKER_IMAGE
Environment variable: TRANSPORT
Environment variable: PORT
Environment variable: API_KEY
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-justice8096-sagemath-mcp-server": {
"env": {
"PORT": "your-port-here",
"API_KEY": "your-api-key-here",
"TRANSPORT": "your-transport-here",
"SAGE_TIMEOUT": "your-sage-timeout-here",
"SAGE_DOCKER_IMAGE": "your-sage-docker-image-here"
},
"args": [
"-y",
"@justice8096/sagemath-mcp-server"
],
"command": "npx"
}
}
}From the project's GitHub README.
A Model Context Protocol server that exposes SageMath — a 100+ package computer algebra system — to LLM clients such as Claude. Where most "math MCPs" wrap a single library (SymPy, mathjs), this one subprocess-wraps the entire SageMath stack so the model has access to genuine symbolic mathematics, not arithmetic.
LLMs are bad at exact arithmetic, brittle with multi-step algebra, and unreliable when symbolic manipulation matters. The right pattern is to keep the conceptual reasoning in the model and delegate mechanical computation to a tool — the same trick a person with dyscalculia uses with a calculator. SageMath gives you the broadest tool surface for that delegation: factoring, integration, eigenvalues, number theory, LaTeX rendering, and plotting all behind one interface.
| Tool | Description |
|---|---|
sage_evaluate | Run an arbitrary SageMath expression. |
sage_solve_equation | Solve algebraic / transcendental equations symbolically. |
sage_differentiate | Compute derivatives (any order, any variable). |
sage_integrate | Indefinite and definite integrals. |
sage_simplify | Simplify expressions (default, full, trig, rational). |
sage_factor | Factor polynomials or integers. |
sage_matrix_ops | Determinant, inverse, eigenvalues, rank, RREF, transpose over QQ / RR / ZZ / CC. |
sage_plot | Plot an expression and return a base64 PNG. |
sage_latex_convert | Convert a SageMath expression to LaTeX. |
sage_number_theory | is_prime, next_prime, factor, euler_phi, gcd, lcm, prime_range, sigma, moebius. |
All tools follow the same schema pattern (see src/schemas/common.ts).
The server needs either a local SageMath install or Docker available on the host so it can spawn a SageMath process.
npm install -g @justice8096/sagemath-mcp-server
# requires `sage` on PATH — see https://doc.sagemath.org/html/en/installation/
sagemath-mcp
docker compose up
# uses the official sagemath/sagemath image; the server runs inside the container
git clone https://github.com/justice8096/sagemath-mcp-server.git
cd sagemath-mcp-server
npm install
npm run build
npm start
Add to ~/.claude.json (or the equivalent Claude Desktop config):
{
"mcpServers": {
"sagemath": {
"command": "sagemath-mcp"
}
}
}
TRANSPORT=http API_KEY=your-secret-key npm start
Then point an MCP HTTP client at http://<host>:3000/mcp with the matching API_KEY header.
API_KEY env var).src/i18n.ts and locales/.build.ts emits Claude plugin, OpenAI function-calling, n8n node, MCP server descriptor, CLI tool, and YAML prompt-library outputs from the same source manifest.| Env var | Default | Purpose |
|---|---|---|
TRANSPORT | stdio | stdio or http. |
PORT | 3000 | HTTP port when TRANSPORT=http. |
API_KEY | (none) | If set, HTTP requests must include matching API_KEY header. |
SAGE_TIMEOUT | 30000 | Per-call SageMath timeout in milliseconds. |
SAGE_DOCKER_IMAGE | sagemath/sagemath:latest | Image used when SageMath isn't installed locally. |
src/services/sage-executor.ts.API_KEY if set — there is no default credential.SECURITY.md and THREAT_MODEL.md for the full posture.audits/: SAST/DAST scan, supply-chain audit, CWE mapping, LLM-compliance report, contribution analysis.This wrapper is released under CC0-1.0 (public domain). SageMath itself remains GPL-3.0; the subprocess execution model keeps the licenses independent. See SECURITY.md and the project's compliance analysis for the legal reasoning.
v1.0.0 — public release. The wrapper layer is stable; the SageMath surface is feature-rich and stable upstream. File issues at https://github.com/justice8096/sagemath-mcp-server/issues.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.