
Math
io.github.rog0x由 GitHub 帳號 rog0x 發布v1.0.1更新於 Oct 24, 2026
Calculator, units, statistics for AI agents
概覽
一個本機 MCP 伺服器,為助理提供數學工具:安全的運算式求值、單位換算、統計、數字格式化與百分比計算。
- 可以做什麼
- 在不使用 eval 的情況下計算算術運算式,支援函式、常數與具名變數。在長度、重量、溫度、資料、時間與速度六類單位之間換算數值。對資料集計算統計量,包括平均值、中位數、變異數、百分位數與相關性。將數字格式化為貨幣、百分比、科學記號、二進位、八進位、十六進位或加上千位分隔符號。執行常見百分比運算,如小費、折扣、加成與百分比變化。
- 適用情境
- 當助理需要可靠的算術計算、單位換算或貨幣式數字格式化,或需要對小型資料集快速做統計時適用。適合作為日常計算工作的輕量補充。
- 執行需求
- 以本機程序透過 stdio 執行,從 npm 套件安裝,並以 npm install 與 npm run build 建置。README 展示在桌面用戶端設定中以 node 啟動建置後的 dist/index.js 檔案。未宣告驗證、環境變數或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Math,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-math-tools
Math and calculation tools for AI agents, exposed via the Model Context Protocol (MCP).
Tools
calculate
Evaluate math expressions safely (no eval). Supports arithmetic operators (+, -, *, /, ^, %), parentheses, functions (sqrt, abs, floor, ceil, round, log, ln, sin, cos, tan, min, max, pow), constants (pi, e), and named variables.
convert_units
Convert between units across six categories:
- Length: m, km, cm, mm, mi, yd, ft, in
- Weight: kg, g, mg, lb, oz, ton
- Temperature: C, F, K
- Data: B, KB, MB, GB, TB
- Time: s, min, h, d, week
- Speed: m/s, km/h, mph, knots
statistics
Statistical analysis on datasets: mean, median, mode, variance, standard deviation, min, max, range, percentile, correlation between two arrays, and a full summary mode.
format_number
Format numbers as: currency ($1,234.56), percentage, scientific notation, binary, octal, hexadecimal, significant figures, or with thousands separators.
percentage_calc
Common percentage operations: X% of Y, what percent X is of Y, percentage change between two values, tip calculator, discount calculator, and markup calculator.
Installation
Usage with Claude Desktop
Add to your claude_desktop_config.json:
Examples
Calculate: 2 * (3 + 4) ^ 2 returns 98
Convert: 100 from km/h to mph returns 62.137...
Statistics: summary of [1, 2, 3, 4, 5] returns mean, median, mode, variance, etc.
Format: 1234567.89 as currency returns $1,234,567.89
Percentage: 15% tip on 85.50 bill split 3 ways
License
MIT
來源:README.md,提交 18f7312
工具
0版本歷史
1- v1.0.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。