mcp-math-tools
mcp-math-tools
面向 AI 智能体的数学与计算工具,通过 Model Context Protocol (MCP) 提供。
工具
calculate
安全地计算数学表达式(不使用 eval)。支持算术运算符(+、-、*、/、^、%)、括号、函数(sqrt、abs、floor、ceil、round、log、ln、sin、cos、tan、min、max、pow)、常量(pi、e)和命名变量。
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
转换:将 100 从 km/h 转换为 mph,返回 62.137...
统计:对 [1, 2, 3, 4, 5] 进行汇总,返回平均值、中位数、众数、方差等。
格式化:将 1234567.89 格式化为 currency,返回 $1,234,567.89
百分比:85.50 账单按 3 人分摊,15% 小费
许可证
MIT
Maintenance
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
- AlicenseAqualityDmaintenanceProvides advanced mathematical utilities including basic arithmetic, statistical analysis, unit conversions, quadratic equation solving, percentage calculations, and trigonometric functions for AI assistants.6MIT
- AlicenseNot gradedqualityDmaintenanceProvides 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
- AlicenseCqualityCmaintenanceA 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.1813MIT
- AlicenseNot gradedqualityDmaintenanceProvides a comprehensive set of mathematical functions as MCP tools, enabling language models to perform calculations including arithmetic, trigonometry, logarithms, and more.71MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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