MCP Now
Calculator

Calculator

by githejie
GitHub

This server enables LLMs to use calculator for precise numerical calculations.

pip
license
server
use
expression

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.

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

Using PIP

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

1pip install mcp-server-calculator

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

1python -m mcp_server_calculator

Configuration

Add this to your MCP client settings:

1"mcpServers": { 2 "calculator": { 3 "command": "uvx", 4 "args": ["mcp-server-calculator"] 5 } 6}

Using PIP

Alternatively add this to your MCP client settings:

1"mcpServers": { 2 "calculator": { 3 "command": "python", 4 "args": ["-m", "mcp_server_calculator"] 5 } 6}

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.