Gguf MCP server
Inspect local GGUF/safetensors models: quantization, params, VRAM fit — headers only.
0 stars35 downloads/wk
Reviews
Write oneNobody has reviewed Gguf yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Gguf tools (4)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
estimate_vramWill this model fit? Estimates memory as exact weights size plus a modeled fp16 KV cache (GGUF; context defaults to min(model context, 8192)). Safetensors models get a weights-only figure.
get_metadataThe model's metadata key-value store (GGUF) or __metadata__ block (safetensors). Large arrays arrive as {count, sample} summaries and long strings are truncated, so tokenizer vocabularies can't flood the context. Filter keys by substring (e.g. 'tokenizer' or 'rope').
inspect_modelSummarize a local GGUF or safetensors model: architecture, parameter count, quantization, context length, file size, tensor count. Reads only headers — inspecting a 70 GB model is instant. Works on extension-less GGUF blobs (e.g. Ollama's).
list_tensorsTensor names, shapes, and storage types inside a model file. Filter by substring (e.g. 'attn' or 'blk.0').
Public scan report
scanner v0.1.9 · 2026-09-23 · same rubric, same numbers if you re-run it
- Code scan7 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 40 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
What the publisher says
From the Gguf repository's README, as published. We do not edit it. Read it on GitHub
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 mcp add gguf -- npx -y gguf-mcpClaude Desktop — add to claudedesktopconfig.json:
{
"mcpServers": {
"gguf": {
"command": "npx",
"args": ["-y", "gguf-mcp"]
}
}
}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_vram reports 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
npm install
npm test # offline unit tests (vitest) — synthetic model files
npm run build # tsc → dist/
node scripts/smoke.mjs # end-to-end: generates models, drives the server over stdioArchitecture: 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
Nothing above is checked by us. What we check is on the safety report.
Install directly
Runs npx -y gguf-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add gguf-mcp -- npx -y gguf-mcp
Gguf: common questions
- Is Gguf MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the Gguf safety report
- How do I install Gguf?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does Gguf need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Gguf maintained?
- The last commit was 41 days ago (2026-08-14). The latest release is v0.1.1.