MCP.so
登录

Cal Server MCP Server

@pwh-pwh

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

pwh-pwh

提交者

coderpwh

关于 Cal Server MCP Server

用于计算数学表达式的MCP

Cal Server MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "cal-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli",
        "install",
        "@pwh-pwh/cal-mcp",
        "--client",
        "claude"
      ]
    }
  }
}

Cal Server MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Cal Server?

Cal Server is a lightweight mathematical expression calculation service built with FastMCP and the Bun runtime. It uses the expr-eval library to parse and evaluate user-input expressions and communicates via standard input/output (stdio), serving as a simple, efficient calculation tool with built-in constants.

How to use Cal Server?

Install automatically via Smithery (npx -y @smithery/cli install @pwh-pwh/cal-mcp --client claude) or manually (clone the repository, run bun install). Configure your MCP client with the command bunx cal-mcp. Start the service with bun run index.ts and invoke the cal tool with a string expression parameter (exp) to get the result.

Key features of Cal Server

  • Supports mathematical expression calculation via the cal tool
  • Includes built-in constants: E, PI, true, false
  • Accepts a single string expression parameter
  • Built on FastMCP for MCP protocol compatibility
  • Runs on the Bun runtime environment
  • Communicates exclusively over stdio

Use cases of Cal Server

  • Evaluating arithmetic expressions within an AI agent conversation
  • Computing results that use constants like PI or E without manual lookup
  • Performing quick math operations in a lightweight, serverless context

常见问题

1

What runtime is required for Cal Server?

Cal Server requires the Bun runtime (latest version recommended). You can install it from https://bun.sh/.

2

How does Cal Server communicate?

It communicates over standard input and output (stdio). It does not support HTTP or other transports.

3

What built-in constants does Cal Server support?

The server includes the constants E, PI, true, and false, which map to Bun’s `Math.E`, `Math.PI`, `true`, and `false`.

4

What happens if an invalid expression is entered?

If the input is not a valid mathematical expression, Cal Server may throw an error. Ensure expressions are syntactically correct.

5

What are the known limits of Cal Server?

The service only supports stdio transport and does not include authentication. Expressions must be mathematically valid; otherwise an error may occur.

评论

其他 分类下的更多 MCP 服务器