Skip to main content

A Model Context Protocol server for calculating

Project description

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.

Project details


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.1.2.tar.gz (15.2 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.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mcp_server_calculator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b3fc36957f9dcfadaff1d8f660402527b9b66f80ea7f02ab3b975ca0eb43d395
MD5 e23574086c22566e592cceba487e3cf7
BLAKE2b-256 226aaf9685fca81936156c0c01c946f9fe890c9b937c647d0f8cc40494c53833

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_calculator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7937b7c2f5dd729b08bbfe300fdfb8e3f65f0b3894c1e8113ce73a03edcbf05f
MD5 a37e99a77ed9accbb32e1a148db183fd
BLAKE2b-256 19f8c6db96ccc9e075c464992e07ba1f9bc0292bfa1a15d7d480342bb9a373a9

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