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)
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 |
local-only server
The server can only run on the client's local machine because it depends on local resources.
A Model Context Protocol server that provides basic mathematical and statistical functions to LLMs, enabling them to perform accurate numerical calculations through a simple API.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.Last updated -1121MIT License
- AsecurityFlicenseAqualityA simple Model Context Protocol server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models.Last updated -4
- AsecurityAlicenseAqualityA Model Context Protocol server that provides basic calculator functionality for LLMs, enabling them to perform mathematical operations like addition, subtraction, multiplication, division, modulo, and square root.Last updated -622214MIT License
- -securityAlicense-qualityA backend service that provides accurate arithmetic calculation capabilities to AI models via the Model Context Protocol, allowing LLMs to offload mathematical computations for numerical queries.Last updated -1MIT License