Polymath Megablaster Mcp

io.github.headlessherm-creator由 GitHub 帳號 headlessherm-creator 發布v3.1.0更新於 Oct 29, 2026

Local deterministic calc MCP: exact math, dates, unit conversion, stats, subnet math.

已驗證STDIO僅桌面開發者工具資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,為助理提供精確且確定性的數學、日期、單位換算、統計、子網與 UUID 工具,全程不連網。

可以做什麼
  • 精確計算任意精度數學式、階乘、排列與組合,並對數字清單計算統計量
  • 對日期做加減與差值計算,支援工作日、閏年,並在任意 IANA 時區之間轉換時間
  • 換算長度、重量、體積與溫度單位,並在十進位、十六進位、二進位與八進位之間轉換數字
  • 依 CIDR 計算子網資訊,並判斷 IPv4 位址屬於私有或保留網段
  • 計算座標間的大圓距離,以及字串的 Levenshtein 編輯距離與相似度
  • 計算 GPT 分詞數以管理上下文預算,並產生加密隨機的 v4 UUID
適用情境
當助理(尤其是較小或本機模型)在精確算術、日期計算、單位換算或 CIDR 計算上出現細微錯誤,而你希望得到確定性結果而非模型推理時,適合安裝。
執行需求
以本機程序方式透過 npm 執行,需要 Node.js v18 以上版本,並在 MCP 用戶端設定中指向已安裝的進入點檔案。無需 API 金鑰、帳號或網路存取。
安裝前請注意
README 說明需複製儲存庫並執行 npm install,執行前應檢視原始碼與相依套件。所有工具皆為唯讀計算,不索取任何憑證,也不向第三方傳送資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Polymath Megablaster Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Polymath MegaBlaster MCP — Deterministic Math, Date, Unit Conversion & Networking Tools for AI Agents

A free, local, 16-tool MCP server that gives AI agents exact, deterministic answers for math, date arithmetic, unit conversion, subnet/networking calculations, statistics, token counting, and real random UUID generation — no network calls, no API keys, no telemetry.

If your AI agent is miscounting days between dates, rounding large numbers incorrectly, getting unit conversions slightly wrong, or messing up subnet/CIDR math, this MCP server exists specifically to fix that class of problem.

The problem this solves

Local and open-weight models (Llama, Qwen, Mistral, etc.) are consistently unreliable at exact math, date arithmetic, unit conversion, and similar deterministic tasks — they "reason" their way to an answer instead of computing it, and get it subtly wrong. (Frontier hosted models like Claude and GPT-4 already handle most of this correctly unaided — this toolkit is aimed at closing the gap for smaller/local models, not replacing what those already do well.) Every tool here uses classical deterministic methods instead of model reasoning, so the answer is always exactly right.

Everyday things it fixes:

  • Exact math on huge numbers, no float rounding errors
  • Correct date math, including leap years and "last day of the month" edge cases
  • Unit conversion (km/miles, °C/°F, kg/lb) without approximation
  • Subnet/CIDR math for networking tasks
  • Great-circle distance between coordinates

More technical tools:

  • Arbitrary-precision arithmetic, factorials, permutations, combinations (no float64 overflow)
  • Statistics (mean, median, stdev, variance, percentiles) on a list of numbers
  • Base conversion (decimal, hex, binary, octal)
  • Levenshtein edit distance and similarity ratio (deterministic fuzzy matching)
  • IANA-aware time zone conversion
  • GPT tokenizer-based token counting, so an agent can manage its own context budget
  • Real cryptographically-random UUID (v4) generation — LLMs reliably fabricate plausible-looking but non-random, potentially colliding UUID strings instead

Why local

Most AI dev tool MCP servers either charge a subscription or call out to a remote API. This one never touches the network. Every tool is pure local computation, verifiable directly in the source: open src/tools.js — there is no fetch or http import anywhere in it.

Setup

1. Install Node.js (v18+) if you don't have it: https://nodejs.org

2. Clone this repo and install dependencies:

