Math.Tools MCP Server
Number theory, numeral conversion, pi digits, number spelling, and equation-image rendering.
我該用這個嗎
品質與安全性
發現項目(14)
- HIGH在 convert-numeral 中
- HIGH
- LOW在 pi-digits 中
- LOW在 spell-number 中
- LOW在 pi-digits 中
- LOW在 number-facts 中
- LOW在 spell-number 中
- LOW在 convert-numeral 中
- LOW在 gcf-lcm 中
- LOW在 number-lists 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"math-tools": {
"url": "https://math.tools/mcp/math-tools"
}
}
}遠端端點
https://math.tools/mcp/math-toolsstreamable-http它能做什麼
工具清單
工具(10)
⚪pi-digits(from, to)
Returns a slice of the digits of pi. Requires a math.tools API token (numbers:* ability).
輸入結構描述
{
"type": "object",
"properties": {
"from": {
"description": "Start offset into the digits of pi. Defaults to 0.",
"type": [
"integer",
"null"
]
},
"to": {
"description": "End offset into the digits of pi. Defaults to 100. Must be >= from.",
"type": [
"integer",
"null"
]
}
}
}🟢number-facts(action, number, min, max, total, ...)
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).
輸入結構描述
{
"type": "object",
"properties": {
"action": {
"description": "Which lookup to perform. 'fact' needs number; 'random' returns one or more random integers; 'number-of-the-day' returns today's curated pick.",
"enum": [
"fact",
"random",
"number-of-the-day"
],
"type": "string"
},
"number": {
"description": "Required when action is 'fact' — the number to look up.",
"type": [
"integer",
"null"
]
},
"min": {
"description": "For action 'random': minimum value, inclusive.",
"type": [
"integer",
"null"
]
},
"max": {
"description": "For action 'random': maximum value, inclusive.",
"type": [
"integer",
"null"
]
},
"total": {
"description": "For action 'random': how many numbers to return (capped server-side).",
"type": [
"integer",
"null"
]
},
"category": {
"description": "For action 'number-of-the-day': the category shortname. Defaults to the site's default category.",
"type": [
"string",
"null"
]
}
},
"required": [
"action"
]
}⚪spell-number(action, number, lang)
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).
輸入結構描述
{
"type": "object",
"properties": {
"action": {
"description": "Which spelling to produce.",
"enum": [
"cardinal",
"ordinal",
"currency"
],
"type": "string"
},
"number": {
"description": "The number to spell out.",
"type": "integer"
},
"lang": {
"description": "Locale for cardinal/currency, e.g. 'en_US', 'fr_FR'. Not used for ordinal (English only). Defaults to the site default.",
"type": [
"string",
"null"
]
}
},
"required": [
"action",
"number"
]
}⚪convert-numeral(system, number)
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).
輸入結構描述
{
"type": "object",
"properties": {
"system": {
"description": "The target numeral system.",
"enum": [
"roman",
"chinese",
"egyptian",
"babylonian",
"mayan"
],
"type": "string"
},
"number": {
"description": "The base-10 number to convert.",
"type": "integer"
}
},
"required": [
"system",
"number"
]
}🟢gcf-lcm(op, numbers)
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).
輸入結構描述
{
"type": "object",
"properties": {
"op": {
"description": "Which operation to perform.",
"enum": [
"gcf",
"lcm"
],
"type": "string"
},
"numbers": {
"description": "Comma-separated list of integers, e.g. '12,18,24'. At least two values.",
"type": "string"
}
},
"required": [
"op",
"numbers"
]
}⚪number-lists(kind, count)
The first N prime numbers, composite numbers, or palindromic numbers. Requires a math.tools API token (numbers:* ability).
輸入結構描述
{
"type": "object",
"properties": {
"kind": {
"description": "Which list to generate.",
"enum": [
"primes",
"composites",
"palindromes"
],
"type": "string"
},
"count": {
"description": "How many numbers to return. Capped server-side per kind; defaults to a sensible per-kind default.",
"type": [
"integer",
"null"
]
}
},
"required": [
"kind"
]
}⚪convert-base(number, to, from)
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).
輸入結構描述
{
"type": "object",
"properties": {
"number": {
"description": "The number to convert (read in the \"from\" base).",
"type": "integer"
},
"to": {
"description": "Target base, 2-64.",
"type": "integer"
},
"from": {
"description": "Source base, 2-64. Defaults to 10.",
"type": [
"integer",
"null"
]
}
},
"required": [
"number",
"to"
]
}🟢number-theory-check(check, number)
Run a primality/shape check on a number, or get its prime factorization. Requires a math.tools API token (numbers:* ability).
輸入結構描述
{
"type": "object",
"properties": {
"check": {
"description": "Which check to run.",
"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"
},
"number": {
"description": "The number to check.",
"type": "integer"
}
},
"required": [
"check",
"number"
]
}⚪number-properties(property, number, a, b)
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).
輸入結構描述
{
"type": "object",
"properties": {
"property": {
"description": "Which property to compute. 'coprime' needs a and b instead of number.",
"enum": [
"is-abundant",
"is-deficient",
"is-squarefree",
"totient",
"number-of-divisors",
"sum-of-divisors",
"aliquot-sum",
"coprime"
],
"type": "string"
},
"number": {
"description": "Required for every property except 'coprime'. Must be >= 1.",
"type": [
"integer",
"null"
]
},
"a": {
"description": "Required when property is 'coprime'.",
"type": [
"integer",
"null"
]
},
"b": {
"description": "Required when property is 'coprime'.",
"type": [
"integer",
"null"
]
}
},
"required": [
"property"
]
}⚪equation-image(equation, fontsize)
Render a math equation (compact LaTeX-like markup) as a PNG image. Requires a math.tools API token (equations:image ability).
輸入結構描述
{
"type": "object",
"properties": {
"equation": {
"description": "The equation, using math.tools' compact LaTeX-like markup — e.g. 'x^2 - y^2 = (x-y)', 'sqrt{x^2+y^2}'.",
"type": "string"
},
"fontsize": {
"description": "Font size in points. Defaults to the site default; clamped to the supported min/max server-side.",
"type": [
"integer",
"null"
]
}
},
"required": [
"equation"
]
}社群
證據