PP

pwh-pwh/cal-mcp

Developer tools

This page was translated automatically. Technical details may differ from the original. View the original

14 stars 6 forks Quality 69 Trend 34MIT

MCP TO CALCULATE MATHEMATICAL EXPRESSION

Overview

Cal Server is a simple mathematical expression computing service based on the FastMCP framework, using the Bun Runtime environment. It interprets and calculates the mathematical expressions entered by users using the expr-eval library and interacts with the outside world through the standard input output (stdio). The project aims to provide a light, efficient computing tool to support basic mathematical computing and built-in constants. - Supports the user to enter a mathematical expression and returns the calculation. - E:Bun environment Math.E. - PI: Bun Environment Math.PI. - True: Logical truth. - false: logical false value. - :cal. - Accepts a string type of mathematical expression (exp). - Fastmcp: For building MCP services. - Expr-eval: used to interpret and calculate mathematical expressions. - zod: For the verification of parameters. To establish cal-mcp for Claude Desktop obviously via Smithery: Enter a mathematical expression: - Example input: 2 + 3 *PI - Output: Calculate results (string form). 3. Examples of expressions supported: - Basic: 2 + 2 → 4 - Use constant: PI* 2 →6.2831853007179586 - Complex expression: E ^ 2 + 1 → 838905609893065 - The entered expression must be a valid mathematical expression, otherwise an error may be thrown. - The service currently supports only interaction through stdio. - Ensure that the command is compatible with Bun while the project is running. A hosted decision is available on Frontair AI.

Overview (machine translated)

Project Profile

[[T0] is a simple mathematical expression calculation service based on the [[T1] framework, using the Bun time environment. It interprets and calculates the mathematical expressions entered by users using the [[T2] library and interacts with the outside world through the standard input output (stdio). The project aims to provide a light, efficient computing tool to support basic mathematical computing and built-in constants.

function

-** Expression calculations**: support users to enter mathematical expressions and return the calculation results.

  • ** Inline constant**:
  • [[T3]: in the Bun environment [[T4].
  • [[T5]: [[T6] in the Bun environment.
  • [(T7]: Logical truth.
  • [(T8]: Logical false values. -Tool name: [[T9].
  • ** Parameter**: acceptance of a string type of mathematical expression exp.

Reliance

  • [[T11]: For construction of MCP services.
  • [[T12]: used for the interpretation and computation of mathematical expressions.
  • [(T13]: For the verification of parameters.

Preconditions

  • Ensure that Bun run time is installed (recommended for the latest version).

Install

Installing via Smithery

To establish cal-mcp for Claude Desktop obviously via Smithery:

# mcp client configuration

Manual Innovation

  1. Cloning project warehouse:

Access to the project catalogue and installation dependencies:

Use method

  1. Start-up services:

The service will be run through the standard input output (stdio).

  1. Enter a mathematical expression:
  • Example input: [(T14]
  • Output: Calculate results (in string form).
  1. Examples of expressions supported:
  • Basic operations: [[T15] 4
  • Use constant: [(T17]] [[T18]
  • Complex expression: [[T19] [T20]

Attention

  • The entered expression must be a valid mathematical expression, otherwise an error may be thrown.
  • The service currently supports only the adoption of [[T21] interactions.
  • Ensure that the command is compatible with Bun while the project is running.

Hosted development

A hosted decision is available on Frontair AI.

This page was translated automatically. Technical details may differ from the original.

Install

npx -y @smithery/cli install @pwh-pwh/cal-mcp --client claude
New to MCP? Start with the mcpskill.org guide →