
Gguf Mcp
io.github.arose26由 GitHub 帳號 arose26 發布v0.1.1更新於 Oct 24, 2026
Inspect local GGUF/safetensors models: quantization, params, VRAM fit — headers only.
概覽
檢查本機 GGUF 與 safetensors 模型檔案,回報架構、量化、參數量、張量資訊以及 VRAM 是否夠用。
- 可以做什麼
- 只讀取本機 GGUF 與 safetensors 模型檔案的檔頭,因此助理不必載入張量資料就能回答磁碟上模型的相關問題。工具包括:inspect_model 一次給出格式、架構、參數量、量化、上下文長度、檔案大小與張量數量等摘要;list_tensors 列出張量名稱、形狀與儲存型別並可篩選;estimate_vram 依指定上下文長度做 VRAM 適配檢查;get_metadata 讀取 GGUF 鍵值儲存或 safetensors 中介資料。支援 .gguf 檔案、.safetensors 檔案、分片索引 JSON、模型目錄,以及以魔數辨識的無副檔名 GGUF 資料塊。
- 適用情境
- 適合本機存放了模型檔案、希望助理辨識模型、比較量化等級、列出張量,或判斷模型在指定 VRAM 與上下文長度下是否放得下的情境。它著重本機模型管理與規劃,而非執行推論。
- 執行需求
- 以本機程序透過 stdio 執行,通常用 npx gguf-mcp 啟動,因此需要 Node.js 以及 Claude Code、Claude Desktop、Cursor 或 Windsurf 等 MCP 用戶端。僅支援桌面端;未宣告需要網路、帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Gguf Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
gguf-mcp
An MCP server that inspects local model files — GGUF and safetensors — so Claude and other LLMs can answer questions about the models on your disk:
- "What is this .gguf? Architecture, quantization, parameter count?"
- "Will this model fit in my 12 GB GPU at 8k context?"
- "What tensors are inside, with what shapes?"
- "Show me its chat template / RoPE settings / tokenizer config."
Headers only. The parser never touches tensor data, so inspecting a 70 GB model takes milliseconds and a few MiB of I/O. No network, no API keys, no telemetry — your files never leave your machine.
Quick start
Claude Code
Claude Desktop — add to claude_desktop_config.json:
The same npx invocation works in Cursor, Windsurf, and any other MCP client.
Tools
Paths can be a .gguf file, a .safetensors file, a *.safetensors.index.json, or a model directory (sharded HuggingFace layouts are aggregated across shards). Extension-less GGUF blobs — like the ones in Ollama's ~/.ollama/models/blobs — are detected by magic bytes.
Design notes
- Context-friendly by construction. A tokenizer vocabulary is 100k+ strings; metadata arrays are returned as
{count, sample}summaries and long strings (chat templates) are truncated with a marker. The full data stays on disk where it belongs. - Honest estimates.
estimate_vramreports exact on-disk weight bytes plus the standard KV-cache formula (2 × layers × context × KV heads × head dim × 2 bytes), and says what it excludes rather than faking precision. - Defensive parsing. Magic checks, version checks (incl. big-endian detection), truncation detection, and sanity caps on header sizes — malformed files produce specific, actionable errors.
- Zero runtime dependencies beyond the MCP SDK and zod. The GGUF binary reader and safetensors parser are hand-rolled and unit-tested against synthetic files built in the test suite — no fixtures, no downloads.
Development
Architecture: src/gguf.ts (binary header parser + VRAM math) and src/safetensors.ts (JSON header + shard index) are pure logic with no MCP imports; src/index.ts is the MCP wiring and path/format detection.
Out of scope
Tensor statistics (would require reading data), PyTorch .bin (pickle — unsafe by design), ONNX, and remote HuggingFace queries (HuggingFace has an official MCP server for that).
License
MIT
來源:README.md,提交 e8f5468
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分