An MCP server for computational mathematics: number theory, number fields, class groups, modular forms, elliptic curves, exact linear algebra and polynomials, with Sage syntax, for AI agents (Sagebrush; MIT OR Apache-2.0)
pip install sagebrush-mcp==0.10.0 Copy PIP instructions
An MCP server that gives an AI agent a real computer algebra system for research mathematics, with Sage syntax and exact, verified results. It is Sagebrush: Rust engines, MIT OR Apache-2.0. You don't need Sage, PARI or FLINT, or a C compiler; the wheels cover Linux, macOS and Windows.
pip install sagebrush-mcp # or: uvx sagebrush-mcp Claude Code: claude mcp add sagebrush -- sagebrush-mcp
Claude Desktop, Cursor and other clients: in the MCP configuration,
{ "mcpServers": { "sagebrush": { "command": "sagebrush-mcp" } } } (uvx sagebrush-mcp as the command works without installing anything first.)
The results agree with Sage. The test suite compares 3,500 lines of output with Sage itself.
Each computation has a time limit (timeout, default 60 s). When it expires, the computation is interrupted and the session keeps its variables.
This package is a thin entry point: the server is sagebrush.mcp_server in the sagebrush package, so pip install sagebrush also provides the sagebrush-mcp command.
Both files in this release have provenance metadata.
ai agents class group claude computer algebra mathematics mcp model context protocol modular forms number theory sage
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




