EthanHenrickson/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.
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.
<a href="https://glama.ai/mcp/servers/exa5lt8dgd"> </a>
Just clone this repository and save it locally somewhere on your computer.
Then add this server to your MCP configuration file:
"math": {
"command": "node",
"args": ["PATH\\TO\\PROJECT\\math-mcp\\build\\index.js"]
}Replace PATH\\TO\\PROJECT with the actual path to where you cloned the repository.
The Math-MCP server provides the following mathematical operations:
| Function | Description | Parameters | |----------|-------------|------------| | add | Adds two numbers together | firstNumber: The first addend<br>secondNumber: The second addend | | subtract | Subtracts the second number from the first number | minuend: The number to subtract from (minuend)<br>subtrahend: The number being subtracted (subtrahend) | | multiply | Multiplies two numbers together | firstNumber: The first number<br>SecondNumber: The second number | | division | Divides the first number by the second number | numerator: The number being divided (numerator)<br>denominator: The number to divide by (denominator) | | sum | Adds any number of numbers together | numbers: Array of numbers to sum | | modulo | Divides two numbers and returns the remainder | numerator: The number being divi