Calculator
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
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
Maintainer
Works with
Installation
NPM
npx -y @tech-sushant/calculator-mcpManual Installation
npx -y @tech-sushant/calculator-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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-calculatorAlternatively, 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_calculatorAdd 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"]
}
}
}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.
Calculator Alternatives — Similar Developer Tools Servers
Looking for alternatives to Calculator? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up Calculator in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.