Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_calculator-0.2.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_calculator-0.2.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_calculator-0.2.1.tar.gz.

File metadata

  • Download URL: mcp_server_calculator-0.2.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.1

File hashes

Hashes for mcp_server_calculator-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f3d0132962c1b4bcb180f78bac687894ff9f805f63a88e1f10fe84c9842e10ad
MD5 cef9d94cbd1fe4d950d386fc5eee0a0a
BLAKE2b-256 6a1eabb31f24e74b774fef17c89a351e5622266d90405a64194635aebff5d716

See more details on using hashes here.

File details

Details for the file mcp_server_calculator-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_calculator-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eda19514247f3445dc4d6c60365251543d6e65837ba4a132cb447e8e686e9c52
MD5 1780f1209444807cae210ff6e64908eb
BLAKE2b-256 4fc8638a98c1bfa6d390ee7d4d228738fc859a7e6ce740b5ecdaae9372982414

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page