Calculator logo

Calculator

Free

使 LLM 能够使用计算器进行精确的数值计算。

FreeFree tier
Inputs: text
Type
Open Source

About Calculator

The Calculator MCP Server is a Model Context Protocol server that enables LLMs to use a calculator for precise numerical calculations. It provides a single tool called 'calculate' that evaluates mathematical expressions. Installation is straightforward via uvx (using uv) or pip, and configuration with MCP clients is simple. The server is licensed under MIT and is available as an open-source project on GitHub.

Key Features

Provides a single 'calculate' tool that evaluates mathematical expressions
Installation via uvx (recommended) or pip
Easy configuration with MCP client settings
Licensed under the MIT license
Python-based with Dockerfile support

Pros & Cons

Pros
  • Open source under the permissive MIT license
  • Enables LLMs to make precise calculations, avoiding language model errors
  • Lightweight and easy to install via uvx or pip
  • Well-documented installation and configuration instructions
Cons
  • Only provides a single calculation tool, limiting functionality
  • Requires an MCP client to operate and is not standalone
  • No advanced math functions beyond basic expression evaluation
  • Installation requires external tools (uv or Python/pip)

Best For

Integrating precise numerical calculations into LLM applications via MCPServing as a simple demonstration or template MCP serverPerforming arithmetic in workflows where LLMs need exact results

FAQ

What does the Calculator MCP Server do?
It enables LLMs to perform precise numerical calculations by providing a 'calculate' tool that evaluates mathematical expressions.
How to install the Calculator MCP Server?
It can be installed via uvx (using uv) or pip. See the GitHub README for detailed instructions.
How to configure it with an MCP client?
Add a configuration entry in your MCP client settings with command 'uvx' and args 'mcp-server-calculator' or using 'python -m mcp_server_calculator'.