Evaluates mathematical expressions through a Bun-based MCP tool over stdio, with constants such as PI and E.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent ā or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag ā we're steadily working through the catalog.
š” Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Cal MCP.
The pwh-pwh/cal-mcp MCP server exposes a single calculation tool named cal. It accepts one string parameter, exp, containing a mathematical expression, then returns the evaluated result as a string. Supported examples include 2 + 2, 2 + 3 * PI, and E ^ 2 + 1.
The expression environment includes the constants PI and E, mapped to Bun's Math.PI and Math.E. Boolean values true and false are also available. This makes the server suitable for arithmetic, expressions that use common mathematical constants, and simple boolean expressions supported by the parser.
The service is implemented with the FastMCP framework and uses the expr-eval library to parse and evaluate the supplied expression. zod is used for parameter validation. Communication takes place through stdio, so an MCP client starts the process locally and exchanges requests and responses through its standard input and output streams.
The server does not describe a database, file store, or third-party API integration. Its scope is expression evaluation. Invalid input must be a valid expression; otherwise, evaluation may raise an error.
Running the pwh-pwh/cal-mcp MCP server requires the Bun runtime, with the README recommending a current version. The repository's manual setup consists of cloning the project and running bun install from its directory. Start the implementation with bun run index.ts; the process then serves MCP messages over stdio.
An MCP client configuration can use bunx with the package name cal-mcp:
The README also documents installation through Smithery for Claude Desktop. A hosted deployment is listed through Fronteir AI, but the project notes that its own service currently supports stdio interaction.
The pwh-pwh/cal-mcp MCP server provides:
cal tool for evaluating a supplied expression.exp.expr-eval.PI and E constants.true and false.For example, PI * 2 evaluates to approximately 6.283185307179586. The available behavior is determined by the expression parser and the expressions it accepts; the README does not document additional domain-specific functions or tools.
The server currently supports stdio only when run from the project itself, and it depends on a Bun-compatible environment. Expressions that are malformed or unsupported can produce errors, so callers should validate or handle failures around tool requests. No authentication settings or environment variables are documented. The README identifies FastMCP, expr-eval, and zod as dependencies, but does not state a project license or describe access controls for the hosted deployment.
Factual signals from GitHub, npm, and our automated checks ā not a rating.
No reviews yet ā be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pwh-pwh-cal-mcp)<a href="https://allmcps.com/mcp/pwh-pwh-cal-mcp"><img src="https://allmcps.com/api/badge/pwh-pwh-cal-mcp?style=directory" alt="Cal MCP on AllMCPs" /></a>