C

cal-mcp用于计算数学表达式的MCP

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

Cal Server 是一个基于 FastMCP 框架、使用 Bun 运行时环境的简易数学表达式计算服务。它使用 expr-eval 库解析并计算用户输入的数学表达式,并通过标准输入/输出(stdio)与外部交互。该项目旨在提供一个轻量、高效的计算工具,支持基本的数学运算及内置常量。 该服务支持表达式计算,功能包括: * 解析并计算用户输入的数学表达式 * 支持基本的数学运算 * 内置常量,包括 E、PI、true、false 该服务可通过 stdio 输入数学表达式来使用。例如,表达式 '2 + 3 * PI' 会以字符串形式输出计算结果。

主要功能

  • 表达式计算
  • 内置常量(E, PI, true, false)
  • 参数验证
  • 支持基本数学运算

价格

模型
Free
评分
暂无评价

使用场景

简单数学计算

用户输入数学表达式,服务返回计算结果

科学计算

用户利用内置常量进行科学计算,如使用 PI 进行圆面积计算

优点 & 缺点

优点

  • 轻量
  • 高效
  • 支持基本数学运算和内置常量

缺点

  • 服务当前仅支持通过 stdio 交互
  • 输入的表达式必须是有效的数学表达式,否则可能抛出错误

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

Can cal‑mcp be integrated with other tools or APIs?

The service currently only interacts through stdio, so integration must involve feeding expressions to its standard input and reading results from standard output. There is no built‑in HTTP or SDK interface.

Asked by Zelda Brandt · Apr 6, 2026

What kinds of expressions can cal‑mcp evaluate?

cal‑mcp parses any valid mathematical expression using the expr‑eval library, supporting basic operations (+, -, *, /, ^) and built‑in constants like E, PI, true, and false. Complex expressions such as `E ^ 2` are also handled.

Asked by Uma Krishnan · Feb 19, 2026

How do I install and run cal‑mcp on my machine?

First install the Bun runtime (latest version recommended). Then clone the repository, run `bun install` to install dependencies, and start the service with `bun run index.ts`. The service runs via standard input/output (stdio).

Asked by Odalys Reyes · Jan 4, 2026

提问

服务配缩器 的替代品