mcp-math-tools
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-math-tools Calculate 15% tip on $85.50 split 3 ways"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
percentage_calc
Common percentage operations: X% of Y, what percent X is of Y, percentage change between two values, tip calculator, discount calculator, and markup calculator.
Related MCP server: calculator-mcp-server
Installation
npm install
npm run buildUsage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"math-tools": {
"command": "node",
"args": ["path/to/mcp-math-tools/dist/index.js"]
}
}
}Examples
Calculate: 2 * (3 + 4) ^ 2 returns 98
Convert: 100 from km/h to mph returns 62.137...
Statistics: summary of [1, 2, 3, 4, 5] returns mean, median, mode, variance, etc.
Format: 1234567.89 as currency returns $1,234,567.89
Percentage: 15% tip on 85.50 bill split 3 ways
License
MIT
Available Tools
5 toolscalculateB
Evaluate a mathematical expression safely. Supports: +, -, *, /, ^ (power), % (modulo), sqrt(), abs(), floor(), ceil(), round(), log() (base 10), ln() (natural), sin(), cos(), tan(), min(), max(), pow(), pi, e. Supports named variables.
Inputs: expression (required), variables.
convert_unitsA
Convert a value between units. Supported categories: length (m, ft, in, km, mi, cm, mm, yd), weight (kg, lb, oz, g, mg, ton), temperature (C, F, K), data (B, KB, MB, GB, TB), time (s, min, h, d, week), speed (m/s, km/h, mph, knots).
Inputs: to (required), from (required), value (required).
format_numberA
Format a number in various ways: currency ($1,234.56), percentage (0.15 -> 15%), scientific notation, binary, octal, hexadecimal, significant figures, thousands separator.
Inputs: value (required), format (required), decimals, separator, +2 more.
percentage_calcA
Common percentage calculations. Operations: percent_of (X% of Y), what_percent (X is what % of Y), percentage_change (old to new), tip (bill + tip% + optional split), discount (price - discount%), markup (cost + markup%).
Inputs: operation (required), part, value, percent, +3 more.
statisticsA
Calculate statistics on a dataset. Operations: mean, median, mode, variance, stddev, min, max, range, percentile, correlation. For percentile provide the 'percentile' parameter (0-100). For correlation provide a second dataset 'dataY'.
Inputs: data (required), operation (required), dataY, percentile, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly defined primary purpose: expression evaluation, unit conversion, statistical analysis, number formatting, and percentage calculations. There is minor overlap where calculate can handle some percentage and min/max operations, but the descriptions make the intended use cases distinguishable.
Tool names are all lowercase and snake_case, which is readable, but they mix verb-led names like convert_units and format_number with noun-led names like statistics and percentage_calc. The use of both 'calculate' and 'calc' for the same concept also breaks consistency.
Five tools is well-scoped for a math-focused server. Each tool addresses a distinct common math need without unnecessary redundancy or excessive surface area.
The server covers core math operations, unit conversions, statistics, number formatting, and percent calculations, which are the most common use cases. It could be expanded with features like random number generation or matrix operations, but these are not obvious gaps for the stated purpose.
Maintenance
Related MCP Connectors
Unofficial Math.js MCP — wraps the mathjs.org API (free, no auth)
Safe scientific calculator MCP for numeric expressions
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
60+ units, live FX, timezones, and date arithmetic for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive mathematical capabilities including basic arithmetic, advanced functions, statistical tools, and access to mathematical constants. It allows users to perform computations and generate math-related prompts through a standardized MCP interface.MIT
- AlicenseNot gradedqualityDmaintenanceProvides a comprehensive set of mathematical functions as MCP tools, enabling language models to perform calculations including arithmetic, trigonometry, logarithms, and more.1MIT
- AlicenseAqualityBmaintenanceProvides a safe scientific runtime for agents with typed math operations including calculus, algebra, statistics, unit conversion, and more via MCP tools.4Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to perform arithmetic operations such as addition, subtraction, multiplication, and division through standardized MCP tools.1-