pongiotdevelop/MCP_Server_Calculator
If you are the rightful owner of MCP_Server_Calculator and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The MCP Calculator Server is a comprehensive tool for performing mathematical and statistical calculations through a standardized interface.
MCP Calculator Server
Introduction
A comprehensive Model Context Protocol (MCP) server that provides mathematical and statistical calculation tools. This server enables AI assistants to perform complex mathematical operations, statistical analysis, and symbolic calculus through a standardized interface.
Features
- Basic Arithmetic: Addition, subtraction, multiplication, division
- Advanced Math: Power, square root, trigonometric functions (sin, cos, tan, asin, acos, atan)
- Statistics: Mean, median, mode, max, min, variance, standard deviation
- Calculus: Symbolic differentiation and integration
- List Operations: Statistical analysis on arrays of numbers
Installation
Prerequisites
- Python 3.10+ (recommended: Python 3.11+)
- uv (recommended) or pip
- Clone the repository:
git clone <repository-url>
cd MCP_Server_Calculator
Integration with Cherry Studio
-
Open Cherry Studio settings
-
Navigate to MCP Servers configuration
-
Add a new server with:
- Name: Calculator
- type: stdio
- Command:
uv
- Args:
["--directory"]
["path/to/MCP_Server_Calculator"]
["run"]
["main.py"]
or "Calculator": { "name": "calculator", "type": "stdio", "description": "", "isActive": true, "command": "uv", "args": [ "--directory", "[path of the ]", "run", "main.py" ] },
-
Save and restart Cherry Studio
Usage Examples
Basic Arithmetic
sum(5, 3)
→ 8div(10, 2)
→ 5.0
Trigonometry
sin(1.57)
→ 0.999... (π/2 radians)cos(0)
→ 1.0
Statistics
mean([1, 2, 3, 4, 5])
→ 3.0std_dev([1, 2, 3, 4, 5])
→ 1.58...
Calculus
differentiate("x**2 + 3*x + 1")
→ "2*x + 3"integrate("2*x + 3")
→ "x**2 + 3*x"
License
MIT License