MCP.so
Sign In

Calculator MCP Server

@githejie

Basic information

Category

Other

License

MIT

Transports

stdio

Author

githejie

About Calculator MCP Server

A Model Context Protocol server for calculating.

Calculator MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

Calculator MCP Server tools

1

Calculates/evaluates the given expression.

Overview

What is Calculator MCP Server?

A Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions. It provides a single tool for calculating expressions.

How to use Calculator MCP Server?

Install it via uvx (recommended) or pip install mcp-server-calculator. Then add the following configuration to your MCP client settings: for uvx use "command": "uvx", "args": ["mcp-server-calculator"]; for pip use "command": "python", "args": ["-m", "mcp_server_calculator"].

Key features of Calculator MCP Server

  • Provides a single calculate tool for expression evaluation.
  • Accepts a required expression string parameter.
  • Designed for integration with any MCP‑compatible client.
  • No persistent storage or external dependencies beyond Python.
  • Licensed under the MIT License for free use and modification.

Use cases of Calculator MCP Server

  • An LLM performing arithmetic or algebraic calculations during a conversation.
  • Validating complex numerical expressions before presenting results.
  • Offloading exact computation to a dedicated tool to reduce errors.
  • Embedding precise mathematical capabilities into AI assistants.

Frequently asked questions

1

What tool does the Calculator MCP Server provide?

It exposes a single tool called `calculate` that takes an `expression` (string, required) and evaluates it.

2

How do I install the Calculator MCP Server?

You can install it using `uvx` (no separate install needed) or via `pip install mcp-server-calculator`. After pip installation, run `python -m mcp_server_calculator`.

3

How do I configure the Calculator MCP Server with my MCP client?

Add a JSON block to your client’s settings: for `uvx` use `"command": "uvx", "args": ["mcp-server-calculator"]`; for `pip` use `"command": "python", "args": ["-m", "mcp_server_calculator"]`.

4

Does the Calculator MCP Server require any specific runtime?

It requires Python and the MCP client. When using `uvx`, the `uv` tool handles the runtime automatically.

5

Is the Calculator MCP Server open source?

Yes, it is licensed under the MIT License, allowing free use, modification, and distribution.

Comments

More Other MCP servers