Calculator

v1.0.1Developer Toolsstable

A mathematical utility server implementing the Model Context Protocol to provide tools for basic and advanced calculations. It enables users to perform operations such as addition, subtraction, powers, square roots, and percentages through natural la

calculator-mcp-servermcpai-integration
Share:
148
Stars
0
Downloads
0
Weekly
0/5

What is Calculator?

Calculator is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mathematical utility server implementing the model context protocol to provide tools for basic and advanced calculations. it enables users to perform operations such as addition, subtraction, powers, ...

A mathematical utility server implementing the Model Context Protocol to provide tools for basic and advanced calculations. It enables users to perform operations such as addition, subtraction, powers, square roots, and percentages through natural la

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A mathematical utility server implementing the Model Context

Use Cases

Perform complex mathematical calculations including powers, square roots, and percentages.
Execute advanced arithmetic operations through natural language descriptions.
githejie

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.1
UpdatedMay 12, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @tech-sushant/calculator-mcp

Manual Installation

npx -y @tech-sushant/calculator-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Calculator

The Calculator MCP Server is a lightweight mathematical utility that gives AI assistants a dedicated, precise computation tool for evaluating arithmetic and mathematical expressions. It exposes a single 'calculate' tool that accepts any mathematical expression string — covering basic operations, powers, square roots, percentages, and more — and returns an exact result, eliminating the rounding errors and hallucinated answers that LLMs can produce when doing mental arithmetic. Developers and data analysts use it as a reliable calculation layer within AI workflows where numerical precision matters.

Prerequisites

  • Python 3.10+ with uv/uvx available, OR Node.js 18+ with npx for the npm variant
  • An MCP client such as Claude Desktop or Claude Code
1

Run with uvx (Python path, recommended)

The canonical package on PyPI is mcp-server-calculator. Run it directly with uvx, which installs and executes it in an isolated environment.

uvx mcp-server-calculator
2

Alternatively, install via pip and run as a module

If you prefer pip, install the package globally and invoke it as a Python module.

pip install mcp-server-calculator
python -m mcp_server_calculator
3

Add to your MCP client configuration using uvx

Register the server in your MCP client config. Using uvx is preferred because it isolates the package and requires no prior installation step.

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

Restart your MCP client and verify

After saving the config and restarting your MCP client, ask Claude to perform a simple calculation to confirm the tool is available and returning results.

Calculator Examples

Client configuration

Example claude_desktop_config.json entry for the Calculator MCP server using uvx.

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

Prompts to try

Sample requests that demonstrate the calculate tool with various expression types.

- "What is 17.5% of 3,840?"
- "Calculate the square root of 15129."
- "Compute 2 to the power of 32."
- "What is (450 * 1.08) - (120 / 3) + 55.75?"
- "I have 847 items at $12.99 each with 8.5% tax. What is the total cost?"

Troubleshooting Calculator

uvx command not found when starting the server

Install uv with 'curl -LsSf https://astral.sh/uv/install.sh | sh' and restart your terminal. Then verify uvx is available with 'uvx --version'. Alternatively, switch to the pip installation method.

Expression evaluation returns an error or unexpected result

The calculate tool evaluates standard mathematical expressions. Use ** for exponentiation (e.g., 2**32), math.sqrt() for square roots, and standard operator precedence with parentheses for grouping. Avoid natural language within the expression string.

Claude does not use the calculator tool for math questions

Explicitly instruct Claude to use the calculator for precision: 'Use the calculator tool to compute...' This ensures the tool is invoked rather than Claude attempting mental arithmetic.

Frequently Asked Questions about Calculator

What is Calculator?

Calculator is a Model Context Protocol (MCP) server that mathematical utility server implementing the model context protocol to provide tools for basic and advanced calculations. it enables users to perform operations such as addition, subtraction, powers, square roots, and percentages through natural la It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Calculator?

Install via npm with the command: npx -y @tech-sushant/calculator-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Calculator?

Calculator works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Calculator free to use?

Yes, Calculator is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "calculator-mcp-server": { "command": "npx", "args": ["-y", "@tech-sushant/calculator-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Calculator?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides