Clef MCP server
io.github.HighlyLoadedEgo/clef-mcp·v0.4.0·1 starsLocal MCP server for the Cloudflare Clef-Flash decision model: structured decisions, fully offline
not scanned yet
1 stars
Reviews
Write oneNobody has reviewed Clef yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Clef tools
No tool declarations could be read from the package source. They show once the server is installed.
How Clef compares
Against every graded Developer tools MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 90% of 1,119 Developer tools servers
- GitHub stars
- 1
- more than 50% of 855 Developer tools servers
Release history: 3 versions in the registry since 2026-10-03, latest 2026-11-02, typically one every 29 days.
Install Clef in Claude Code, Cursor or VS Code
Runs npx -y clef-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add clef-mcp -- npx -y clef-mcp
What the publisher says
From the Clef repository's README, as published. We do not edit it. Read it on GitHub
clef-mcp
A "reflex" for AI coding agents: structured decisions with probabilities — not prose.
Local MCP server that gives agents (Claude Code, Codex, Cursor, ZCode, …) access to the Clef-Flash decision model (9B, Apache-2.0 by Cloudflare) through a single tool: clefdecide. Pass a state and typed questions, get a probability distribution over your options** in one forward pass. Fully local, offline, no tokens burned.
Quick start
# 1. Detect hardware, download the model (~6 GB) + llama.cpp runtime, verify checksum + inference
npx clef-mcp install
# 2. Register the MCP server + agent skill in your clients (zcode, claude-code, codex, cursor)
npx clef-mcp setup
# 3. Run the MCP server (stdio)
npx clef-mcpclef-mcp (step 3) never downloads anything. If the model is missing, tool calls return a structured MODELNOTINSTALLED error with a hint. Steps 1 and 2 combine: npx clef-mcp install --setup.
Why not just ask the LLM?
Sweet spot: decision points inside agent loops — next action, routing, classification, severity, yes/no judgment — asked dozens of times per task.
The clef_decide tool
{
"state": {
"task": "Fix failing tests",
"error": "TypeError: Cannot read properties of undefined"
},
"questions": {
"next_action": {
"type": "choice",
"instructions": "What should the coding agent do next?",
"criteria": {
"inspect": "Inspect the code and gather more information",
"modify": "Modify the code",
"test": "Run additional tests",
"ask_user": "Ask the user for clarification"
}
},
"confidence": {
"type": "score",
"instructions": "How confident are you in this decision?",
"criteria": ["very_low", "low", "medium", "high", "very_high"]
},
"is_outage": { "type": "noul", "instructions": "Is a service down?" }
}
}Response — strictly structured, never prose:
{
"model": "clef-flash",
"decisions": {
"next_action": { "answer": { "inspect": 0.72, "modify": 0.12, "test": 0.14, "ask_user": 0.02 } },
"confidence": { "answer": { "very_low": 0.01, "low": 0.04, "medium": 0.18, "high": 0.61, "very_high": 0.16 } },
"is_outage": { "answer": { "true": 0.9, "false": 0.1 } }
}
}Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Clef: common questions
- Is Clef MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Clef safety report
- How do I install Clef?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Clef need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Clef maintained?
- The last commit was 31 days ago (2026-10-03). The latest release is v0.4.0.
- What can I use instead of Clef?
- Servers from other publishers that do the same job: Scrapling MCP Server, Agent Harnesses MCP server and Porkbun (official) MCP server.
- How does Clef compare with other Developer tools MCP servers?
- safety score 92/100 (higher than 90% of 1,119 Developer tools servers); github stars 1 (more than 50% of 855 Developer tools servers). Full comparison.
Alternatives to Clef
Same job from other publishers: the closest match first, then the best rated.
Scrapling MCP ServerWeb scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.not reviewedWidely usedA- Agent HarnessesAgent-harness picks, decision guides, setup templates, and skills; live GitHub/HN discovery.not reviewedEstablishedA
Porkbun (official)Official Porkbun MCP server: domains, DNS, SSL, hosting and Cloudflare via the Porkbun API.not reviewedEstablishedA- MCPCloudflare MCP serversnot reviewedEstablishedA
RepowiseCodebase intelligence for AI coding agents — graph, git history, docs, decisions, code health.not reviewedEstablishedB