Math

Data and AI

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.

Your AI app calls the Math MCP server, which does the data and AI work and sends the result back to the chat.

About Math

Math is a community MCP server from EthanHenrickson, filed in our directory under data and ai. 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.

At a glance

Publisher
EthanHenrickson (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
192

How to set up Math

  1. Follow the install steps in the Math README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Math README for keys or settings; the registry lists none that Math requires.
  3. Add Math to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Math tools to confirm the connection.
  5. Run one read-only task with Math first, and keep your app asking before each tool call until the results look right.

Math compared with similar servers

  • FirstData by MLT-OSS has fewer GitHub stars than Math (188 against 192); both are community servers, and FirstData runs as a remote server and Math runs on your own machine.
  • Gtm by paolobietolini has more GitHub stars than Math (194 against 192); both are community servers, and both run locally.
  • Typst by johannesbrandenburger has fewer GitHub stars than Math (188 against 192); both are community servers, and both run locally.

Before you connect Math

  • Give Math its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Math tool call until you trust what it does with them.
  • Treat text that Math fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Math on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Math

How marketing and sales teams put Math to work, by company size. Pick the size closest to yours and start Math on one use case.

Small business

  • A small team can use Math to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Owners can ask Math to sort feedback, reviews or survey answers into themes and see what customers mention most.
  • Math runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Math to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Content and research teams can use Math to analyze transcripts and surveys at scale and pull the quotes worth using.
  • Start Math on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Math inside their own cloud and data boundary, so models and data stay where governance requires.
  • Large teams can use Math in batch pipelines with evaluation and logging, so AI output is measured before it reaches customers.
  • Math is a community server, so have security review the code and pin a version before Math touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Math README

From EthanHenrickson/math-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Math-MCP

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.

Features

  • Basic arithmetic operations (addition, subtraction, multiplication, division, sum, modulo)
  • Statistical functions (mean, median, mode, min, max)
  • Rounding functions (floor, ceiling, round)
  • Trigonometric functions (sin, cos, tan, and their inverses; degrees/radians conversions)

Installation

Note: Ensure you have Node.js 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.

Available Functions

The Math-MCP server provides the following mathematical operations:

Arithmetic Operations
Function Description Parameters
add Adds two numbers together firstNumber: The first addend
secondNumber: The second addend
subtract Subtracts the second number from the first number minuend: The number to subtract from (minuend)
subtrahend: The number being subtracted (subtrahend)
multiply Multiplies two numbers together firstNumber: The first number
secondNumber: The second number
division Divides the first number by the second number numerator: The number being divided (numerator)
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 divided (numerator)
denominator: The number to divide by (denominator)
floor Rounds a number down to the nearest integer number: The number to round down
ceiling Rounds a number up to the nearest integer number: The number to round up
round Rounds a number to the nearest integer number: The number to round
Statistical Operations
Function Description Parameters
mean Calculates the arithmetic mean of a list of numbers numbers: Array of numbers to find the mean of
median Calculates the median of a list of numbers numbers: Array of numbers to find the median of
mode Finds the most common number in a list of numbers numbers: Array of numbers to find the mode of
min Finds the minimum value from a list of numbers numbers: Array of numbers to find the minimum of
max Finds the maximum value from a list of numbers numbers: Array of numbers to find the maximum of
Trigonometric Operations
Function Description Parameters
sin Calculates the sine of a number in radians number: The number in radians to find the sine of
arcsin Calculates the arcsine (in radians) of a number number: The number to find the arcsine of
cos Calculates the cosine of a number in radians number: The number in radians to find the cosine of
arccos Calculates the arccosine (in radians) of a number number: The number to find the arccosine of
tan Calculates the tangent of a number in radians number: The number in radians to find the tangent of
arctan Calculates the arctangent (in radians) of a number number: The number to find the arctangent of
radiansToDegrees Converts a radian value to its equivalent in degrees number: The number in radians to convert to degrees
degreesToRadians Converts a degree value to its equivalent in radians number: The number in degrees to convert to radians

Questions about Math

What is the Math MCP server?

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. Math is maintained by EthanHenrickson on GitHub at EthanHenrickson/math-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Math MCP server?

Math doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (EthanHenrickson/math-mcp). Like most servers, Math ends with a command or URL you paste into your AI app's MCP config.

Does Math need an API key?

The registry lists no required keys for Math. Check the Math README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Math an official MCP server?

No. Math is a community server maintained by EthanHenrickson. Community servers can be excellent; read the code and the open issues before you give Math access to company data.

What license is Math under?

Math is released under the MIT license, according to its GitHub repository. The license covers the code of Math; the service it connects to has its own terms.