Math-MCP

by EthanHenrickson
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

数学-MCP

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

特征

  • 基本算术运算(加、减、乘、除)
  • 统计函数(总和、平均值、最小值、最大值)
  • 舍入函数(floor、ceiling、round)

安装

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

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

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

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

可用函数

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

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

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

模型上下文协议服务器为 LLM 提供基本的数学和统计功能,使它们能够通过简单的 API 执行精确的数值计算。

  1. Features
    1. Installation
      1. Available Functions
        ID: exa5lt8dgd