Skip to main content
Glama
rog0x

mcp-math-tools

by rog0x

mcp-math-tools

面向 AI 智能体的数学与计算工具,通过 Model Context Protocol (MCP) 提供。

工具

calculate

安全地计算数学表达式(不使用 eval)。支持算术运算符(+-*/^%)、括号、函数(sqrtabsfloorceilroundloglnsincostanminmaxpow)、常量(pie)和命名变量。

convert_units

在六个类别之间转换单位:

  • 长度:m、km、cm、mm、mi、yd、ft、in

  • 重量:kg、g、mg、lb、oz、ton

  • 温度:C、F、K

  • 数据:B、KB、MB、GB、TB

  • 时间:s、min、h、d、week

  • 速度:m/s、km/h、mph、knots

statistics

对数据集进行统计分析:平均值、中位数、众数、方差、标准差、最小值、最大值、极差、百分位数、两个数组之间的相关性,以及完整汇总模式。

format_number

将数字格式化为:货币($1,234.56)、百分比、科学计数法、二进制、八进制、十六进制、有效数字,或带千位分隔符。

percentage_calc

常见的百分比运算:Y 的 X% 是多少、X 占 Y 的百分比、两个数值之间的百分比变化、小费计算、折扣计算和加价计算。

Related MCP server: Math Calculation MCP Server

安装

npm install
npm run build

与 Claude Desktop 配合使用

添加到你的 claude_desktop_config.json

{
  "mcpServers": {
    "math-tools": {
      "command": "node",
      "args": ["path/to/mcp-math-tools/dist/index.js"]
    }
  }
}

示例

计算2 * (3 + 4) ^ 2 返回 98

转换:将 100km/h 转换为 mph,返回 62.137...

统计:对 [1, 2, 3, 4, 5] 进行汇总,返回平均值、中位数、众数、方差等。

格式化:将 1234567.89 格式化为 currency,返回 $1,234,567.89

百分比85.50 账单按 3 人分摊,15% 小费

许可证

MIT

A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Provides advanced mathematical utilities including basic arithmetic, statistical analysis, unit conversions, quadratic equation solving, percentage calculations, and trigonometric functions for AI assistants.
    6
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides comprehensive mathematical capabilities including basic arithmetic, advanced functions, statistical tools, and access to mathematical constants. It allows users to perform computations and generate math-related prompts through a standardized MCP interface.
    MIT
  • A
    license
    C
    quality
    C
    maintenance
    A comprehensive MCP server that turns any AI assistant into a powerful mathematical computation engine, providing 52 advanced functions, 158 unit conversions, financial calculations, and secure AST-based evaluation.
    18
    13
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides a comprehensive set of mathematical functions as MCP tools, enabling language models to perform calculations including arithmetic, trigonometry, logarithms, and more.
    7
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Math.js MCP — wraps the mathjs.org API (free, no auth)

  • Precision math engine for AI agents. 203 exact methods. Zero hallucination.

  • 500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rog0x/mcp-math-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server