# mcp-server-calculator

> MCP Server

The Calculator MCP Server repository provides a Model Context Protocol server, enabling LLMs to perform precise calculations using a `calculate` tool that evaluates given mathematical expressions. The Calculator MCP Server

## Overview

- **Category:** AI
- **Language:** Python
- **Stars:** 155
- **Forks:** 0
- **Owner:** githejie
- **GitHub:** https://github.com/githejie/mcp-server-calculator
- **Created:** 2025-03-19T11:36:59+00:00
- **Updated:** 2025-03-28T07:34:11+00:00
- **Source:** https://model-context-protocol.com/servers/calculator-mcp-server-mathematical-expressions

## Setup

## Setup

**Using uv (recommended)**

1.  Install `uv` using: `curl -LsSf https://astral.sh/uv/install.sh | sh`
2.  Add the following to your MCP client settings:

```json
"mcpServers": {
  "calculator": {
    "command": "uvx",
    "args": ["mcp-server-calculator"]
  }
}
```

**Using PIP**

1.  Install `mcp-server-calculator` via pip: `pip install mcp-server-calculator`
2.  Run it as a script using: `python -m mcp_server_calculator`
3.  Add the following to your MCP client settings:

```json
"mcpServers": {
  "calculator": {
    "command": "python",
    "args": ["-m", "mcp_server_calculator"]
  }
}
```

## Tools

## Available Tools

1.  `calculate` - Calculates/evaluates the given expression.
