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 |
|
| Subtracts the second number from the first number |
|
| Multiplies two numbers together |
|
| Divides the first number by the second number |
|
| Adds any number of numbers together |
|
| Divides two numbers and returns the remainder |
|
| Rounds a number down to the nearest integer |
|
| Rounds a number up to the nearest integer |
|
| Rounds a number to the nearest integer |
|
Statistical Operations
Function | Description | Parameters |
| Calculates the arithmetic mean of a list of numbers |
|
| Calculates the median of a list of numbers |
|
| Finds the most common number in a list of numbers |
|
| Finds the minimum value from a list of numbers |
|
| Finds the maximum value from a list of numbers |
|
Trigonometric Operations
Function | Description | Parameters |
| Calculates the sine of a number in radians |
|
| Calculates the arcsine of a number in radians |
|
| Calculates the cosine of a number in radians |
|
| Calculates the arccosine of a number in radians |
|
| Calculates the tangent of a number in radians |
|
| Calculates the arctangent of a number in radians |
|
| Converts a radian value to its equivalent in degrees |
|
| Converts a degree value to its equivalent in radians |
|