Math Tools Math Tools

MCP Server

The Math Tools MCP (Model Context Protocol) server lets an AI agent call math.tools' number-theory, numeral-conversion, and equation-rendering tools directly — no hand-rolled REST calls. The tool catalog is public to browse; calling a tool needs a token.

Connect

Endpoint
https://math.tools/mcp/math-tools
Protocol
Model Context Protocol (MCP), JSON-RPC 2.0 over HTTP
Discovery
Free — call tools/list with no token to see every tool's name, description, and input schema.
Calling a tool
Requires Authorization: Bearer <token> with the numbers:* and/or equations:image ability, from either path below.

Example Prompts

math.tools ships one MCP prompt — math-tools-assistant — carrying usage instructions and these worked examples, so an agent can see exactly what a request and its real result look like before calling anything itself.

“Is 8191 prime? What about 8128 — is it a perfect number?”

Tool: number-theory-check, number-properties

8191 is prime: true · 8128 is perfect: true

“Convert 1994 to Roman numerals and to Mayan numerals”

Tool: convert-numeral

MCMXCIV (Roman) · 𝋤𝋳𝋮 (Mayan)

“Give me the first 20 digits of pi”

Tool: pi-digits

3.1415926535897932384

“What's the GCF and LCM of 48 and 180?”

Tool: gcf-lcm

GCF: 12 · LCM: 720

“Spell out 4820 as a dollar amount, and as an ordinal”

Tool: spell-number

four thousand eight hundred twenty dollars · 4,820th

“Render the equation x^2 - y^2 = (x-y) as an image I can embed”

Tool: equation-image

→ PNG image (binary), not text

“Convert 3735928559 from base 10 to hex”

Tool: convert-base

DEADBEEF

For humans — subscribe

A token from either existing subscription already works over MCP — there's no separate MCP plan to buy. Subscribe at the Numbers API or Equa Images API docs page.

For AI agents — pay with x402

Autonomous agents can purchase a time-boxed token with no human sign-up, via the x402 protocol (HTTP 402 + USDC on Base).

Plan Price Description
MCP 1-Day Pass $0.50000000 USDC 50 requests to the Math Tools MCP server (including protocol overhead), valid for 24 hours. Pay-per-use via x402.
MCP 7-Day Pass $2.00000000 USDC 300 requests to the Math Tools MCP server (including protocol overhead), valid for 7 days. Pay-per-use via x402.
MCP 30-Day Pass $5.00000000 USDC 1000 requests to the Math Tools MCP server (including protocol overhead), valid for 30 days. Pay-per-use via x402.

Purchase endpoint: POST /x402/token/{plan-slug} — see GET /x402/plans for the machine-readable plan list.