
Math
io.github.rog0x由 GitHub 账号 rog0x 发布v1.0.1更新于 Oct 24, 2026
Calculator, units, statistics for AI agents
概览
一个本地 MCP 服务器,为助手提供数学工具:安全的表达式求值、单位换算、统计、数字格式化和百分比计算。
- 可以做什么
- 在不使用 eval 的情况下计算算术表达式,支持函数、常量和命名变量。在长度、重量、温度、数据、时间与速度六类单位之间换算数值。对数据集计算统计量,包括均值、中位数、方差、百分位数和相关性。将数字格式化为货币、百分比、科学计数法、二进制、八进制、十六进制或带千位分隔符。执行常见百分比运算,如小费、折扣、加价和百分比变化。
- 适用场景
- 当助手需要可靠的算术计算、单位换算或货币式数字格式化,或需要对小数据集快速做统计时适用。适合作为日常计算任务的轻量补充。
- 运行要求
- 作为本地进程通过 stdio 运行,从 npm 包安装,并用 npm install 和 npm run build 构建。README 展示了在桌面客户端配置中用 node 启动构建后的 dist/index.js 文件。未声明认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Math,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-math-tools
Math and calculation tools for AI agents, exposed via the Model Context Protocol (MCP).
Tools
calculate
Evaluate math expressions safely (no eval). Supports arithmetic operators (+, -, *, /, ^, %), parentheses, functions (sqrt, abs, floor, ceil, round, log, ln, sin, cos, tan, min, max, pow), constants (pi, e), and named variables.
convert_units
Convert between units across six categories:
- Length: m, km, cm, mm, mi, yd, ft, in
- Weight: kg, g, mg, lb, oz, ton
- Temperature: C, F, K
- Data: B, KB, MB, GB, TB
- Time: s, min, h, d, week
- Speed: m/s, km/h, mph, knots
statistics
Statistical analysis on datasets: mean, median, mode, variance, standard deviation, min, max, range, percentile, correlation between two arrays, and a full summary mode.
format_number
Format numbers as: currency ($1,234.56), percentage, scientific notation, binary, octal, hexadecimal, significant figures, or with thousands separators.
percentage_calc
Common percentage operations: X% of Y, what percent X is of Y, percentage change between two values, tip calculator, discount calculator, and markup calculator.
Installation
Usage with Claude Desktop
Add to your claude_desktop_config.json:
Examples
Calculate: 2 * (3 + 4) ^ 2 returns 98
Convert: 100 from km/h to mph returns 62.137...
Statistics: summary of [1, 2, 3, 4, 5] returns mean, median, mode, variance, etc.
Format: 1234567.89 as currency returns $1,234,567.89
Percentage: 15% tip on 85.50 bill split 3 ways
License
MIT
来源:README.md,提交 18f7312
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。