SageMath MCP server
Stateful SageMath MCP server with 40 tools and a sandboxed Sage session per client.
not scanned yet
15 stars386 downloads/wk
Reviews
Write oneNobody has reviewed SageMath yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
SageMath tools
No tool declarations could be read from the package source. They show once the server is installed.
What the publisher says
From the SageMath repository's README, as published. We do not edit it. Read it on GitHub
SageMath MCP Server
<!-- mcp-name: io.github.XBP-Europe/sagemath-mcp -->
A Model Context Protocol server that gives an LLM a sandboxed mathematical subset of SageMath — symbolic calculus, number theory, linear algebra, ODEs, plotting, combinatorics, graphs, groups, elliptic curves, and more. Each MCP session gets a dedicated Sage worker process, so variables, functions, and assumptions persist across tool calls. It ships 40 MCP tools, one of which — verify_claim — re-checks a stated result through a proof ladder and answers proved / refuted / supported / undecided with its evidence.
Caller code is deny-by-default: the full breadth of Sage mathematics is reachable, but imports, the external CAS interfaces, and the file / display / persistence primitives are not. The policy accepts 98.8% of SageMath's own 432,878 documented doctest examples (4,366 in-scope refusals, every one attributed to a named rule; 98.9% of 433,289 on the passagemath runtime) while refusing the rest — measured on every CI run (see Security).
Full manual: USAGE.md — every tool's parameters and examples, how code is interpreted, and the security model in depth.
Install & run
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Grade history
- 2026-09-19restoreC → Bscore 75: eval / new Function used; subprocess with shell=True
Install directly
claude mcp add sagemath-mcp -- uvx sagemath-mcp
SageMath: common questions
- Is SageMath MCP server safe?
- Mostly: it is graded B (75/100). Read the SageMath safety report
- How do I install SageMath?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does SageMath need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is SageMath maintained?
- The last commit was 2 days ago (2026-09-19). The latest release is v0.8.3.