cal-mcp
An MCP server for mathematical expression calculation, enabling AI models to perform calculations via MCP.
About this tool
cal-mcp
A lightweight MCP server for mathematical expression calculation, enabling AI models to perform calculations via MCP.
- Source: GitHub Repository
- Category: Data Analysis & Exploration MCP Servers
- Tags: calculation, mathematics, mcp, open-source, ai-integration
- License: MIT
Features
- Mathematical Expression Calculation: Parses and computes mathematical expressions input by the user.
- Built-in Constants:
E: Mathematical constant Math.E from the Bun environmentPI: Mathematical constant Math.PI from the Bun environmenttrue: Boolean truefalse: Boolean false
- Expression Examples:
- Basic operations:
2 + 2→4 - Using constants:
PI * 2→6.283185307179586 - Complex expressions:
E ^ 2 + 1→8.38905609893065
- Basic operations:
- Interaction via stdio: The service communicates through standard input/output.
- Lightweight and Efficient: Designed as a simple tool for calculation, using the Bun runtime for efficiency.
- Parameter Handling: Accepts a string mathematical expression as input parameter (
exp). - Dependency on FastMCP and expr-eval: Utilizes these libraries for MCP service construction and math expression evaluation.
- Parameter Validation: Uses
zodfor validating input parameters. - Installation Options:
- Installable via Smithery CLI for Claude Desktop
- Manual installation with Bun
- Open Source: Source code is available under the MIT license.
Requirements
- Bun Runtime: Requires Bun (latest version recommended).
Usage
- Start the service with
bun run index.ts, then send mathematical expressions via stdio to receive results.
Pricing
- Open Source: cal-mcp is free to use under the MIT license. No paid plans are mentioned.
Loading more......
Information
Categories
Similar Products
6 result(s)An MCP server that enables LLMs to use a calculator for precise numerical calculations through the MCP protocol.
A Model Context Protocol server that exposes over 200+ APIs from API.market as MCP resources, allowing large language models to discover and interact with various APIs. A robust and feature-rich MCP server for API aggregation.
Bridges Microsoft's AutoGen framework with external tools, enabling autonomous agents to execute code, perform research, and collaborate in multi-agent conversations for complex problem-solving tasks via an MCP server.
A Model Context Protocol (MCP) server that enhances AI-generated content to sound more natural and human-like, with features like AI detection and text refinement. Highly relevant as an example of an advanced MCP server implementation.
A Model Context Protocol implementation for managing and serving AI prompts with a TypeScript architecture, showcasing MCP server capabilities for AI prompt management.
A server that enables Claude Desktop users to access the Claude API directly, bypass Professional Plan limitations, and use advanced features like custom system prompts and conversation management. A practical MCP server for enhanced Claude integration.