Local MCP server for the Cloudflare Clef-Flash decision model: structured decisions, fully offline
MCPpedia last refreshed this data
io.github.HighlyLoadedEgo/clef-mcp is an MCP server that local MCP server for the Cloudflare Clef-Flash decision model: structured decisions, fully offline. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 85/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"io-github-highlyloadedego-clef-mcp": {
"args": [
"-y",
"clef-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Local MCP server for the Cloudflare Clef-Flash decision model: structured decisions, fully offline
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y 'clef-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked clef-mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in cloud
Gives AI development tools Firebase-specific capabilities and expertise.
Cloud-powered AI platform with multi-agent swarms, sandboxes, and workflow automation
Draw cloud architecture diagrams with official AWS, Azure and GCP icons from a prompt or Terraform.
Designs, prices, and deploys AWS/GCP cloud infrastructure from plain-English requirements.
MCP Security Weekly
Get CVE alerts and security updates for io.github.HighlyLoadedEgo/clef-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Local decisions for AI agents. Reusable classification for your datasets.
Run Clef-Flash (9B, Apache-2.0 by Cloudflare) locally. Give coding agents a structured MCP decision tool, or classify JSONL/CSV datasets with YAML profiles. Get probabilities and explicit review results instead of generated prose. Inference stays on your machine.
Requires Node.js 20+ and enough memory for the selected model (16 GB recommended for Q4_K_M). The default model download is approximately 6 GB; subsequent inference runs offline.
npm install -g clef-mcp
clef-mcp install
Choose your workflow:
| Workflow | Start here |
|---|---|
| Decisions inside Claude Code, Codex, Cursor or ZCode | clef-mcp setup, then restart your client; client configuration |
| Classify tickets, documents or other records | YAML profiles and dataset classification |
| Hooks, CI or shell scripts | clef-mcp decide |
The MCP server starts with clef-mcp (stdio). Only install downloads model/runtime files. You can also use npx -y clef-mcp instead of a global install; npx -y clef-mcp install --setup combines model installation and client registration.
Define a task once, then apply it to separate records. The model loads once for the whole batch; a separate daemon is not required.
Save this as support-routing.yaml:
schema_version: 1
name: support-routing
instructions: Classify the current support request into exactly one department.
labels:
billing: Payments, refunds, invoices and subscription charges
technical: Errors, outages, installation and integration problems
other: Requests outside billing and technical support
input:
id_field: id
fields: [subject, body]
policy:
min_probability: 0.80
min_margin: 0.15
Save tickets.jsonl (one object per line):
{"id":"001","subject":"Duplicate charge","body":"Please refund my duplicate subscription payment."}
{"id":"002","subject":"Checkout crashes","body":"The payment page returns an error."}
Or use tickets.csv with a header row:
id,subject,body
001,Duplicate charge,Please refund my duplicate subscription payment.
002,Checkout crashes,The payment page returns an error.
clef-mcp classify tickets.jsonl --profile support-routing.yaml --output results.jsonl
clef-mcp classify tickets.csv --profile support-routing.yaml --output csv-results.jsonl
# stdout carries JSONL; summaries and diagnostics go to stderr
cat tickets.jsonl | clef-mcp classify - --profile support-routing.yaml
# Extension override, including CSV on stdin
cat tickets.csv | clef-mcp classify - --format csv --profile support-routing.yaml
Runnable files also ship in examples/classify/.
| Field | Meaning |
|---|---|
schema_version | Required; currently 1 |
name | Required profile ID, up to 64 letters/digits/underscores/hyphens, starting with a letter or digit |
instructions | Required classification question |
labels | Required map of 2–100 mutually exclusive label IDs to descript |