Skip to main content
Glama

数学-MCP

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

特征

  • 基本算术运算(加、减、乘、除)

  • 统计函数(总和、平均值、最小值、最大值)

  • 舍入函数(floor、ceiling、round)

Related MCP server: Calculator MCP

安装

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

然后将此服务器添加到您的 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 :要舍入的数字

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
4dResponse time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    A Model Context Protocol server that provides basic calculator functionality for LLMs, enabling them to perform mathematical operations like addition, subtraction, multiplication, division, modulo, and square root.
    6
    444
    16
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A backend service that provides accurate arithmetic calculation capabilities to AI models via the Model Context Protocol, allowing LLMs to offload mathematical computations for numerical queries.
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Python-based MCP server that provides a suite of basic arithmetic tools, including addition, square roots, and percentage calculations, for AI assistants. It enables models to perform precise mathematical operations through the Model Context Protocol.
    MIT

View all related MCP servers

Related MCP Connectors

  • A Model Context Protocol server for Wix AI tools

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • Precision math engine for AI agents. 203 exact methods. Zero hallucination.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EthanHenrickson/math-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server