
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that lets AI clients perform exact arithmetic and scientific math evaluations through a single calculate tool.
MCP server for precise mathematical calculations is cataloged as an MCP server attributed to cosmiumx. An MCP server that lets AI clients perform exact arithmetic and scientific math evaluations through a single calculate tool. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for precise mathematical calculations are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It avoids eval, uses the mathjs safe parser with a sandbox and function whitelist, rejects dangerous patterns, and enforces a 5-second timeout.
Yes, it includes big-number support, with examples such as 999999999999999999 + 1 returning 1000000000000000000.
README.md · 414fc61154ed · Fetched 2026-11-13 11:20:05 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
🧮 精确数学计算的 MCP 服务器 - 为 AI 提供 100% 准确的计算能力
在你的 MCP 客户端配置中添加(如 Claude Desktop):
macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"math-calculator": {
"command": "npx",
"args": ["-y", "mcp-math-calculator"]
}
}
}
npm install -g mcp-math-calculator
# 或
pnpm add -g mcp-math-calculator
然后配置:
{
"mcpServers": {
"math-calculator": {
"command": "mcp-math-calculator"
}
}
}
配置完成后,重启你的 AI 客户端,然后可以这样提问:
AI 会自动调用此工具进行精确计算。
calculate精确计算数学表达式。
参数:
expression (string, 必需): 要计算的数学表达式precision (number, 可选): 小数精度位数(默认: 15,范围: 1-64)支持的运算:
| 类型 | 示例 |
|---|---|
| 基础运算 | +, -, *, /, ^, % |
| 括号 | (, ) |
| 函数 | sqrt(), pow(), abs(), round(), floor(), ceil() |
| 三角函数 | sin(), cos(), tan(), asin(), acos(), atan() |
| 对数指数 | log(), log10(), log2(), exp() |
| 常数 | pi, e, tau, phi |
示例:
// 基础运算
"2 + 2" // 4
"10 - 3" // 7
"6 * 7" // 42
"20 / 4" // 5
// 浮点数精度
"0.1 + 0.2" // 0.3 (不是 0.30000000000000004)
// 复杂表达式
"(10 + 20) * 3" // 90
"2 + 3 * 4 - 5 / 5" // 13
// 科学函数
"sqrt(16)" // 4
"pow(2, 3)" // 8
"sin(pi / 2)" // 1
// 大数运算
"123456789 * 987654321" // 121932631112635269
"999999999999999999 + 1" // 1000000000000000000
本工具采用多层安全机制:
eval() - 使用 mathjs 安全解析器# 克隆仓库
git clone https://github.com/Cosmiumx/mcp-math-calculator.git
cd mcp-math-calculator
# 安装依赖
pnpm install
# 构建
pnpm build
# 运行测试
pnpm test
# 监听模式
pnpm watch
项目包含 37 个测试用例,覆盖:
欢迎贡献!请随时提交 Issue 或 Pull Request。
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)MIT License - 详见 LICENSE 文件
遇到问题?请在 GitHub Issues 中报告。
如果这个项目对你有帮助,请给它一个 ⭐️!
Made with ❤️ by Cosmiumx
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for precise mathematical calculations from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-math-calculator)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.