MatrixCalculator.net

io.github.gamestarry由 GitHub 账号 gamestarry 发布v0.1.0更新于 Oct 24, 2026

Exact matrix calculations with step-by-step results for six core matrix operations.

发布方自己的服务:Calculator Tools MCP

已验证Streamable HTTP可网页运行数据与分析

概览

AI 生成的概览

远程 MCP 服务器,执行六种精确矩阵运算,并返回可展示或展开的分步计算过程。

可以做什么
  • 对同维度矩阵做加法与减法,逐元素给出计算过程
  • 按行乘列点积相乘相容矩阵
  • 计算方阵行列式,含消元步骤与奇异性判断
  • 用高斯-约当消元求逆矩阵,并用单位矩阵验证结果
  • 转置矩形或方阵,并给出每个结果元素的来源位置
  • 保留整数、小数与 1/2 这类分数串的精确值,而非近似小数
适用场景
适合需要可靠、精确线性代数结果而非近似值的场景,也适合用户希望看到解题过程时:逐元素求和、消元步骤,或经单位矩阵验证的逆矩阵。
运行要求
需要一个远程 Streamable HTTP 端点;当前公开的 V1 端点无需 API 密钥。若要在本地开发该服务器本身,需要 Node.js、npm 与 Cloudflare Wrangler。
安装前请注意
矩阵数据会发送到 matrixcalculator.net 的第三方托管服务。该端点公开且无身份验证,未说明按用户隔离的访问控制或速率保障。README 说明该项目与主站及其计费系统分开维护。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MatrixCalculator.net,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.gamestarry%2Fmatrixcalculator-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "matrixcalculator-net": {
      "type": "http",
      "url": "https://mcp.matrixcalculator.net/mcp"
    }
  }
}

README

MatrixCalculator.net MCP

A remote Model Context Protocol (MCP) server for exact, step-by-step matrix calculations powered by MatrixCalculator.net.

Remote MCP endpoint

text
https://mcp.matrixcalculator.net/mcp

Official MCP Registry name

text
io.github.gamestarry/matrixcalculator-mcp

Current version: 0.1.0

What it does

MatrixCalculator.net MCP gives MCP-compatible AI clients access to six core matrix operations. Results preserve exact fractions and include structured calculation steps that an AI client can present as a short answer or expand into a detailed solution.

ToolDescription
matrix_addAdd two matrices with identical dimensions, with one step per entry.
matrix_subtractSubtract the second matrix from the first, with one step per entry.
matrix_multiplyMultiply compatible matrices using row-by-column steps.
matrix_determinantCalculate a determinant with row swaps, elimination steps, diagonal entries, and singularity information.
matrix_inverseCalculate an inverse with Gauss-Jordan row operations, singularity detection, and verification.
matrix_transposeTranspose a matrix and return the source position for every result entry.

Exact values

Inputs may be integers, decimals, or fraction strings:

text
20.5-31/2-7/4

Calculations use exact fraction arithmetic where possible. For example:

text
1/2 + 1/3 = 5/6

rather than converting the result to an approximate decimal.

Example requests

An MCP-compatible AI client can use the server for requests such as:

text
Add [[1/2, 2], [3, 4]] and [[1/3, 5], [-1, 6]] and show the steps.
text
Multiply [[1, 2], [3, 4]] by [[5, 6], [7, 8]].
text
Find the determinant of [[0, 1/2, 1], [2, 1, 3], [1, 4, 5]] step by step.
text
Find the inverse of [[0, 2, 1], [1, 1, 0], [2, 3, 4]] and verify the result.

The MCP server returns structured result data and detailed steps. The connected AI client decides how much of that detail to display to the user.

Tool inputs

matrix_add

json
{  "matrixA": [["1/2", "2"], ["3", "4"]],  "matrixB": [["1/3", "5"], ["-1", "6"]]}

matrix_subtract

json
{  "matrixA": [["5/6", "7"], ["2", "10"]],  "matrixB": [["1/3", "2"], ["-1", "4"]]}

matrix_multiply

json
{  "matrixA": [["1/2", "2"], ["3", "4"]],  "matrixB": [["3", "1"], ["4", "2"]]}

matrix_determinant

json
{  "matrix": [["0", "1/2", "1"], ["2", "1", "3"], ["1", "4", "5"]]}

matrix_inverse

json
{  "matrix": [["0", "2", "1"], ["1", "1", "0"], ["2", "3", "4"]]}

matrix_transpose

json
{  "matrix": [["1/2", "2", "3"], ["4", "-1", "5"]]}

Connect

Use the following Streamable HTTP endpoint in any MCP client that supports remote MCP servers:

text
https://mcp.matrixcalculator.net/mcp

No API key is required for the current public V1 endpoint.

Health check

text
https://mcp.matrixcalculator.net/health

Local development

Requirements:

  • Node.js
  • npm
  • Cloudflare Wrangler

Clone and install:

bash
git clone https://github.com/gamestarry/matrixcalculator-mcp.gitcd matrixcalculator-mcpnpm install

Run type checking:

bash
npm run typecheck

Start the local Worker:

bash
npm run dev

The local MCP endpoint is normally:

text
http://127.0.0.1:8787/mcp

Deployment

The production server runs on Cloudflare Workers.

bash
npm run deploy

Production MCP endpoint:

text
https://mcp.matrixcalculator.net/mcp

MCP Registry

This server is published in the official MCP Registry as:

text
io.github.gamestarry/matrixcalculator-mcp

Registry metadata is stored in server.json.

Project structure

text
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

About MatrixCalculator.net

MatrixCalculator.net provides matrix calculators, learning tools, and step-by-step matrix operations on the web.

This MCP project is maintained separately from the main website so MCP development and deployment do not affect the production calculator or its billing system.

来源:README.md,提交 c4f641b

工具

6

matrix_add

Add two matrices of the same dimensions entry by entry. Useful for exact matrix addition or explaining each entry step by step. Accepts integers, decimals, and fraction strings (for example 1/2); returns the exact sum matrix and a calculation for each position.

输入参数matrixA必填matrixB必填

matrix_subtract

Subtract matrix B from matrix A when both have the same dimensions. Useful for exact matrix subtraction, including negative values and step-by-step entry calculations. Accepts integers, decimals, and fraction strings; returns each exact difference and its calculation.

输入参数matrixA必填matrixB必填

matrix_multiply

Multiply A by B when A's column count equals B's row count, including non-square matrices. Useful for exact matrix multiplication and step-by-step row-by-column dot products. Returns exact results plus each factor pair, product, and entry calculation; accepts fractions and decimals.

输入参数matrixA必填matrixB必填

matrix_determinant

Find the exact determinant of a square matrix using fraction-preserving elimination. Use for determinant questions requiring row swaps, elimination steps, pivot multipliers, sign changes, diagonal products, or singularity checks. Returns the determinant and detailed operation steps.

输入参数matrix必填

matrix_inverse

Find an exact inverse of a square matrix with step-by-step Gauss-Jordan elimination. Use for inverse questions needing exact fractions, augmented matrices, row swaps, normalization, elimination, and verification that A times A-inverse is identity. Returns the inverse and verification, or null with singular=true if not invertible.

输入参数matrix必填

matrix_transpose

Transpose a rectangular or square matrix by exchanging rows and columns. Useful for requests to show where each result entry originated. Preserves exact integer, decimal, and fraction inputs and returns the transposed matrix with source-to-result position mappings.

输入参数matrix必填

版本历史

1
  1. v0.1.0最新Oct 15, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Calculator 集成