step-by-step-math
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@step-by-step-mathintegrate x**2*sin(x) from 0 to pi and check the antiderivative"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
step-by-step-math
MCP server that solves math step by step with a symbolic engine and renders each step on a visual whiteboard.
Status: work in progress. Right now it exposes three tools backed by SymPy:
differentiate,integrateandverify_antiderivative. Step-by-step solutions and the whiteboard are coming next.
Requirements
Python 3.12+
Related MCP server: Symath-MCP
Run locally
uv sync
uv run pytest # run the tests
uv run step-by-step-math # start the MCP server over stdioTry it with MCP Inspector
npx @modelcontextprotocol/inspector uv --directory /path/to/step-by-step-math run step-by-step-mathUse it from Claude Code
claude mcp add step-by-step-math -- uv --directory /path/to/step-by-step-math run step-by-step-mathTools
Tool | Input | Output |
|
| result as text and LaTeX |
|
| antiderivative |
|
|
|
Expressions use SymPy syntax (x**2, exp(x), sin(x), log(x)); sen, tg and ln are accepted too.
Configuration
Each computation runs in a separate process that is killed if it exceeds its limits.
Variable | Default | Meaning |
|
| seconds per computation |
|
| memory limit per computation ( |
|
| computations running at the same time |
|
|
|
| — | required with |
|
| HTTP port (set by Railway) |
Deploy
The repo includes a Dockerfile (uv, python:3.14-slim) that starts the server over streamable HTTP:
MCP endpoint:
https://<your-domain>/mcp/<STEP_BY_STEP_MATH_PATH_TOKEN>Health check:
GET /health
The full MCP URL is the secret. Custom connectors in claude.ai and ChatGPT cannot reliably send a fixed auth header, so the server is protected by an unguessable path segment instead. Anyone with the URL can use the server: don't share it, and rotate the token (redeploy with a new value) if it leaks. Any other path under /mcp returns 404, and request paths are not logged.
Run the image locally:
podman build -t step-by-step-math . # or docker
TOKEN=$(python3 -c "import secrets; print(secrets.token_urlsafe(32))")
podman run --rm -p 8000:8000 -e STEP_BY_STEP_MATH_PATH_TOKEN="$TOKEN" step-by-step-math
npx @modelcontextprotocol/inspector --cli "http://127.0.0.1:8000/mcp/$TOKEN" --transport http --method tools/listOn Railway: deploy the repo (the Dockerfile is detected automatically), set STEP_BY_STEP_MATH_PATH_TOKEN, generate a public domain and set the health check path to /health. Railway sets PORT.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Math.js MCP — wraps the mathjs.org API (free, no auth)
Evaluate, simplify, and differentiate mathematical expressions.
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Exact arithmetic, algebra, calculus, physics, chemistry and finance with a checkable formula.
Related MCP Servers
- AlicenseCqualityCmaintenanceAn MCP server that provides access to SymPy's symbolic mathematics library for advanced algebraic computations. It enables users to perform complex tasks such as symbolic simplification, calculus, equation solving, matrix operations, and number theory.10042 PyPIMIT
- AlicenseAqualityDmaintenanceA symbolic mathematics MCP server supporting calculus, linear algebra, number theory, statistics, and unit conversion via natural language.8MIT
- AlicenseAqualityCmaintenanceEnables advanced mathematics operations including linear algebra, vector math, symbolic computation, and calculus through MCP tools. Designed for use with Claude and other MCP-compatible LLMs.192MIT
- AlicenseNot gradedqualityAmaintenanceProvides a token-efficient exact math engine for AI agents, enabling computation of derivatives, integrals, equations, and optimized Python/NumPy code via a single MCP tool.6MIT