Skip to content
Back to search

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.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/EthanHenrickson/math-mcp with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/EthanHenrickson/math-mcp'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/ethanhenrickson--math-mcp/badge.svg)](/listings/ethanhenrickson--math-mcp)

HTML

<a href="/listings/ethanhenrickson--math-mcp"><img src="/api/listings/ethanhenrickson--math-mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

> **Note:** Ensure you have [Node.js](https://nodejs.org/en/download) installed on your computer.

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"]
}

Here is an example for OpenCode

{
  "mcp": {
    "math-mcp": {
      "type": "local",
      "command": [
        "node",
        "PATH\\TO\\PROJECT\\math-mcp\\build\\index.js"
      ]
    }
  }
}

Replace `PATH\\TO\\PROJECT` with the actual path to where you cloned the repository.

> **Note:** This project comes prebuilt, so installation is easy but if you change anything in the code, rebuild the project with `npm run build`.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 86 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Math-MCP
  2. 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.
  3. <a href="https://glama.ai/mcp/servers/exa5lt8dgd">
  4. <img width="380" height="200" src="https://glama.ai/mcp/servers/exa5lt8dgd/badge" alt="Math-MCP MCP server" />
  5. </a>
  6. ## Features
  7. - Basic arithmetic operations (addition, subtraction, multiplication, division, sum, modulo)
  8. - Statistical functions (mean, median, mode, min, max)
  9. - Rounding functions (floor, ceiling, round)
  10. - Trigonometric functions (sin, cos, tan, and their inverses; degrees/radians conversions)
  11. ## Installation
  12. > **Note:** Ensure you have [Node.js](https://nodejs.org/en/download) installed on your computer.
  13. Just clone this repository and save it locally somewhere on your computer.
  14. Then add this server to your MCP configuration file:
  15. ```json
  16. "math": {
  17. "command": "node",
  18. "args": ["PATH\\TO\\PROJECT\\math-mcp\\build\\index.js"]
  19. }
  20. ```
  21. Here is an example for OpenCode
  22. ```json
  23. {
  24. "mcp": {
  25. "math-mcp": {
  26. "type": "local",
  27. "command": [
  28. "node",
  29. "PATH\\TO\\PROJECT\\math-mcp\\build\\index.js"
  30. ]
  31. }
  32. }
  33. }
  34. ```
  35. Replace `PATH\\TO\\PROJECT` with the actual path to where you cloned the repository.
  36. > **Note:** This project comes prebuilt, so installation is easy but if you change anything in the code, rebuild the project with `npm run build`.
  37. ## Available Functions
  38. The Math-MCP server provides the following mathematical operations:
  39. ### Arithmetic Operations
  40. | Function | Description | Parameters |
  41. |----------|-------------|------------|
  42. | `add` | Adds two numbers together | `firstNumber`: The first addend<br>`secondNumber`: The second addend |
  43. | `subtract` | Subtracts the second number from the first number | `minuend`: The number to subtract from (minuend)<br>`subtrahend`: The number being subtracted (subtrahend) |
  44. | `multiply` | Multiplies two numbers together | `firstNumber`: The first number<br>`secondNumber`: The second number |
  45. | `division` | Divides the first number by the second number | `numerator`: The number being divided (numerator)<br>`denominator`: The number to divide by (denominator) |
  46. | `sum` | Adds any number of numbers together | `numbers`: Array of numbers to sum |
  47. | `modulo` | Divides two numbers and returns the remainder | `numerator`: The number being divided (numerator)<br>`denominator`: The number to divide by (denominator) |
  48. | `floor` | Rounds a number down to the nearest integer | `number`: The number to round down |
  49. | `ceiling` | Rounds a number up to the nearest integer | `number`: The number to round up |
  50. | `round` | Rounds a number to the nearest integer | `number`: The number to round |
  51. ### Statistical Operations
  52. | Function | Description | Parameters |
  53. |----------|-------------|------------|
  54. | `mean` | Calculates the arithmetic mean of a list of numbers | `numbers`: Array of numbers to find the mean of |
  55. | `median` | Calculates the median of a list of numbers | `numbers`: Array of numbers to find the median of |
  56. | `mode` | Finds the most common number in a list of numbers | `numbers`: Array of numbers to find the mode of |
  57. | `min` | Finds the minimum value from a list of numbers | `numbers`: Array of numbers to find the minimum of |
  58. | `max` | Finds the maximum value from a list of numbers | `numbers`: Array of numbers to find the maximum of |
  59. ### Trigonometric Operations
  60. | Function | Description | Parameters |
  61. |----------|-------------|------------|
  62. | `sin` | Calculates the sine of a number in radians | `number`: The number in radians to find the sine of |
  63. | `arcsin` | Calculates the arcsine (in radians) of a number | `number`: The number to find the arcsine of |
  64. | `cos` | Calculates the cosine of a number in radians | `number`: The number in radians to find the cosine of |
  65. | `arccos` | Calculates the arccosine (in radians) of a number | `number`: The number to find the arccosine of |
  66. | `tan` | Calculates the tangent of a number in radians | `number`: The number in radians to find the tangent of |
  67. | `arctan` | Calculates the arctangent (in radians) of a number | `number`: The number to find the arctangent of |
  68. | `radiansToDegrees` | Converts a radian value to its equivalent in degrees | `number`: The number in radians to convert to degrees |
  69. | `degreesToRadians` | Converts a degree value to its equivalent in radians | `number`: The number in degrees to convert to radians |

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.