EM

ethanhenrickson/math-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

191 stars 17 forks 品質 59 トレンド 21MIT

ethanhenrickson/math-mcp は、https://github.com/ethanhenrickson/math-mcp. からインポートされた MCP サーバー候補です。

概要

ethanhenrickson/math-mcp は、https://github.com/ethanhenrickson/math-mcp. からインポートされた MCP サーバー候補です。

概要(AI 翻訳)

モデルコンテキストプロトコル(MCP)サーバーで、大型言語モデル(LLM)に対して基本的な数学的、統計的、三角関数的関数を提供します。このサーバーにより、LLMはシンプルなAPIを通じて正確な数値計算を行うことができます。

特徴

  • 基本的な算術演算(加算、減算、掛け算、除算、和、割法)
  • 統計関数(平均、中央値、モード、最小、最大値)
  • 丸め機能(床、天井、丸)
  • 三角関数(正弦関数、余角関数、tanおよびその逆関数;次数/ラジアン変換)

設置

注: 必ずNode.jsをインストールしてください。

このリポジトリをクローンして、パソコンのどこかにローカル保存すればいいだけです。

そして、このサーバーをMCPの設定ファイルに追加します:

こちらがOpenCodeの例です

PATH\\TO\\PROJECTをリポジトリのクローン先への実際のパスに置き換えます。

注: このプロジェクトは既製品なのでインストールは簡単ですが、コードに変更する場合はnpm run buildで再構築してください。

利用可能な機能

Math-MCPサーバーは以下の数学演算を提供します:

算術演算

|機能 |説明 |パラメータ |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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
GitHub で README 全文を見る

インストール

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

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →