MatrixCalculator.net について
MatrixCalculator.net MCPは、正確な行列計算を必要とするMCPクライアント向けのリモートサーバーです。6種類の演算を提供し、構造化された結果と計算手順を返します。
主な機能
- 01行列の加算と減算
- 02行列の乗算
- 03行列式と逆行列
- 04行列の転置
- 05正確な分数演算
- 06構造化された計算手順
活用シーン
- 01行列の課題で計算手順を示す
- 02分数入力から正確な結果を計算する
- 03MCPクライアント経由で行列演算を行う
MCP 対応
リモートMCPサーバーは、`https://mcp.matrixcalculator.net/mcp`で互換クライアントに6種類の行列演算ツールを提供します。現在の公開V1エンドポイントではAPIキーは不要です。
設定
リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。
https://mcp.matrixcalculator.net/mcpclaude mcp add --transport http gamestarry-matrixcalculator https://mcp.matrixcalculator.net/mcp{"mcpServers":{"gamestarry-matrixcalculator":{"type":"http","url":"https://mcp.matrixcalculator.net/mcp"}}}Cursor で開く{"servers":{"gamestarry-matrixcalculator":{"type":"http","url":"https://mcp.matrixcalculator.net/mcp"}}}VS Code で開く{"mcpServers":{"gamestarry-matrixcalculator":{"type":"http","url":"https://mcp.matrixcalculator.net/mcp"}}}{"mcpServers":{"gamestarry-matrixcalculator":{"serverUrl":"https://mcp.matrixcalculator.net/mcp"}}}コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。
ツール
6| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
| matrixA | array | はい | 1 つ目の行列。 |
| matrixB | array | はい | 2 つ目の行列。 |
詳細
MatrixCalculator.net MCP
MatrixCalculator.net を利用した、正確な行列計算を段階的に行うリモート Model Context Protocol(MCP)サーバーです。
リモート MCP エンドポイント
https://mcp.matrixcalculator.net/mcp
公式 MCP Registry 名
io.github.gamestarry/matrixcalculator-mcp
現在のバージョン:0.1.0
できること
MatrixCalculator.net MCP を利用すると、MCP 対応 AI クライアントから6つの基本的な行列演算を実行できます。結果は正確な分数を保持し、構造化された計算手順を含みます。AI クライアントはこれを短い回答として提示したり、詳細な解法として展開したりできます。
| ツール | 説明 |
|---|---|
matrix_add | 同じ次元の2つの行列を加算し、各要素について1つずつ計算手順を示します。 |
matrix_subtract | 1つ目の行列から2つ目の行列を減算し、各要素について1つずつ計算手順を示します。 |
matrix_multiply | 行と列の積を用いて、適合する行列同士を乗算します。 |
matrix_determinant | 行の入れ替え、消去手順、対角成分、特異性に関する情報を示しながら、行列式を計算します。 |
matrix_inverse | ガウス・ジョルダン法による行基本変形、特異性の検出、検証を行いながら、逆行列を計算します。 |
matrix_transpose | 行列を転置し、結果の各要素に対応する元の位置を返します。 |
正確な値
入力には整数、小数、分数文字列を指定できます。
2
0.5
-3
1/2
-7/4
可能な場合は、計算に正確な分数演算を使用します。たとえば、次のようになります。
1/2 + 1/3 = 5/6
結果を近似小数に変換することはありません。
リクエスト例
MCP 対応 AI クライアントは、次のようなリクエストにこのサーバーを使用できます。
Add [[1/2, 2], [3, 4]] and [[1/3, 5], [-1, 6]] and show the steps.
Multiply [[1, 2], [3, 4]] by [[5, 6], [7, 8]].
Find the determinant of [[0, 1/2, 1], [2, 1, 3], [1, 4, 5]] step by step.
Find the inverse of [[0, 2, 1], [1, 1, 0], [2, 3, 4]] and verify the result.
MCP サーバーは、構造化された結果データと詳細な手順を返します。接続先の AI クライアントは、その詳細をどの程度ユーザーに表示するかを決定します。
ツールの入力
matrix_add
{
"matrixA": [["1/2", "2"], ["3", "4"]],
"matrixB": [["1/3", "5"], ["-1", "6"]]
}
matrix_subtract
{
"matrixA": [["5/6", "7"], ["2", "10"]],
"matrixB": [["1/3", "2"], ["-1", "4"]]
}
matrix_multiply
{
"matrixA": [["1/2", "2"], ["3", "4"]],
"matrixB": [["3", "1"], ["4", "2"]]
}
matrix_determinant
{
"matrix": [["0", "1/2", "1"], ["2", "1", "3"], ["1", "4", "5"]]
}
matrix_inverse
{
"matrix": [["0", "2", "1"], ["1", "1", "0"], ["2", "3", "4"]]
}
matrix_transpose
{
"matrix": [["1/2", "2", "3"], ["4", "-1", "5"]]
}
接続
リモート MCP サーバーに対応した任意の MCP クライアントで、次の Streamable HTTP エンドポイントを使用してください。
https://mcp.matrixcalculator.net/mcp
現在の公開 V1 エンドポイントでは、API キーは不要です。
ヘルスチェック
https://mcp.matrixcalculator.net/health
ローカル開発
必要なもの:
- Node.js
- npm
- Cloudflare Wrangler
クローンしてインストールします。
git clone https://github.com/gamestarry/matrixcalculator-mcp.git
cd matrixcalculator-mcp
npm install
型チェックを実行します。
npm run typecheck
ローカル Worker を起動します。
npm run dev
ローカル MCP エンドポイントは通常、次のとおりです。
http://127.0.0.1:8787/mcp
デプロイ
本番サーバーは Cloudflare Workers 上で動作します。
npm run deploy
本番 MCP エンドポイント:
https://mcp.matrixcalculator.net/mcp
MCP Registry
このサーバーは、公式 MCP Registry に次の名前で公開されています。
io.github.gamestarry/matrixcalculator-mcp
Registry のメタデータは server.json に保存されています。
プロジェクト構成
src/
├─ index.ts
├─ lib/
│ └─ matrix-values.ts
└─ tools/
├─ matrix-add.ts
├─ matrix-subtract.ts
├─ matrix-multiply.ts
├─ matrix-determinant.ts
├─ matrix-inverse.ts
└─ matrix-transpose.ts
MatrixCalculator.net について
MatrixCalculator.net は、行列計算ツール、学習ツール、段階的な行列演算をウェブ上で提供しています。
この MCP プロジェクトはメインのウェブサイトとは別に管理されているため、MCP の開発やデプロイが本番の計算ツールやその課金システムに影響することはありません。
コメント
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。