Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-server-calculator

MCP.Pizza Chef: githejie

The mcp-server-calculator is a Model Context Protocol server that provides LLMs with the ability to perform accurate numerical calculations. It exposes a calculate tool that evaluates mathematical expressions, allowing models to handle complex arithmetic tasks reliably. Installation is straightforward via pip or the uv tool, making it easy to integrate into MCP workflows for enhanced computational capabilities.

Use This MCP server To

Evaluate complex mathematical expressions within LLM workflows Perform precise arithmetic calculations for data analysis Enable LLMs to verify numerical results in real time Automate calculation tasks in AI-driven applications Integrate calculator functionality into chatbots and assistants Support financial and scientific computations in model interactions

README

Calculator MCP Server

A Model Context Protocol server for calculating. This server enables LLMs to use calculator for precise numerical calculations.

Available Tools

  • calculate - Calculates/evaluates the given expression.
    • expression (string, required): Expression to be calculated

Installation

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run mcp-server-calculator.

curl -LsSf https://astral.sh/uv/install.sh | sh

Using PIP

Alternatively you can install mcp-server-calculator via pip:

pip install mcp-server-calculator

After installation, you can run it as a script using:

python -m mcp_server_calculator

Configuration

Using uv (recommended)

Add this to your MCP client settings:

"mcpServers": {
  "calculator": {
    "command": "uvx",
    "args": ["mcp-server-calculator"]
  }
}

Using PIP

Alternatively add this to your MCP client settings:

"mcpServers": {
  "calculator": {
    "command": "python",
    "args": ["-m", "mcp_server_calculator"]
  }
}

License

mcp-server-calculator is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

mcp-server-calculator FAQ

How do I install the mcp-server-calculator?
You can install it via pip using 'pip install mcp-server-calculator' or run it directly with uvx.
How does the calculator server integrate with MCP clients?
Add the calculator server configuration to your MCP client settings to enable communication and tool usage.
What kind of expressions can the calculate tool evaluate?
It supports standard mathematical expressions including arithmetic operations and functions.
Can this server be used with different LLM providers?
Yes, it is provider-agnostic and works with Open AI, Claude, Gemini, and others.
Is there any special configuration needed to run the server?
No special configuration is required beyond installing and adding it to your MCP client settings.
How does this server improve LLM capabilities?
It allows LLMs to perform exact numerical calculations, reducing errors in math-related tasks.