Math-MCP
平台与服务by EthanHenrickson
通过简单 API 让 LLM 精确完成数值计算,提供基础算术与统计函数,轻松处理复杂数学任务,提升应用与模型能力。
想让 LLM 不再算错数,Math-MCP 用简单 API 补上精确计算能力,从基础算术到统计函数都能稳稳处理。
什么是 Math-MCP?
通过简单 API 让 LLM 精确完成数值计算,提供基础算术与统计函数,轻松处理复杂数学任务,提升应用与模型能力。
核心功能 (22 个工具)
addAdds two numbers together
subtractSubtracts the second number from the first number
multiplyMultiplies two numbers together
divisionDivides the first number by the second number
sumAdds any number of numbers together
moduloDivides two numbers and returns the remainder
meanCalculates the arithmetic mean of a list of numbers
medianCalculates the median of a list of numbers
modeFinds the most common number in a list of numbers
minFinds the minimum value from a list of numbers
maxFinds the maximum value from a list of numbers
floorRounds a number down to the nearest integer
ceilingRounds a number up to the nearest integer
roundRounds a number to the nearest integer
sinCalculates the sine of a number in radians
arcsinCalculates the arcsine of a number in radians
cosCalculates the cosine of a number in radians
arccosCalculates the arccosine of a number in radians
tanCalculates the tangent of a number in radians
arctanCalculates the arctangent of a number in radians
radiansToDegreesConverts a radian value to its equivalent in degrees
degreesToRadiansConverts a degree value to its equivalent in radians
README
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.
<a href="https://glama.ai/mcp/servers/exa5lt8dgd"> <img width="380" height="200" src="https://glama.ai/mcp/servers/exa5lt8dgd/badge" alt="Math-MCP MCP server" /> </a>Features
- Basic arithmetic operations (addition, subtraction, multiplication, division)
- Statistical functions (sum, mean, median, mode, min, max)
- Rounding functions (floor, ceiling, round)
- Trigonometric functions (sin, cos, tan, and their inverses; degrees/radians conversions)
Installation
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"]
}
Replace PATH\\TO\\PROJECT with the actual path to where you cloned the repository.
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<br>secondNumber: The second addend |
subtract | Subtracts the second number from the first number | minuend: The number to subtract from (minuend)<br>subtrahend: The number being subtracted (subtrahend) |
multiply | Multiplies two numbers together | firstNumber: The first number<br>SecondNumber: The second number |
division | Divides the first number by the second number | numerator: The number being divided (numerator)<br>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)<br>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 of a number in radians | 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 of a number in radians | 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 of a number in radians | 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 |
常见问题
Math-MCP 是什么?
通过简单 API 让 LLM 精确完成数值计算,提供基础算术与统计函数,轻松处理复杂数学任务,提升应用与模型能力。
Math-MCP 提供哪些工具?
提供 22 个工具,包括 add、subtract、multiply 等。
相关 Skills
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
接口设计评审
by alirezarezvani
审查 REST API 设计是否符合行业规范,自动检查命名、HTTP 方法、状态码与文档覆盖,识别破坏性变更并给出设计评分,适合评审接口方案和版本迭代前把关。
✎ 做API和架构方案时,它能帮你提前揪出接口设计问题并对齐最佳实践,评审视角系统,团队协作更省心。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。