Math.Tools MCP Server

Number theory, numeral conversion, pi digits, number spelling, and equation-image rendering.

我该使用它吗

质量与安全性

B
描述质量
94%
模式完整度
99%
命名质量
54%
投毒风险
80%
权限匹配度
100%
协议合规性
100%

发现(14)

  • HIGHTool description contains system tag or marker在 convert-numeral 中
  • HIGHTool poisoning patterns detected
  • LOWTool 'pi-digits' description lacks action verb在 pi-digits 中
  • LOWTool 'spell-number' description lacks action verb在 spell-number 中
  • LOWTool 'pi-digits' doesn't follow camelCase/snake_case在 pi-digits 中
  • LOWTool 'number-facts' doesn't follow camelCase/snake_case在 number-facts 中
  • LOWTool 'spell-number' doesn't follow camelCase/snake_case在 spell-number 中
  • LOWTool 'convert-numeral' doesn't follow camelCase/snake_case在 convert-numeral 中
  • LOWTool 'gcf-lcm' doesn't follow camelCase/snake_case在 gcf-lcm 中
  • LOWTool 'number-lists' doesn't follow camelCase/snake_case在 number-lists 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,549token 数(工具定义)
~1.2 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.21%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 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"
  ]
}

社区

评价此服务器

证据

最近观测

已验证未记录版本10 个工具