Math-MCP

平台与服务

by EthanHenrickson

通过简单 API 让 LLM 精确完成数值计算,提供基础算术与统计函数,轻松处理复杂数学任务,提升应用与模型能力。

想让 LLM 不再算错数,Math-MCP 用简单 API 补上精确计算能力,从基础算术到统计函数都能稳稳处理。

什么是 Math-MCP

通过简单 API 让 LLM 精确完成数值计算,提供基础算术与统计函数,轻松处理复杂数学任务,提升应用与模型能力。

核心功能 (22 个工具)

add

Adds two numbers together

subtract

Subtracts the second number from the first number

multiply

Multiplies two numbers together

division

Divides the first number by the second number

sum

Adds any number of numbers together

modulo

Divides two numbers and returns the remainder

mean

Calculates the arithmetic mean of a list of numbers

median

Calculates the median of a list of numbers

mode

Finds the most common number in a list of numbers

min

Finds the minimum value from a list of numbers

max

Finds the maximum value from a list of numbers

floor

Rounds a number down to the nearest integer

ceiling

Rounds a number up to the nearest integer

round

Rounds a number to the nearest integer

sin

Calculates the sine of a number in radians

arcsin

Calculates the arcsine of a number in radians

cos

Calculates the cosine of a number in radians

arccos

Calculates the arccosine of a number in radians

tan

Calculates the tangent of a number in radians

arctan

Calculates the arctangent of a number in radians

radiansToDegrees

Converts a radian value to its equivalent in degrees

degreesToRadians

Converts 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:

json
"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

FunctionDescriptionParameters
addAdds two numbers togetherfirstNumber: The first addend<br>secondNumber: The second addend
subtractSubtracts the second number from the first numberminuend: The number to subtract from (minuend)<br>subtrahend: The number being subtracted (subtrahend)
multiplyMultiplies two numbers togetherfirstNumber: The first number<br>SecondNumber: The second number
divisionDivides the first number by the second numbernumerator: The number being divided (numerator)<br>denominator: The number to divide by (denominator)
sumAdds any number of numbers togethernumbers: Array of numbers to sum
moduloDivides two numbers and returns the remaindernumerator: The number being divided (numerator)<br>denominator: The number to divide by (denominator)
floorRounds a number down to the nearest integernumber: The number to round down
ceilingRounds a number up to the nearest integernumber: The number to round up
roundRounds a number to the nearest integernumber: The number to round

Statistical Operations

FunctionDescriptionParameters
meanCalculates the arithmetic mean of a list of numbersnumbers: Array of numbers to find the mean of
medianCalculates the median of a list of numbersnumbers: Array of numbers to find the median of
modeFinds the most common number in a list of numbersnumbers: Array of numbers to find the mode of
minFinds the minimum value from a list of numbersnumbers: Array of numbers to find the minimum of
maxFinds the maximum value from a list of numbersnumbers: Array of numbers to find the maximum of

Trigonometric Operations

FunctionDescriptionParameters
sinCalculates the sine of a number in radiansnumber: The number in radians to find the sine of
arcsinCalculates the arcsine of a number in radiansnumber: The number to find the arcsine of
cosCalculates the cosine of a number in radiansnumber: The number in radians to find the cosine of
arccosCalculates the arccosine of a number in radiansnumber: The number to find the arccosine of
tanCalculates the tangent of a number in radiansnumber: The number in radians to find the tangent of
arctanCalculates the arctangent of a number in radiansnumber: The number to find the arctangent of
radiansToDegreesConverts a radian value to its equivalent in degreesnumber: The number in radians to convert to degrees
degreesToRadiansConverts a degree value to its equivalent in radiansnumber: The number in degrees to convert to radians

常见问题

Math-MCP 是什么?

通过简单 API 让 LLM 精确完成数值计算,提供基础算术与统计函数,轻松处理复杂数学任务,提升应用与模型能力。

Math-MCP 提供哪些工具?

提供 22 个工具,包括 add、subtract、multiply

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描109.6k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描109.6k

接口设计评审

by alirezarezvani

Universal
热门

审查 REST API 设计是否符合行业规范,自动检查命名、HTTP 方法、状态码与文档覆盖,识别破坏性变更并给出设计评分,适合评审接口方案和版本迭代前把关。

做API和架构方案时,它能帮你提前揪出接口设计问题并对齐最佳实践,评审视角系统,团队协作更省心。

平台与服务
未扫描9.0k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
82.9k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.3k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
34.5k

评论