Math.Tools MCP Server
v1.0.0Number theory, numeral conversion, pi digits, number spelling, and equation-image rendering.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pi-digits Pi Digits Tool
Returns a slice of the digits of pi. Requires a math.tools API token (numbers:* ability).
| Parameter | Type | Description |
|---|---|---|
from | integer | null | Start offset into the digits of pi. Defaults to 0. |
to | integer | null | End offset into the digits of pi. Defaults to 100. Must be >= from. |
number-facts Number Facts Tool
Get a trivia fact about a specific number, a batch of random integers, or today's curated number of the day. Requires a math.tools API token (numbers:* ability).
| Parameter | Type | Description |
|---|---|---|
action * | string | Which lookup to perform. 'fact' needs number; 'random' returns one or more random integers; 'number-of-the-day' returns today's curated pick. |
category | string | null | For action 'number-of-the-day': the category shortname. Defaults to the site's default category. |
max | integer | null | For action 'random': maximum value, inclusive. |
min | integer | null | For action 'random': minimum value, inclusive. |
number | integer | null | Required when action is 'fact' — the number to look up. |
total | integer | null | For action 'random': how many numbers to return (capped server-side). |
spell-number Spell Number Tool
Spell a number out in words: cardinal (e.g. "seven"), ordinal (e.g. "7th"), or currency (e.g. "seven dollars"). Requires a math.tools API token (numbers:* ability).
| Parameter | Type | Description |
|---|---|---|
action * | string | Which spelling to produce. |
number * | integer | The number to spell out. |
lang | string | null | Locale for cardinal/currency, e.g. 'en_US', 'fr_FR'. Not used for ordinal (English only). Defaults to the site default. |
convert-numeral Convert Numeral Tool
Convert a base-10 number to another numeral system: Roman, Chinese, Egyptian, Babylonian (sexagesimal digits), or Mayan (vigesimal, real Unicode glyphs). Requires a math.tools API token (numbers:* ability).
| Parameter | Type | Description |
|---|---|---|
number * | integer | The base-10 number to convert. |
system * | string | The target numeral system. |
gcf-lcm Gcf Lcm Tool
Compute the greatest common factor (GCF/GCD) or least common multiple (LCM) of two or more numbers. Requires a math.tools API token (numbers:* ability).
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Comma-separated list of integers, e.g. '12,18,24'. At least two values. |
op * | string | Which operation to perform. |
number-lists Number Lists Tool
The first N prime numbers, composite numbers, or palindromic numbers. Requires a math.tools API token (numbers:* ability).
| Parameter | Type | Description |
|---|---|---|
kind * | string | Which list to generate. |
count | integer | null | How many numbers to return. Capped server-side per kind; defaults to a sensible per-kind default. |
convert-base Convert Base Tool
Convert a number from one base to another (2-64). Common shorthands: to=2 for binary, to=8 for octal, to=16 for hex. Requires a math.tools API token (numbers:* ability).
| Parameter | Type | Description |
|---|---|---|
number * | integer | The number to convert (read in the "from" base). |
to * | integer | Target base, 2-64. |
from | integer | null | Source base, 2-64. Defaults to 10. |
number-theory-check Number Theory Check Tool
Run a primality/shape check on a number, or get its prime factorization. Requires a math.tools API token (numbers:* ability).
| Parameter | Type | Description |
|---|---|---|
check * | string | Which check to run. |
number * | integer | The number to check. |
number-properties Number Properties Tool
Divisor-related properties of a number: abundant/deficient/squarefree checks, Euler's totient, divisor count/sum, aliquot sum, or whether two numbers are coprime. Requires a math.tools API token (numbers:* ability).
| Parameter | Type | Description |
|---|---|---|
property * | string | Which property to compute. 'coprime' needs a and b instead of number. |
a | integer | null | Required when property is 'coprime'. |
b | integer | null | Required when property is 'coprime'. |
number | integer | null | Required for every property except 'coprime'. Must be >= 1. |
equation-image Equation Image Tool
Render a math equation (compact LaTeX-like markup) as a PNG image. Requires a math.tools API token (equations:image ability).
| Parameter | Type | Description |
|---|---|---|
equation * | string | The equation, using math.tools' compact LaTeX-like markup — e.g. 'x^2 - y^2 = (x-y)', 'sqrt{x^2+y^2}'. |
fontsize | integer | null | Font size in points. Defaults to the site default; clamped to the supported min/max server-side. |