Math MCP Learning — Claude Code MCP server: math tools
This MCP server gives an agent math, statistics, matrix, and plotting tools with a saved workspace. Use it for calculations, charts, or guided formula work.
claude mcp add --transport http math-mcp-learning-server https://math-mcp.fastmcp.app/mcpWhat Math MCP Learning does
Math MCP Learning adds 17 tools for expression evaluation, statistics, compound interest, unit conversion, and matrix operations. It can draw function plots, histograms, line charts, scatter plots, box plots, and financial charts. Calculations can be saved and retrieved through a persistent workspace.
The server also exposes resources for calculation history, active variables, constants, tool metadata, and health checks. Its prompts include math_tutor and formula_explainer. You can connect to https://math-mcp.fastmcp.app/mcp or run the server locally with uvx; the local option therefore depends on having that command ready. calc_expression accepts a restricted set of functions and characters, while file access stays inside the designated workspace directory.
What it helps with
- evaluate an expression and save the result
- summarize a dataset with statistical measures
- multiply or invert matrices
- plot a function or statistical distribution
- convert length, weight, or temperature units
Example prompts for the agent
- Calculate the mean, median, and standard deviation for the numbers in my message.
- Plot
sin(x)and explain the key points on the chart. - Save this calculation to the workspace, then load it in my next request.
How to install Math MCP Learning
1Platform CLI: remote server
claude mcp add --transport http math-mcp-learning-server https://math-mcp.fastmcp.app/mcp2Platform CLI
claude mcp add math-mcp-learning -- uvx math-mcp-learning-serveruvx runs the command named after the package; if the README names another one, use uvx --from math-mcp-learning-server <command>
1Platform CLI: remote server
codex mcp add math-mcp-learning --url https://math-mcp.fastmcp.app/mcp2Platform CLI
codex mcp add math-mcp-learning -- uvx math-mcp-learning-serveruvx runs the command named after the package; if the README names another one, use uvx --from math-mcp-learning-server <command>
Config file
{
"mcpServers": {
"math-mcp-learning": {
"url": "https://math-mcp.fastmcp.app/mcp"
}
}
}{
"mcpServers": {
"math-mcp-learning": {
"command": "uvx",
"args": [
"math-mcp-learning-server"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from math-mcp-learning-server <command>
Config file
{
"servers": {
"math-mcp-learning": {
"type": "http",
"url": "https://math-mcp.fastmcp.app/mcp"
}
}
}{
"servers": {
"math-mcp-learning": {
"type": "stdio",
"command": "uvx",
"args": [
"math-mcp-learning-server"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from math-mcp-learning-server <command>
1Platform CLI: remote server
gemini mcp add -t http math-mcp-learning https://math-mcp.fastmcp.app/mcp2Platform CLI
gemini mcp add math-mcp-learning uvx math-mcp-learning-serveruvx runs the command named after the package; if the README names another one, use uvx --from math-mcp-learning-server <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Math MCP Learning
How do I install Math MCP Learning in Claude Code?
For the hosted connection, run claude mcp add --transport http math-mcp-learning-server https://math-mcp.fastmcp.app/mcp.
What does Math MCP Learning do?
It provides tools for expressions, statistics, matrices, unit conversion, and charts. The workspace stores calculations, while resources expose history and active variables.
What is the difference between the hosted and local modes?
The hosted mode connects through https://math-mcp.fastmcp.app/mcp. The local mode starts through uvx.