bash
git clone https://github.com/headlessherm-creator/polymath-megablaster-mcp.gitcd polymath-megablaster-mcpnpm install

3. Point your MCP client at the local path:

json
{  "mcpServers": {    "polymath": {      "command": "node",      "args": ["/absolute/path/to/polymath-megablaster-mcp/src/index.js"]    }  }}

Add that to your MCP client's config and restart it. Setup docs for common clients:

Tools (16, all free)

  • Deterministic math: calculate (arbitrary-precision expression evaluator), factorial, permutations, combinations (all arbitrary-precision, avoid float64 overflow), compute_statistics (mean, median, stdev, variance, percentiles)
  • Date and time: date_add, date_diff (leap years, month boundaries, business days handled correctly), convert_timezone
  • Conversion: convert_unit (length, weight, volume, temperature), convert_base (decimal, hex, binary, octal)
  • Networking: calc_subnet (CIDR math), check_ip_type (private/reserved range lookup)
  • Text: levenshtein_distance (exact edit distance and similarity ratio)
  • Geo: haversine_distance (exact great-circle distance between coordinates)
  • Agent utility: count_tokens (GPT tokenizer, for managing context budget before a large prompt), generate_uuid (real cryptographically-random v4 UUIDs, 1-100 at a time)

Dependencies

All installed automatically by npm install. None of them make network calls at runtime.

Keywords

deterministic math MCP server, MCP date calculator, MCP unit converter, subnet CIDR calculator MCP, local MCP server no API key, Claude MCP math tools, AI agent exact arithmetic, token counter MCP server.

Related tools

Same local-first philosophy, different problems:

License

MIT

來源:README.md,提交 4e2f25a

工具

16

calc_subnet

Calculate subnet details (network, broadcast, usable hosts, mask) from a CIDR like 192.168.1.0/24

輸入參數cidr必填

check_ip_type

Check if an IPv4 address is private/reserved and identify which range it falls in

輸入參數ip必填

calculate

Evaluate an arbitrary-precision math expression exactly (fixes LLM multi-digit arithmetic errors). Supports +,-,*,/,^,sqrt(),sin(),log(), etc.

輸入參數expression必填

count_tokens

Count tokens in text using the GPT-3.5/4 (cl100k_base) tokenizer. Useful for managing context budget before sending a large prompt

輸入參數text必填

date_add

Add or subtract days/weeks/months/years/businessDays from a date, handling leap years and month boundaries correctly

輸入參數date必填unit必填amount必填

date_diff

Compute the exact difference between two dates in days, business days, and hours

輸入參數a必填b必填

convert_timezone

Convert a UTC/ISO date into a formatted date+time string for any IANA time zone

輸入參數date必填timeZone必填

compute_statistics

Compute mean, median, stdev, variance, min/max, and percentiles (25/75/90) for a list of numbers

輸入參數numbers必填

convert_unit

Convert a value between units of length, weight, volume, or temperature (fixes LLM unit-math errors)

輸入參數value必填toUnit必填fromUnit必填

haversine_distance

Compute exact great-circle distance in km/miles between two lat/long coordinates

輸入參數lat1必填lat2必填lon1必填lon2必填

factorial

Compute n! exactly using arbitrary-precision integer math (avoids float64 overflow past ~18)

輸入參數n必填

permutations

Compute nPr (permutations) exactly using arbitrary-precision integer math

輸入參數n必填r必填

combinations

Compute nCr (combinations) exactly using arbitrary-precision integer math

輸入參數n必填r必填

convert_base

Convert a number between decimal, hex, binary, and octal

輸入參數value必填toBase必填fromBase必填

levenshtein_distance

Compute exact edit distance and similarity ratio between two strings (deterministic fuzzy matching)

輸入參數a必填b必填

generate_uuid

Generate real cryptographically-random UUIDs (v4). Fixes LLMs fabricating plausible-looking but non-random, potentially colliding UUID strings instead of real random ones.

輸入參數count

版本歷史

2
  1. v3.1.0最新Oct 22, 2026
  2. v3.0.2Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分