Ultimath
The Ultimath server evaluates mathematical expressions across multiple independent numeric engines simultaneously to detect floating-point errors and verify numeric reliability.
evaluate: Run any math expression through 4 independent engines (multiprecision, exact decimal, IEEE-754 double, interval arithmetic) in parallel and compare results side by side. When engines disagree, it flags numerically unreliable values (e.g., floating-point sensitivity, catastrophic cancellation, singularities, branch cuts).list_functions: List all supported mathematical functions with name, arity, category, and description — optionally filtered by category (algebraic, trigonometric, hyperbolic, exponential, special, rounding, introspection).
Supported operations:
Arithmetic (
+,-,*,/,%), powers (x^y), roots (sqrt), factorial (!)Trigonometry (
sin,cos,tan), exponentials/logarithms (exp,ln,log)Complex numbers (e.g.
3+2i), alternate base literals (e.g.0xFF,0b1010)Built-in constants:
pi,e,PHI
Output control: Specify precision (1–50 decimal digits) and format (fixed, scientific, auto). Each engine returns structured diagnostics and warnings (e.g. precision loss, overflow, ULP errors).
Notes: Multiplication must be explicit (e.g. 2*pi). No type casts or constructors — complex numbers use 1+2i notation. Expressions are not stored; only anonymized usage metrics are retained.
Ultimath MCP
Stop hallucinating numbers. An MCP server that runs every math expression through five independent numeric engines in parallel and returns all five results side by side — so when they disagree, you know the answer is numerically unreliable.
The five engines:
Engine | What it does |
Multiprecision | High-precision arbitrary-digit arithmetic |
Exact decimal | Exact base-10 arithmetic |
IEEE-754 double | Standard hardware floating point |
Interval | Rigorous lower/upper bounds (guaranteed enclosure) |
Binary point | Arbitrary-precision binary, exact integer mantissa |
Tools
evaluate— evaluate an expression on all five engines and compare. Supports arithmetic, trig (sin,cos,tan), exp/log (exp,ln,log), roots and powers (sqrt,x^y), factorial, complex numbers (3+2i), alternate bases (0xFF,0b1010), and constants (pi,e, golden ratioPHI).list_functions— list every function the engines expose (name, arity, category, description). Optionally filter by category.
Multiplication must be explicit: write
2*pi,2*sin(x),(a+b)*(c+d). Adjacency is not a product (2piis an error). Expressions are purely mathematical — no type casts or constructors; write a complex number as1+2i.
Related MCP server: math-logic-mcp
Setup
Get a free API key at https://ultimath.ai.
Add the server to your MCP client config (example for Claude Desktop):
{
"mcpServers": {
"ultimath": {
"command": "npx",
"args": ["-y", "ultimath-mcp"],
"env": {
"ULTIMATH_API_KEY": "your_api_key_here"
}
}
}
}That's it — npx fetches and runs the server on demand.
Requirements
Node.js ≥ 18
An Ultimath API key (
ULTIMATH_API_KEY)
Links
Website: https://ultimath.ai
Under the hood
Ultimath's engines build on FLINT/Arb, GMP/MPFR, MPFI, NTL and Boost — full credits at https://ultimath.ai/credits.
Privacy
Ultimath stores only a hash of your API key and basic usage metrics to run and secure the service; expressions are evaluated, not retained for training. Full policy: https://ultimath.ai/privacy/
License
MIT
Maintenance
Tools
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Flupke68/ultimath-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server