
Calculator Mcp Server
A hardened math.js wrapper that gives Claude a single `calculate` tool for evaluation, symbolic simplification, and derivatives. Handles arithmetic, trig, matrices, unit conversion, and more with configurable precision and variable scoping. Built with sandbox isolation (disabled dangerous functions, vm context with timeout, input validation blocking semicolons and prototype pollution). Ships as both stdio and streamable HTTP with a public hosted instance at calculator.caseyjhand.com, so you can point Claude at it without installing anything. Reach for this when you need Claude to crunch numbers, simplify algebraic expressions, or compute symbolic derivatives without writing your own math service.
- GitHub stars
- 3
- tool
- 1
- transport
- STDIO, HTTP
- env vars
- 9
- last updated
- Nov 12, 2026
Install
From registry metadata$ npx add-mcp https://calculator.caseyjhand.com/mcp --name calculatorRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http calculator https://calculator.caseyjhand.com/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 1 toolsVerified live against the running server on Nov 13, 2026.
calculateEvaluate math expressions, simplify algebraic expressions, or compute symbolic derivatives. One expression per call. Supports arithmetic, trigonometry, statistics, matrices, linear systems, polynomial roots, complex numbers, units, combinatorics, calendar dates (quoted YYYY-MM...6 params
Evaluate math expressions, simplify algebraic expressions, or compute symbolic derivatives. One expression per call. Supports arithmetic, trigonometry, statistics, matrices, linear systems, polynomial roots, complex numbers, units, combinatorics, calendar dates (quoted YYYY-MM...
expression*stringnumericTypestringnumber · BigNumber · Fractiondefault: numberoperationstringevaluate · simplify · derivativedefault: evaluateprecisionvaluescopeobjectvariablevalueSponsors
Configuration
CALC_MAX_EXPRESSION_LENGTHdefault: 4000Maximum allowed expression string length.
CALC_EVALUATION_TIMEOUT_MSdefault: 5000Maximum evaluation time in milliseconds.
CALC_MAX_RESULT_LENGTHdefault: 100000Maximum result string length in characters.
MCP_LOG_LEVELdefault: infoSets the minimum log level for output (e.g., 'debug', 'info', 'warning').
MCP_TRANSPORT_TYPEdefault: httpSelects the HTTP transport.
MCP_HTTP_HOSTdefault: 127.0.0.1The hostname for the HTTP server.
MCP_HTTP_PORTdefault: 3010The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHdefault: /mcpThe endpoint path for the MCP server.
MCP_AUTH_MODEdefault: noneAuthentication mode to use: 'none', 'jwt', or 'oauth'.
Readme
@cyanheads/calculator-mcp-server
Evaluate, simplify, and differentiate mathematical expressions via MCP. STDIO or Streamable HTTP.
Details
- Repository
- github.com/cyanheads/calculator-mcp-server
- Package
@cyanheads/calculator-mcp-server- Transport
- STDIO, HTTP
- Registry
- MCP registry, active
- Resources
- 2
- Tools verified
- Nov 13, 2026
More from cyanheads
- Congressgov Mcp Server2
- Nws Weather Mcp Server2
- Obsidian Mcp Server705
- Toolkit Mcp Server20
- Nhtsa Vehicle Safety Mcp Server3
- Eur Lex Mcp Server12
- Hn Mcp Server7
- Git Mcp Server245
- Secedgar Mcp Server11
- Gdelt Mcp Server10
- Eurostat Mcp Server9
- Open Meteo Mcp Server13
- Pubchem Mcp Server13
- Gutenberg Mcp Server6
- Libofcongress Mcp Server6
- Orcid Mcp Server6
- Protein Mcp Server6
- Wikipedia Mcp Server6
- Cdc Health Mcp Server5
- Usaspending Mcp Server5
- Openstreetmap Mcp Server9
- Biorxiv Mcp Server4
- Brapi Mcp Server4
- Courtlistener Mcp Server4