multi-judge-consensus
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., "@multi-judge-consensusReview this draft for hallucinations: 'The Eiffel Tower is in London.'"
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.
Multi-Judge Consensus (MJC)
A cross-vendor model committee that reviews agent-generated content before it ships.
MJC assembles multiple LLMs from independent vendors (DeepSeek, Zhipu GLM, Alibaba Qwen, and others) into a review committee. Each judge produces a structured opinion; a purely rule-based arbiter votes, and divergent opinions trigger a bounded cross-debate. The result is an architecture-level defense against hallucination: one model's blind spot rarely overlaps with another's.
Zero third-party dependencies (Python stdlib only). Bring your own API keys. Runs fully locally.
What it does
Structured multi-judge review — verdicts (
pass/revise/reject/need_human), confidence, and itemized issues (factual_error,logical_error,hallucination,style) in machine-readable JSON.Rule-based arbitration — no LLM decides the final verdict. Majority vote; ties or high-confidence minority objections trigger cross-debate (≤ 2 rounds, stops on consensus).
Deterministic verifier — date-span, percentage-base, and explicit-sum errors are checked by code, not by an LLM: zero cost, zero latency, no false positives by design.
Cost-tiered routing — screen (1 call) → cheap pair → flagship committee. Escalation is monotonic; identical content re-reviews are free (cache).
Administration console — a local Web UI for API keys, model catalog, tier presets, trust scores, live review streams, and per-issue disposition records.
Adapter surface — MCP server, subprocess CLI with gate exit codes, HTTP API, and optional OpenClaw integration.
Related MCP server: promptspeak-mcp-server
How it works
content
├─ ⓪ verifier deterministic checks (dates / percentages / sums) — 0 LLM cost
├─ ① cache identical content → previous verdict, 0 calls
├─ ② screen cheap judge (glm-4-flash); pass with conf ≥ threshold → done
├─ ③ committee 3 models review independently and in parallel
├─ ④ arbiter pure rule vote: ≥2/3 pass → pass; disagreement → debate
├─ ⑤ debate ≤2 rds each judge sees the others' opinions, may change verdict
└─ ⑥ verdict result + token usage + cost estimate, fully loggedTier presets (one-click in the admin console):
Tier | Committee | Strategy |
Economy | 2× budget models | cheapest, screen-first |
Standard | 2 budget + 1 flagship | default (benchmark-verified) |
Strict | flagship only, no screen | maximum rigor |
Measured results
Adversarial benchmark v1 — 21 samples (cross-document contradictions, temporal hallucinations, numerical traps, instruction deviation, plus clean controls), run with real API calls, 2026-09-06:
Pipeline | Defect pass-through | False kills on clean content |
No review (shipped as-is) | 100% (18/18) | — |
Single-model self-check (glm-4-plus) | 11.1% (2/18 missed) | — |
MJC full pipeline | 0% (18/18 caught) | 0/3 |
Full-set recall 1.0 · precision 1.0 · F1 1.0. Per-category: 5/5, 5/5, 5/5, 3/3. Layering: 1 deterministic catch by the verifier (0 LLM cost), 17 by committee + debate.
Reproduce: python3 -m mjc.cli bench --set v1-full (≈ ¥0.6 in API spend).
History is appended to logs/bench-history.jsonl for regression tracking.
Getting started
Step-by-step walkthrough for first-time users (key setup, first review, web console, agent integrations, cost table, troubleshooting): QUICKSTART.md
git clone https://github.com/ElonAug7/multi-judge-consensus.git
cd multi-judge-consensus
python3 -m mjc.cli setup # ① enter API keys interactively (skippable; stored locally, 0600)
python3 -m mjc.cli webui # ② admin console at http://127.0.0.1:8123
# ③ review a piece of content
python3 -m mjc.cli judge-only \
--task "Summarize tomorrow's weather in Beijing" \
--output "Beijing will have a heavy storm tomorrow"Requirements: Python ≥ 3.9. No pip install needed. Without any keys you can still run the verifier,
the UI, and the offline test suites; with one vendor key the committee shrinks automatically
(recommended: two or more vendors).
Keys are read from environment variables (MJC_DEEPSEEK_KEY, MJC_GLM_KEY, MJC_<PROVIDER>_KEY) or
keys.local.json (gitignored, chmod 600). See settings.example.json for the configuration template.
CLI
Command | Purpose |
| interactive first-run key configuration + connectivity probes |
| health check: keys, tier, trust scores, cache, cumulative usage |
| review given text with the committee |
| generate → review → rewrite loop (≤ 3 rejections) |
| single-shot review with memory context, JSON output |
| stage gate; exit codes pass=0 / revise=2 / reject=3 |
| red-team benchmark with history |
| record per-issue dispositions (adopted / rejected with reason) |
| local admin console (127.0.0.1:8123) |
| MCP stdio server |
Integrating with other agents
MCP (Claude Desktop/Code, Cursor, Windsurf, Cline, …):
python3 -m mjc.mcp
# Claude Code: claude mcp add mjc -- python3 -m mjc.mcpThe review(task, output) tool returns {verdict, votes, issues, api_calls, tokens, cost_yuan}.
Subprocess CLI — one-line JSON plus exit-code gate semantics; usable from any language or CI.
HTTP — POST /api/review with optional token auth (Dify/Coze/n8n custom tools, cross-machine).
OpenClaw — optional native integration: transcript scanning, coding stage gates, live review stream.
Architecture
mjc/
├── providers.py vendor registry (deepseek/glm/qwen/dashscope/doubao/kimi; add keys to enable)
├── judge.py single reviewer: structured JSON, memory injection, same-vendor fallback
├── arbiter.py vote/debate arbitration; per-opinion live events
├── pipeline.py verifier → screen → committee; fault-tolerant degradation
├── verifier.py deterministic checks (dates/percentages/sums), zero false positives by design
├── bench.py adversarial benchmark runner (recall/precision/F1 + history)
├── webui.py admin console (review / live tasks / settings)
├── mcp_server.py MCP stdio server
└── settings.py runtime config (provider registry, model catalog, tier presets)
tests/ 10 offline suites (0 API calls; key-dependent cases skip gracefully)
samples/bench-v1.json adversarial benchmark corpusDevelopment
python3 tests/test_phase3.py # pipeline/cache/degradation
python3 tests/test_verifier.py # deterministic verifier
python3 tests/test_mcp.py # MCP protocol
# …10 suites total, all offline. GitHub Actions runs them on Python 3.9/3.11/3.12.Security & notes
Keys live only in environment variables or a local
keys.local.json(0600, gitignored).Runtime config, logs, and review records stay local and are never committed.
Cost figures are estimates from per-vendor price tables (¥/1K tokens), marked as approximations; token counts come from API usage fields.
The benchmark measures worst-case interception on a constructed corpus, not a natural production distribution.
License
GPL-3.0. Local invocation only; keys are the user's own.
Available Tools
1 toolreviewA
多模型共识审查:对 Agent 输出做幻觉/事实/逻辑错误交叉审查(验证器零成本先行,初筛+委员会+辩论)。返回裁决 verdict(pass/revise/reject/need_human) 与逐条问题 issues。
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Agent 被要求完成的原始任务 | |
| output | Yes | 待审查的 Agent 输出/代码说明 | |
| screen | No | 开初筛(默认跟后台配置) | |
| degrade | No | 信任降级(默认关) | |
| verbose | No | true 返回完整 rounds;false 只返回摘要(默认) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It mentions the process and return format, but doesn't disclose whether the tool has side effects, requires specific permissions, or is read-only. The mention of 'trust degradation' hints at internal behavior but is not fully elaborated.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence. It efficiently conveys the tool's purpose, process, and output without unnecessary words. The structure is clean and easy to parse.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is no output schema, so the description must explain the return value; it does mention verdict and issues. It also explains the effect of the 'verbose' parameter. However, for a complex tool, it doesn't detail the exact structure of the 'issues' list or how to interpret the 'verdict' values, but it's still reasonably complete for a concise description.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema covers 100% of parameters with descriptions, and the tool description doesn't add much beyond that. The 'verbose' parameter's effect on output is mentioned in the schema, and the description reaffirms it. Since schema coverage is complete, the baseline is 3, and no additional semantic clarity is provided.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: it performs multi-model consensus review of agent output, checking for hallucinations, factual errors, and logical errors. It also mentions the return format (verdict and issues), making its purpose unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description outlines the review workflow (zero-cost validator, screening, committee, debate) which gives a sense of when it might be used. However, it doesn't explicitly state conditions for use versus alternatives, though no siblings exist. It could be clearer on when to invoke this tool vs. a simpler check.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.4.1- First observed
review
TDQS
只有一个工具,不存在与其他工具混淆或选择冲突的情况。
工具名为简洁的动词 review,没有混合命名风格或一致性问题。
单个工具能完成核心审查任务,但作为多模型共识服务略显单薄,属于 1-2 个工具的边界情况。
review 工具覆盖了核心的共识审查、裁决和问题输出,没有明显死胡同;但缺少配置、历史记录等辅助能力。
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 Connectors
Human-in-the-loop review and approval for AI agents. Audit trail, approval policies, native MCP.
Human-in-the-loop for AI agents over MCP: durable approvals with a hosted review page & audit trail
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Pre-execution governance for AI agents. Deterministic PASS/FAIL/REVIEW verdicts, replayable proof.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that enables multi-provider AI collaboration using models like DeepSeek, OpenAI, and Anthropic through strategies such as parallel execution and consensus building. It provides specialized tools for side-by-side content comparison, quality review, and iterative refinement across different AI providers.41MIT
- AlicenseBqualityCmaintenancePre-execution governance for AI agents. 45 MCP tools for hold queues, audit trails, risk scoring, and policy enforcement. Validates agent actions before they execute.451181MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for AI compliance auditing. Scores agent outputs for hallucination liability under the EU AI Act, issues verifiable compliance stamps, and tracks audit history by agent.MIT

Datashift MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceEnables AI agents to submit tasks for human or AI review and receive decisions via MCP tools, adding human review checkpoints to workflows.MIT
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/ElonAug7/multi-judge-consensus'
If you have feedback or need assistance with the MCP directory API, please join our Discord server