The Math-MCP server enables LLMs to perform accurate numerical calculations through a simple API, providing:
Basic Arithmetic: Addition, subtraction, multiplication, and division
Statistical Functions: Sum, mean/average, median, mode, minimum, and maximum of number lists
Rounding Functions: Floor (round down), ceiling (round up), and round to nearest integer
Math-MCP
A Model Context Protocol (MCP) server that provides basic mathematical and statistical functions to Large Language Models (LLMs). This server enables LLMs to perform accurate numerical calculations through a simple API.
Features
Basic arithmetic operations (addition, subtraction, multiplication, division)
Statistical functions (sum, average, min, max)
Rounding functions (floor, ceiling, round)
Related MCP server: MCP Calculator Server
Installation
Installing via Smithery
To install Math-MCP for Claude Desktop automatically via Smithery:
Installing Manually
Just clone this repository and save it locally somewhere on your computer.
Then add this server to your MCP configuration file:
Replace PATH\\TO\\PROJECT with the actual path to where you cloned the repository.
Available Functions
The Math-MCP server provides the following mathematical operations:
Function | Description | Parameters |
| Adds two numbers together |
: The first addend
: The second addend |
| Subtracts the second number from the first number |
: The number to subtract from
: The number being subtracted |
| Multiplies two numbers together |
: The first factor
: The second factor |
| Divides the first number by the second number |
: The number being divided
: The number to divide by |
| Adds any number of numbers together |
: Array of numbers to sum |
| Calculates the arithmetic mean of a list of numbers |
: Array of numbers to find the average of |
| Finds the minimum value from a list of numbers |
: Array of numbers to find the minimum of |
| Finds the maximum value from a list of numbers |
: Array of numbers to find the maximum of |
| Rounds a number down to the nearest integer |
: The number to round down |
| Rounds a number up to the nearest integer |
: The number to round up |
| Rounds a number to the nearest integer |
: The number to round |