
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 模型文件,报告架构、量化、参数量、张量信息以及显存占用是否合适。
- 可以做什么
- 只读取本地 GGUF 与 safetensors 模型文件的文件头,因此助手无需加载张量数据即可回答磁盘上模型的相关问题。工具包括:inspect_model 一次给出格式、架构、参数量、量化、上下文长度、文件大小和张量数量等摘要;list_tensors 列出张量名称、形状和存储类型并支持过滤;estimate_vram 按指定上下文长度做显存适配检查;get_metadata 读取 GGUF 键值存储或 safetensors 元数据。支持 .gguf 文件、.safetensors 文件、分片索引 JSON、模型目录,以及通过魔数识别的无扩展名 GGUF 数据块。
- 适用场景
- 适合本地保存了模型文件、希望助手识别模型、比较量化等级、列出张量,或判断模型在给定显存和上下文长度下能否装得下的场景。它面向本地模型管理与规划,而不是执行推理。
- 运行要求
- 作为本地进程通过 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 分