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.1.tar.gz (14.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.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_calculator-0.1.1.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for mcp_server_calculator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6f1993996af2b3bb45818588baacb33ca5b99f9015ab3ce82d086abfe6241ec3
MD5 5f2299d4f1af872ab3ebcd15bb4be08e
BLAKE2b-256 5dd7756c4deaaca1e737fe72619f2f135fc005620a4d01cb6bc8175a49c3ee27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_calculator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b047a89aaffde254ed4636dedc80a6db3db65615db51b0135062244a7b7c0001
MD5 84d8ba40b5a8ded73763a0f64cac1acd
BLAKE2b-256 3156976fde723b2e40f759eac150e034139be8a8a920e1ccb82d16d951f1e81a

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