QuantizeLab MCP Server
Provides tools to inspect Hugging Face model repositories, quantize models to GGUF, publish the resulting GGUF to the user's Hugging Face account, and track the status of quantization jobs.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@QuantizeLab MCP ServerQuantize cognitivecomputations/dolphin-2.6-phi-2 to GGUF and publish it to my profile."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⚡ QuantizeLab MCP Server
Quantize, publish and share Hugging Face models as GGUF — right from your AI tools.
Turn any Hugging Face model into a production-ready GGUF file with one tool call. Powered by Cloudflare Workers, Supabase and Modal.
mcp-server · model-context-protocol · quantization · gguf · llm · cloudflare-workers · supabase
🚀 What is this?
QuantizeLab is a hosted model quantization service with a Model Context Protocol (MCP) server. It lets Claude, Cursor, and any other MCP-capable assistant convert Hugging Face models to GGUF format and publish the result to your own HF profile — without writing a single line of quantization code.
┌─────────────┐ MCP (Streamable HTTP) ┌──────────────────┐ modal.com ┌───────────────┐
│ Claude / │ ────────────────────────▶ │ QuantizeLab MCP │ ────────────▶ │ GPU worker │
│ Cursor / … │ ◀──────────────────────── │ (this repo) │ ◀──────────── │ llama.cpp │
└─────────────┘ └──────────────────┘ └───────┬───────┘
│ │ │
│ JSON-RPC over HTTPS │ HF API (token-scoped) │
│ ▼ ▼
│ ┌──────────────────┐ ┌───────────────┐
└──────────────────────────────▶ │ Supabase │ │ Hugging Face │
│ credits/jobs/… │ │ (GGUF) │
└──────────────────┘ └───────────────┘Related MCP server: Universal MCP Server
✨ Features
🧠 Zero-config quantization — paste a Hugging Face URL, get a GGUF repo back
🛠 5 MCP tools — credits, pricing, model browsing, quantization, job status
💳 Prepaid credits — atomic, race-safe ledger (no surprise bills)
🛡 Safety-first pipeline — format, token, price, GPU-budget & abuse checks before a job starts
🔐 Encrypted HF tokens — your token never touches the client or logs
🚫 Anti-farming guard — hashed-IP account limits, paying users exempt
🌐 Streamable HTTP + SSE — works with every modern MCP client
⚡ Quick start (2 minutes)
Create an API key on quantizelab.dev/developers → Create API key → copy
ql_...(shown once).Add the MCP server to your client (configs below).
Quantize — ask your assistant:
"Quantize
cognitivecomputations/dolphin-2.6-phi-2to GGUF and publish it to my profile."Verify — call
get_job_statusuntildone, then find the new repo on your HF profile.
🔑 Creating an API key
Go to quantizelab.dev and sign up (new accounts get 10 free credits).
Open API & MCP from the sidebar → Create API key.
Give it a name (e.g.
cursor) and copy theql_...value — it is shown only once.Rotate anytime: revoke keys per-device from the same page (max 10 active).
Keys are stored as SHA-256 hashes only — even a full database leak cannot reveal a usable key.
🛠 Client setup
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"quantizelab": {
"url": "https://quantizelab.dev/api/public/mcp",
"headers": { "Authorization": "Bearer ql_YOUR_API_KEY" }
}
}
}Claude Code
claude mcp add quantizelab \
--transport http \
--url https://quantizelab.dev/api/public/mcp \
--header "Authorization: Bearer ql_YOUR_API_KEY"Cursor
Settings → MCP → Add new MCP server:
Field | Value |
Type | URL |
Name |
|
URL |
|
Header |
|
Any other MCP client
Point it at https://quantizelab.dev/api/public/mcp (Streamable HTTP /
JSON-RPC 2.0) and attach the Authorization: Bearer ql_... header. A plain
GET returns the server metadata, so most clients discover the tools
automatically.
🧰 Tools
Tool | Description | Key args |
| Current credit balance | — |
| Tier table for a model URL |
|
| Inspect a HF repo (size, params, architecture, formats) |
|
| Quantize + publish. Requires |
|
| Poll a submitted job |
|
quantize_model — model prices & supported formats
Tier | Model size | Credits | ≈ USD |
Small | ≤ 1.1B params | 5 | $0.50 |
Medium | ≤ 3B | 15 | $1.50 |
Large | ≤ 8B | 35 | $3.50 |
XL | ≤ 15B | 65 | $6.50 |
Models larger than 15B are rejected before anything is charged. Only GGUF is available today; AWQ / GPTQ / EXL2 are in progress.
💳 Pricing & credits
1 credit = $0.10. You only pay when a job actually starts (credits are deducted atomically; refunded automatically if dispatch fails).
Signup bonus: 10 free credits — no card required.
Top-up packs:
Pack | Price | Credits |
Starter | $5 | 50 |
Standard | $10 | 100 |
Pro | $25 | 250 |
Studio | $50 | 500 |
Every rejection returns all reasons at once (
issues[]) plus the exact credit shortfall and the action you need to take — never a vague error.
🛡 Safety pipeline (what happens on every job)
Rate limit — max 5 submissions per account per 60s.
Format check — only implemented formats are queued.
HF token — must be set in your dashboard; decrypted server-side only.
Price check — the URL must be on
huggingface.coand ≤ 15B params.Preflight — repo exists, files downloadable, supported architecture.
Anti-farming — distinct accounts per network are capped (paying users exempt).
GPU budget — global daily/monthly worker time caps.
Balance check — atomic
deduct_credits; a short balance charges nothing.Dispatch + auto-refund — if the GPU worker can't start, credits are refunded automatically.
🔠Security model
API keys: SHA-256 hashed at rest; only the prefix is shown in the UI.
HF tokens: AES-encrypted with a server-side secret key; never logged.
IP hashes: peppered HMACs — raw IPs are never stored.
Database: RLS enabled on every table; the worker uses the service role only on the server; credit moves go through
SECURITY DEFINERfunctions.Worker callbacks: constant-time token verification on status updates.
🗠Self-hosting
Want to run your own instance? Everything is in this repo.
1. Supabase
Create a project at supabase.com.
Run
supabase/schema.sqlin the SQL editor (creates tables, RLS, triggers, and the credit RPCs — idempotent).Note your Project URL and service_role key (keep it secret!).
2. Deploy the worker
npm install
wrangler login
npx wrangler secret put SUPABASE_URL
npx wrangler secret put SUPABASE_SERVICE_ROLE_KEY
npx wrangler secret put HF_TOKEN_ENC_KEY # openssl rand -hex 32
npx wrangler secret put IP_HASH_PEPPER # openssl rand -hex 32
npx wrangler deployOptional env vars: MODAL_ENDPOINT_URL (your Modal worker callback) and
SITE_URL. Update wrangler.toml first if you rename the worker.
3. Client config
Point your clients at https://<your-worker>.workers.dev instead of the
hosted endpoint. Everything else is identical.
🧑â€ðŸ’» Development
npm install
npm run typecheck # strict TypeScript
npx wrangler deploy --dry-run # bundle smoke test📠Repo layout
src/
├── index.ts # Worker entry (env, routing, auth)
├── mcp.ts # JSON-RPC / Streamable HTTP / SSE core
└── lib/
├── pricing.ts # tiers, packs, per-URL price lookup
├── api-keys.server.ts # key generation + hashing + lookup
├── jobs.schema.ts # zod schemas (shared validation)
├── jobs.server.ts # checkout / safety helpers
├── jobs.runner.server.ts# the full guarded job pipeline
├── hf-preflight.server.ts # HF repo preflight checks
├── hf-token-crypto.server.ts # HF token encryption
├── ip-guard.server.ts # anti-farming guard
├── gpu-budget.server.ts # global GPU time budget
├── modal-dispatch.server.ts # Modal worker dispatch
└── worker-callback.server.ts # callback token verification
supabase/
└── schema.sql # full self-host schema (tables + RLS + RPCs)📄 License
MIT — build on it, fork it, run your own instance.
Made with âš¡ by The Code Haider
quantizelab.dev · Live MCP endpoint:
https://quantizelab.dev/api/public/mcp
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceEnables interaction with 3D printer management systems through an MCP server, supporting STL file manipulation, slicing, and control of printers like OctoPrint, Klipper, Duet, and more.Last updated153219GPL 2.0
- -license-quality-maintenanceProvides comprehensive MCP functionality with GGUF model integration, enabling resource management, dynamic tool execution, web data fetching, file operations, and system information retrieval. Supports automatic model detection from LM Studio with built-in security measures and extensible tool plugins.Last updated
- Flicense-quality-maintenanceEnables Claude and other MCP-compatible tools to communicate with OpenAI's GPT models (GPT-5, GPT-5-mini, o3) with conversation history and session management. Features advanced controls like reasoning effort settings, token tracking, and parallel conversation sessions for efficient AI workflows.Last updated13
- Flicense-qualityDmaintenanceIntegrates local language models (like Qwen3-8B) with MCP clients, providing tools for chat, code analysis, text generation, translation, and content summarization using your own hardware.Last updated
Related MCP Connectors
Generate, edit, and deploy immersive 3D/WebGL web projects from any MCP assistant.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
Create, browse, remix, collaborate on, and run durable AI workflow nodes from MCP hosts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/thecodehaider/quantize-gguf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server