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, statistical and trigonometric 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, mean, median, mode, min, max)
Rounding functions (floor, ceiling, round)
Trigonometric functions (sin, cos, tan, and their inverses; degrees/radians conversions)
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:
Arithmetic 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 (minuend)
: The number being subtracted (subtrahend) |
| Multiplies two numbers together |
: The first number
: The second number |
| Divides the first number by the second number |
: The number being divided (numerator)
: The number to divide by (denominator) |
| Adds any number of numbers together |
: Array of numbers to sum |
| Divides two numbers and returns the remainder |
: The number being divided (numerator)
: The number to divide by (denominator) |
| 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 |
Statistical Operations
Function | Description | Parameters |
| Calculates the arithmetic mean of a list of numbers |
: Array of numbers to find the mean of |
| Calculates the median of a list of numbers |
: Array of numbers to find the median of |
| Finds the most common number in a list of numbers |
: Array of numbers to find the mode 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 |
Trigonometric Operations
Function | Description | Parameters |
| Calculates the sine of a number in radians |
: The number in radians to find the sine of |
| Calculates the arcsine of a number in radians |
: The number to find the arcsine of |
| Calculates the cosine of a number in radians |
: The number in radians to find the cosine of |
| Calculates the arccosine of a number in radians |
: The number to find the arccosine of |
| Calculates the tangent of a number in radians |
: The number in radians to find the tangent of |
| Calculates the arctangent of a number in radians |
: The number to find the arctangent of |
| Converts a radian value to its equivalent in degrees |
: The number in radians to convert to degrees |
| Converts a degree value to its equivalent in radians |
: The number in degrees to convert to radians |