Number theory, numeral conversion, pi digits, number spelling, and equation-image rendering.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
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).
Target base, 2-64.
The number to convert (read in the "from" base).
Source base, 2-64. Defaults to 10.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http math-tools https://math.tools/mcp/math-tools
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).
| Argument | Type | Description |
|---|---|---|
| to* | integer | Target base, 2-64. |
| from | integer | null | Source base, 2-64. Defaults to 10. |
| number* | integer | The number to convert (read in the "from" base). |
{
"type": "object",
"required": [
"number",
"to"
],
"properties": {
"to": {
"type": "integer",
"description": "Target base, 2-64."
},
"from": {
"type": [
"integer",
"null"
],
"description": "Source base, 2-64. Defaults to 10."
},
"number": {
"type": "integer",
"description": "The number to convert (read in the \"from\" base)."
}
}
}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).
| Argument | Type | Description |
|---|---|---|
| number* | integer | The base-10 number to convert. |
| system* | string | The target numeral system. |
{
"type": "object",
"required": [
"system",
"number"
],
"properties": {
"number": {
"type": "integer",
"description": "The base-10 number to convert."
},
"system": {
"enum": [
"roman",
"chinese",
"egyptian",
"babylonian",
"mayan"
],
"type": "string",
"description": "The target numeral system."
}
}
}Render a math equation (compact LaTeX-like markup) as a PNG image. Requires a math.tools API token (equations:image ability).
| Argument | 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. |
{
"type": "object",
"required": [
"equation"
],
"properties": {
"equation": {
"type": "string",
"description": "The equation, using math.tools' compact LaTeX-like markup — e.g. 'x^2 - y^2 = (x-y)', 'sqrt{x^2+y^2}'."
},
"fontsize": {
"type": [
"integer",
"null"
],
"description": "Font size in points. Defaults to the site default; clamped to the supported min/max server-side."
}
}
}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).
| Argument | Type | Description |
|---|---|---|
| op* | string | Which operation to perform. |
| numbers* | string | Comma-separated list of integers, e.g. '12,18,24'. At least two values. |
{
"type": "object",
"required": [
"op",
"numbers"
],
"properties": {
"op": {
"enum": [
"gcf",
"lcm"
],
"type": "string",
"description": "Which operation to perform."
},
"numbers": {
"type": "string",
"description": "Comma-separated list of integers, e.g. '12,18,24'. At least two values."
}
}
}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).
| Argument | Type | Description |
|---|---|---|
| max | integer | null | For action 'random': maximum value, inclusive. |
| min | integer | null | For action 'random': minimum value, inclusive. |
| total | integer | null | For action 'random': how many numbers to return (capped server-side). |
| 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. |
| number | integer | null | Required when action is 'fact' — the number to look up. |
| category | string | null | For action 'number-of-the-day': the category shortname. Defaults to the site's default category. |
{
"type": "object",
"required": [
"action"
],
"properties": {
"max": {
"type": [
"integer",
"null"
],
"description": "For action 'random': maximum value, inclusive."
},
"min": {
"type": [
"integer",
"null"
],
"description": "For action 'random': minimum value, inclusive."
},
"total": {
"type": [
"integer",
"null"
],
"description": "For action 'random': how many numbers to return (capped server-side)."
},
"action": {
"enum": [
"fact",
"random",
"number-of-the-day"
],
"type": "string",
"description": "Which lookup to perform. 'fact' needs number; 'random' returns one or more random integers; 'number-of-the-day' returns today's curated pick."
},
"number": {
"type": [
"integer",
"null"
],
"description": "Required when action is 'fact' — the number to look up."
},
"category": {
"type": [
"string",
"null"
],
"description": "For action 'number-of-the-day': the category shortname. Defaults to the site's default category."
}
}
}The first N prime numbers, composite numbers, or palindromic numbers. Requires a math.tools API token (numbers:* ability).
| Argument | 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. |
{
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"enum": [
"primes",
"composites",
"palindromes"
],
"type": "string",
"description": "Which list to generate."
},
"count": {
"type": [
"integer",
"null"
],
"description": "How many numbers to return. Capped server-side per kind; defaults to a sensible per-kind default."
}
}
}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).
| Argument | Type | Description |
|---|---|---|
| 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. |
| property* | string | Which property to compute. 'coprime' needs a and b instead of number. |
{
"type": "object",
"required": [
"property"
],
"properties": {
"a": {
"type": [
"integer",
"null"
],
"description": "Required when property is 'coprime'."
},
"b": {
"type": [
"integer",
"null"
],
"description": "Required when property is 'coprime'."
},
"number": {
"type": [
"integer",
"null"
],
"description": "Required for every property except 'coprime'. Must be >= 1."
},
"property": {
"enum": [
"is-abundant",
"is-deficient",
"is-squarefree",
"totient",
"number-of-divisors",
"sum-of-divisors",
"aliquot-sum",
"coprime"
],
"type": "string",
"description": "Which property to compute. 'coprime' needs a and b instead of number."
}
}
}Run a primality/shape check on a number, or get its prime factorization. Requires a math.tools API token (numbers:* ability).
| Argument | Type | Description |
|---|---|---|
| check* | string | Which check to run. |
| number* | integer | The number to check. |
{
"type": "object",
"required": [
"check",
"number"
],
"properties": {
"check": {
"enum": [
"is-prime",
"is-composite",
"is-odd",
"is-even",
"prime-factors",
"is-palindrome",
"is-triangle",
"is-square",
"is-cube",
"is-perfect",
"is-mersenne-prime",
"is-fermat-prime",
"is-fibonacci-prime",
"is-pell-prime",
"is-partition-prime"
],
"type": "string",
"description": "Which check to run."
},
"number": {
"type": "integer",
"description": "The number to check."
}
}
}Returns a slice of the digits of pi. Requires a math.tools API token (numbers:* ability).
| Argument | Type | Description |
|---|---|---|
| to | integer | null | End offset into the digits of pi. Defaults to 100. Must be >= from. |
| from | integer | null | Start offset into the digits of pi. Defaults to 0. |
{
"type": "object",
"properties": {
"to": {
"type": [
"integer",
"null"
],
"description": "End offset into the digits of pi. Defaults to 100. Must be >= from."
},
"from": {
"type": [
"integer",
"null"
],
"description": "Start offset into the digits of pi. Defaults to 0."
}
}
}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).
| Argument | Type | Description |
|---|---|---|
| lang | string | null | Locale for cardinal/currency, e.g. 'en_US', 'fr_FR'. Not used for ordinal (English only). Defaults to the site default. |
| action* | string | Which spelling to produce. |
| number* | integer | The number to spell out. |
{
"type": "object",
"required": [
"action",
"number"
],
"properties": {
"lang": {
"type": [
"string",
"null"
],
"description": "Locale for cardinal/currency, e.g. 'en_US', 'fr_FR'. Not used for ordinal (English only). Defaults to the site default."
},
"action": {
"enum": [
"cardinal",
"ordinal",
"currency"
],
"type": "string",
"description": "Which spelling to produce."
},
"number": {
"type": "integer",
"description": "The number to spell out."
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 17, 2026.
No readOnlyHint / destructiveHint annotations, so clients can't tell a read from a write without asking.
Fix: Add annotations to each tool, e.g. { readOnlyHint: true } for tools that only read.