{
  "markdown": "\n# mcp-math-tools\n\nMath and calculation tools for AI agents, exposed via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io).\n\n## Tools\n\n### `calculate`\nEvaluate 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.\n\n### `convert_units`\nConvert between units across six categories:\n- **Length**: m, km, cm, mm, mi, yd, ft, in\n- **Weight**: kg, g, mg, lb, oz, ton\n- **Temperature**: C, F, K\n- **Data**: B, KB, MB, GB, TB\n- **Time**: s, min, h, d, week\n- **Speed**: m/s, km/h, mph, knots\n\n### `statistics`\nStatistical analysis on datasets: mean, median, mode, variance, standard deviation, min, max, range, percentile, correlation between two arrays, and a full summary mode.\n\n### `format_number`\nFormat numbers as: currency (`$1,234.56`), percentage, scientific notation, binary, octal, hexadecimal, significant figures, or with thousands separators.\n\n### `percentage_calc`\nCommon percentage operations: X% of Y, what percent X is of Y, percentage change between two values, tip calculator, discount calculator, and markup calculator.\n\n## Installation\n\n```bash\nnpm install\nnpm run build\n```\n\n## Usage with Claude Desktop\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"math-tools\": {\n      \"command\": \"node\",\n      \"args\": [\"path/to/mcp-math-tools/dist/index.js\"]\n    }\n  }\n}\n```\n\n## Examples\n\n**Calculate**: `2 * (3 + 4) ^ 2` returns `98`\n\n**Convert**: `100` from `km/h` to `mph` returns `62.137...`\n\n**Statistics**: summary of `[1, 2, 3, 4, 5]` returns mean, median, mode, variance, etc.\n\n**Format**: `1234567.89` as `currency` returns `$1,234,567.89`\n\n**Percentage**: `15%` tip on `85.50` bill split 3 ways\n\n## License\n\nMIT\n",
  "bytes": 1881,
  "sha": "2b9fa8fc6f88234904593850342bdbdd9ae9c23bd79f13d11dbe6ecdf79cb1d3",
  "repo_slug": "rog0x/mcp-math-tools",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_rog0x_math_5c474009/readme"
}