Math-MCP

Math-MCP

一个模型上下文协议服务器,它为大型语言模型(LLM)提供基本的数学和统计函数,使它们能够通过一个简单的API执行准确的数值计算。

Category
访问服务器

Tools

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

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

README

Math-MCP

一个模型上下文协议 (MCP) 服务器,为大型语言模型 (LLM) 提供基本的数学和统计函数。该服务器使 LLM 能够通过一个简单的 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>

功能

  • 基本算术运算(加法、减法、乘法、除法)
  • 统计函数(总和、平均值、最小值、最大值)
  • 舍入函数(向下取整、向上取整、四舍五入)

安装

只需克隆此存储库并将其保存在计算机上的某个本地位置。

然后将此服务器添加到您的 MCP 配置文件:

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

PATH\\TO\\PROJECT 替换为您克隆存储库的实际路径。

可用函数

Math-MCP 服务器提供以下数学运算:

函数 描述 参数
add 将两个数字相加 firstNumber: 第一个加数<br>secondNumber: 第二个加数
subtract 从第一个数字中减去第二个数字 minuend: 被减数<br>subtrahend: 减数
multiply 将两个数字相乘 firstFactor: 第一个因子<br>secondFactor: 第二个因子
division 将第一个数字除以第二个数字 numerator: 被除数<br>denominator: 除数
sum 将任意数量的数字相加 numbers: 要求和的数字数组
average 计算数字列表的算术平均值 numbers: 用于查找平均值的数字数组
min 从数字列表中查找最小值 numbers: 用于查找最小值的数字数组
max 从数字列表中查找最大值 numbers: 用于查找最大值的数字数组
floor 将数字向下舍入到最接近的整数 value: 要向下舍入的数字
ceiling 将数字向上舍入到最接近的整数 value: 要向上舍入的数字
round 将数字四舍五入到最接近的整数 value: 要舍入的数字

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选