Math.Tools MCP Server

v1.0.0
tools.math/math-tools Checked 4 days ago Published 19 days ago

Number 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).

ParameterTypeDescription
frominteger | nullStart offset into the digits of pi. Defaults to 0.
tointeger | nullEnd 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).

ParameterTypeDescription
action *stringWhich lookup to perform. 'fact' needs number; 'random' returns one or more random integers; 'number-of-the-day' returns today's curated pick.
categorystring | nullFor action 'number-of-the-day': the category shortname. Defaults to the site's default category.
maxinteger | nullFor action 'random': maximum value, inclusive.
mininteger | nullFor action 'random': minimum value, inclusive.
numberinteger | nullRequired when action is 'fact' — the number to look up.
totalinteger | nullFor 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).

ParameterTypeDescription
action *stringWhich spelling to produce.
number *integerThe number to spell out.
langstring | nullLocale 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).

ParameterTypeDescription
number *integerThe base-10 number to convert.
system *stringThe 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).

ParameterTypeDescription
numbers *stringComma-separated list of integers, e.g. '12,18,24'. At least two values.
op *stringWhich 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).

ParameterTypeDescription
kind *stringWhich list to generate.
countinteger | nullHow 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).

ParameterTypeDescription
number *integerThe number to convert (read in the "from" base).
to *integerTarget base, 2-64.
frominteger | nullSource 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).

ParameterTypeDescription
check *stringWhich check to run.
number *integerThe 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).

ParameterTypeDescription
property *stringWhich property to compute. 'coprime' needs a and b instead of number.
ainteger | nullRequired when property is 'coprime'.
binteger | nullRequired when property is 'coprime'.
numberinteger | nullRequired 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).

ParameterTypeDescription
equation *stringThe equation, using math.tools' compact LaTeX-like markup — e.g. 'x^2 - y^2 = (x-y)', 'sqrt{x^2+y^2}'.
fontsizeinteger | nullFont size in points. Defaults to the site default; clamped to the supported min/max server-side.