mcpField
C
Calculator MCP Server

Calculator MCP Server

Local
github.com/githejieScience & Education160Updated 12w ago

About Calculator MCP Server

Calculator MCP Server is an MCP server for numerical calculation that lets LLMs evaluate expressions precisely. It can be installed with uv or pip and suits workflows that need exact numeric results.

Key features

  1. 01calculate tool evaluates a given expression
  2. 02Runs directly with uvx
  3. 03Installable with pip and runnable as a module
  4. 04Released under the MIT License

Use cases

  1. 01Having an LLM perform exact numerical calculations
  2. 02Calling a calculation tool during conversations that need deterministic results

MCP support

The server exposes a tool named calculate to MCP clients, which takes a string expression parameter and returns the result. Clients start it through mcpServers configuration using uvx or python -m.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project 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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.