symath
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., "@symath differentiate sin(x)^2 + x^3"
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.
SyMath MCP
SyMath MCP is a high-precision mathematics server for MCP clients. It gives LLMs a reliable calculator layer for exact integer work, configurable decimal precision, symbolic derivatives and simplification, numerical calculus, statistics, number theory, and common LaTeX-style math input.
Features
High-precision expression evaluation powered by
mathjsBigNumber mode.Common LaTeX normalization, including
\frac{},\sqrt{}, trig/log functions,\pi,\cdot, and braced powers.Dedicated tools for arithmetic, statistics, number theory, and calculus.
Symbolic derivative and simplification support.
Exact integer algorithms using
BigIntfor gcd, lcm, prime checks, factorization, modular exponentiation, and modular inverse.Structured errors for edge cases such as division by zero, invalid domains, malformed LaTeX, and non-integer number theory input.
Official MCP transports:
stdiofor local desktop clients.Streamable HTTP at
/mcpfor remote or local HTTP clients.Legacy HTTP+SSE for older clients that have not migrated yet.
Related MCP server: Math MCP Server
Install
npm installAfter npm publication, users can run it without cloning:
npx symath-mcpRun Locally
stdio
Use this for Claude Desktop and other local MCP clients that launch a command.
npm startEquivalent direct command:
node /Users/fengling/AiProjects/symath/src/stdio.jsStreamable HTTP
Use this for clients that connect to an MCP URL.
npm run start:httpDefaults:
URL:
http://127.0.0.1:3000/mcpHealth check:
http://127.0.0.1:3000/health
Configuration:
HOST=0.0.0.0 PORT=3000 MCP_PATH=/mcp npm run start:httpLegacy SSE
SSE is deprecated by the MCP SDK, but some older clients still support it.
npm run start:sseDefaults:
SSE endpoint:
http://127.0.0.1:3000/mcpMessages endpoint:
http://127.0.0.1:3000/messages
Configuration:
HOST=0.0.0.0 PORT=3000 SSE_PATH=/mcp MESSAGES_PATH=/messages npm run start:sseClient Configuration
Claude Desktop, local clone
Add this to Claude Desktop's MCP configuration and restart Claude Desktop:
{
"mcpServers": {
"symath": {
"command": "node",
"args": ["/Users/fengling/AiProjects/symath/src/stdio.js"]
}
}
}Claude Desktop, after npm publication
{
"mcpServers": {
"symath": {
"command": "npx",
"args": ["-y", "symath-mcp"]
}
}
}MCP clients with Streamable HTTP support
Start the HTTP server:
npm run start:httpThen configure the client URL:
http://127.0.0.1:3000/mcpFor a remote deployment, replace the URL with your public HTTPS endpoint, for example:
https://your-domain.example/mcpOlder SSE clients
Start the SSE server:
npm run start:sseConfigure:
SSE URL: http://127.0.0.1:3000/mcp
Messages URL: http://127.0.0.1:3000/messagesPublish
GitHub
git add .
git commit -m "Support all MCP transports"
git pushnpm
Log in once:
npm loginPublish:
npm publish --access publicPackage binaries:
symath-mcp: stdio server.symath-mcp-http: Streamable HTTP server.symath-mcp-sse: legacy SSE server.
Tools
calculate: Evaluate a math expression or common LaTeX expression at configurable precision.arithmetic: Run basic arithmetic operations with explicit operands.statistics: Compute descriptive statistics over numeric data.number_theory: Run exact integer operations such as gcd, lcm, primality, factorization, modular exponentiation, modular inverse, and Euler totient.calculus: Differentiate symbolically, simplify symbolically, or compute a definite integral numerically.latex_to_expression: Convert supported LaTeX math syntax to amathjsexpression.
Examples
{
"expression": "\\frac{1}{3} + \\sqrt{2}",
"precision": 80
}{
"operation": "modPow",
"values": ["7", "560", "561"]
}{
"operation": "derivative",
"expression": "sin(x)^2 + x^3",
"variable": "x"
}Test
npm test
node --check src/server.js
node --check src/stdio.js
node --check src/http.js
node --check src/sse.jsAvailable Tools
6 toolsarithmeticBasic high precision arithmeticC
Perform add, subtract, multiply, divide, power, and sqrt with explicit operands.
Inputs: values (required), operation (required), format, precision.
calculateHigh precision expression calculatorA
Evaluate a mathjs or common LaTeX math expression with configurable high precision.
Inputs: expression (required), format, precision, inputFormat.
calculusCalculus and symbolic algebraC
Differentiate symbolically, simplify symbolically, or compute definite integrals numerically with Simpson's rule.
Inputs: operation (required), expression (required), lower, upper, +5 more.
latex_to_expressionLaTeX to math expression converterC
Convert supported LaTeX math syntax into a mathjs-compatible expression.
Inputs: latex (required).
number_theoryExact number theoryB
Run exact integer operations using BigInt.
Inputs: values (required), operation (required).
statisticsHigh precision statisticsB
Compute count, sum, mean, median, min, max, range, variance, standard deviation, percentile, or summary.
Inputs: values (required), operation (required), format, sample, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct area of mathematics: basic arithmetic, expression evaluation, calculus, LaTeX conversion, number theory, and statistics. No overlapping purposes.
Names are mostly single-word or snake_case nouns describing the domain. 'latex_to_expression' and 'number_theory' are descriptive and follow a consistent pattern, though mixing single-word and multi-word names is a minor inconsistency.
Six tools is well-scoped for a symbolic math server, covering core mathematical operations without being overly numerous or sparse.
Covers arithmetic, expression evaluation, calculus, LaTeX conversion, integer theory, and statistics. Minor gaps like solving equations or linear algebra are absent but not critical for basic math support.
Maintenance
Related MCP Connectors
Math MCP server for primality, factorization, Java templates, and integer multiplication.
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
Math.js MCP — wraps the mathjs.org API (free, no auth)
Related MCP Servers
- AlicenseAqualityDmaintenanceA symbolic mathematics MCP server supporting calculus, linear algebra, number theory, statistics, and unit conversion via natural language.8MIT
- AlicenseBqualityDmaintenanceA Python-based MCP server providing mathematical computation tools and plotting utilities for a wide range of math topics including calculus, matrix operations, statistics, and more.225MIT
- AlicenseAqualityBmaintenancePure-Python MCP server for type-faithful calculation — evaluate expressions under fixed-point, IEEE-754 double, or exact rational arithmetic, with every answer labelled with its precision (exact vs inexact).61GPL 3.0
- AlicenseNot gradedqualityBmaintenanceEvaluate, simplify, and differentiate mathematical expressions via MCP. Provides a single tool for arithmetic, algebra, and symbolic differentiation with secure sandboxing.300 npm3Apache 2.0