A
securityF
licenseA
qualityA server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.
Last updated -
4
JavaScript
Cal Server
是一个基于 FastMCP
框架构建的简单数学表达式计算服务,使用 Bun 运行时环境。它利用 expr-eval
库解析和计算用户输入的数学表达式,并通过标准输入输出(stdio)与外界交互。该项目旨在提供一个轻量、高效的计算工具,支持基本数学运算和内置常量。
E
:Bun 环境中的 Math.E
。PI
:Bun 环境中的 Math.PI
。true
:逻辑真值。false
:逻辑假值。cal
。exp
)。fastmcp
:用于构建 MCP 服务。expr-eval
:用于解析和计算数学表达式。zod
:用于参数验证。To install cal-mcp for Claude Desktop automatically via Smithery:
2 + 3 * PI
2 + 2
→ 4
PI * 2
→ 6.283185307179586
E ^ 2 + 1
→ 8.38905609893065
stdio
交互。This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
A mathematical expression calculator that processes user-input expressions and returns computed results, supporting basic operations and built-in constants like PI and E.