
Math
Exposes five calculation tools via MCP: a safe expression evaluator supporting functions like sqrt, sin, and log with constants and variables; a unit converter covering length, weight, temperature, data, time, and speed; a statistics calculator for mean, median, variance, standard deviation, and correlation; a number formatter for currency, percentage, scientific notation, and different bases; and a percentage calculator for tips, discounts, and markup. Runs as a Node.js stdio server. Reach for this when you need Claude to handle numerical operations beyond simple arithmetic, whether converting 100 km/h to mph, calculating summary statistics on a dataset, or formatting financial figures with proper separators and currency symbols.
- tools
- 22
- transport
- STDIO
- last updated
- Mar 22, 2026
Tools
22 toolsPublic tool metadata for what this MCP can expose to an agent.
addAdds two numbers together2 params
Adds two numbers together
firstNumbernumbersecondNumbernumbersubtractSubtracts the second number from the first number2 params
Subtracts the second number from the first number
minuendnumbersubtrahendnumbermultiplyMultiplies two numbers together2 params
Multiplies two numbers together
SecondNumbernumberfirstNumbernumberdivisionDivides the first number by the second number2 params
Divides the first number by the second number
denominatornumbernumeratornumbersumAdds any number of numbers together1 params
Adds any number of numbers together
numbersarraymoduloDivides two numbers and returns the remainder2 params
Divides two numbers and returns the remainder
denominatornumbernumeratornumbermeanCalculates the arithmetic mean of a list of numbers1 params
Calculates the arithmetic mean of a list of numbers
numbersarraymedianCalculates the median of a list of numbers1 params
Calculates the median of a list of numbers
numbersarraymodeFinds the most common number in a list of numbers1 params
Finds the most common number in a list of numbers
numbersarrayminFinds the minimum value from a list of numbers1 params
Finds the minimum value from a list of numbers
numbersarraymaxFinds the maximum value from a list of numbers1 params
Finds the maximum value from a list of numbers
numbersarrayfloorRounds a number down to the nearest integer1 params
Rounds a number down to the nearest integer
numbernumberceilingRounds a number up to the nearest integer1 params
Rounds a number up to the nearest integer
numbernumberroundRounds a number to the nearest integer1 params
Rounds a number to the nearest integer
numbernumbersinCalculates the sine of a number in radians1 params
Calculates the sine of a number in radians
numbernumberarcsinCalculates the arcsine of a number in radians1 params
Calculates the arcsine of a number in radians
numbernumbercosCalculates the cosine of a number in radians1 params
Calculates the cosine of a number in radians
numbernumberarccosCalculates the arccosine of a number in radians1 params
Calculates the arccosine of a number in radians
numbernumbertanCalculates the tangent of a number in radians1 params
Calculates the tangent of a number in radians
numbernumberarctanCalculates the arctangent of a number in radians1 params
Calculates the arctangent of a number in radians
numbernumberradiansToDegreesConverts a radian value to its equivalent in degrees1 params
Converts a radian value to its equivalent in degrees
numbernumberdegreesToRadiansConverts a degree value to its equivalent in radians1 params
Converts a degree value to its equivalent in radians
numbernumberSponsors
Readme
mcp-math-tools
Math and calculation tools for AI agents, exposed via the Model Context Protocol (MCP).
Tools
calculate
Evaluate math expressions safely (no eval). Supports arithmetic operators (+, -, *, /, ^, %), parentheses, functions (sqrt, abs, floor, ceil, round, log, ln, sin, cos, tan, min, max, pow), constants (pi, e), and named variables.
convert_units
Convert between units across six categories:
- Length: m, km, cm, mm, mi, yd, ft, in
- Weight: kg, g, mg, lb, oz, ton
- Temperature: C, F, K
- Data: B, KB, MB, GB, TB
- Time: s, min, h, d, week
- Speed: m/s, km/h, mph, knots
statistics
Statistical analysis on datasets: mean, median, mode, variance, standard deviation, min, max, range, percentile, correlation between two arrays, and a full summary mode.
format_number
Format numbers as: currency ($1,234.56), percentage, scientific notation, binary, octal, hexadecimal, significant figures, or with thousands separators.
Details
- Repository
- github.com/rog0x/mcp-math-tools
- Package
@rog0x/mcp-math-tools- Transport
- STDIO
- Registry
- MCP registry, active