C

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

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

Cal Server is a simple mathematical expression calculation service built on the FastMCP framework, using the Bun runtime environment. It parses and calculates user-input mathematical expressions using the expr-eval library and interacts with the outside world through standard input/output (stdio). The project aims to provide a lightweight and efficient calculation tool that supports basic mathematical operations and built-in constants. The service supports expression calculation, with features including: * Parsing and calculating user-input mathematical expressions * Support for basic mathematical operations * Built-in constants, including E, PI, true, and false The service can be used by inputting a mathematical expression through stdio. For example, the expression '2 + 3 * PI' would output the calculated result in string form.

Key features

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

Pricing

Model
Free
Category
MCP Servers
Rating
No reviews yet

Use cases

简单数学计算

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

科学计算

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

Pros & Cons

Pros

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

Cons

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

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

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

Ask a question

MCP Servers alternatives