trackmcp
Back to directory
githejie

mcp-server-calculator

View on GitHub

A Model Context Protocol server for calculating. Python-based implementation.

128 stars PythonAI & Machine Learning Updated Oct 12, 2025

Documentation

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

When using `uv` no specific installation is needed. We will

use `uvx` to directly run *mcp-server-calculator*.

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

Using PIP

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

bash
pip install mcp-server-calculator

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

bash
python -m mcp_server_calculator

Configuration

Add this to your MCP client settings:

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

Using PIP

Alternatively add this to your MCP client settings:

json
"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.

Frequently asked questions

What is mcp-server-calculator?

mcp-server-calculator is A Model Context Protocol server for calculating. Python-based implementation.

How do I install mcp-server-calculator?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is mcp-server-calculator open source?

Yes — it is hosted on GitHub at https://github.com/githejie/mcp-server-calculator and has 128 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP