MCP_Server_Calculator

pongiotdevelop/MCP_Server_Calculator

3.2

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
  1. Clone the repository:
git clone <repository-url>
cd MCP_Server_Calculator

Integration with Cherry Studio

  1. Open Cherry Studio settings

  2. Navigate to MCP Servers configuration

  3. 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" ] },

  4. Save and restart Cherry Studio

Usage Examples

Basic Arithmetic

  • sum(5, 3) → 8
  • div(10, 2) → 5.0

Trigonometry

  • sin(1.57) → 0.999... (π/2 radians)
  • cos(0) → 1.0

Statistics

  • mean([1, 2, 3, 4, 5]) → 3.0
  • std_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

Acknowledgements