EM

ethanhenrickson/math-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

191 stars 17 forks Качество 59 Тренд 21MIT

ethanhenrickson/math-mcp — это кандидат на сервер MCP, импортированный из https://github.com/ethanhenrickson/math-mcp.

Обзор

ethanhenrickson/math-mcp — это кандидат на сервер MCP, импортированный из https://github.com/ethanhenrickson/math-mcp.

Обзор (машинный перевод)

Сервер протокола контекста модели (MCP), который предоставляет базовые математические, статистические и тригонометрические функции для больших языковых моделей (LLM). Этот сервер позволяет LLM выполнять точные численные вычисления с помощью простого API.

Особенности

  • Базовые арифметические операции (сложение, вычитание, умножение, деление, сумма, модуль)
  • Статистические функции (средние, медианные, модные, минимальные, максимальные)
  • Функции округления (пол, потолок, круглый)
  • Тригонометрические функции (sin, cos, tan и их обратные; преобразования градусов/радиан)

Установка

Примечание: Убедитесь, что Node.js установлены на вашем компьютере.

Просто клонируйте этот репозиторий и сохраните его локально где-нибудь на компьютере.

Затем добавьте этот сервер в ваш конфигурационный файл MCP:

Вот пример для OpenCode

Замените PATH\\TO\\PROJECT на реальный путь к месту клонирования репозитория.

Примечание: Этот проект идёт в готовых сборках, поэтому установка простая, но если что-то изменить в коде, перестройте проект с помощью npm run build.

Доступные функции

Сервер Math-MCP выполняет следующие математические операции:

Арифметические операции

| Функция | Описание | Параметры |

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального 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.

Features

  • Basic arithmetic operations (addition, subtraction, multiplication, division, sum, modulo)
  • Statistical functions (mean, median, mode, min, max)
  • Rounding functions (floor, ceiling, round)
  • Trigonometric functions (sin, cos, tan, and their inverses; degrees/radians conversions)

Installation

Note: Ensure you have Node.js installed on your computer.

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"]
}

Here is an example for OpenCode

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

Replace PATH\\TO\\PROJECT with the actual path to where you cloned the repository.

Note: This project comes prebuilt, so installation is easy but if you change anything in the code, rebuild the project with npm run build.

Available Functions

The Math-MCP server provides the following mathematical operations:

Arithmetic Operations

Function Description Parameters
add Adds two numbers together firstNumber: The first addendsecondNumber: The second addend
subtract Subtracts the second number from the first number minuend: The number to subtract from (minuend)subtrahend: The number being subtracted (subtrahend)
multiply Multiplies two numbers together firstNumber: The first numbersecondNumber: The second number
division Divides the first number by the second number numerator: The number being divided (numerator)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)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
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →