Tetrad MCP Server

Quadruple consensus MCP server for code validation using Codex, Gemini, and Qwen

Local serverstdio

What is the Tetrad MCP Server?

Quadruple consensus MCP server for code validation using Codex, Gemini, and Qwen

The short version

The system implements a quadruple consensus protocol where no code or plan is accepted without approval from four intelligences: the three external evaluators + Claude Code itself.

  • Quadruple Consensus — 4 AI models must agree to approve code
  • ReasoningBank — Continuous learning system with RETRIEVE→JUDGE→DISTILL→CONSOLIDATE cycle
  • High Performance — Written in Rust with parallel execution via Tokio
  • MCP Server — JSON-RPC 2.0 server over stdio for Claude Code integration
  • Full CLI — Intuitive commands (init, serve, status, doctor, config, etc.)
  • LRU Cache — Result caching with configurable TTL

What it needs from you

To use Tetrad, you need at least one of the AI CLIs installed and authenticated: | CLI | Installation | Auth Without API Key? | Free Tier | |-----|--------------|----------------------|-----------| | Codex CLI | npm i -g @openai/codex | ✅ ChatGPT Plus/Pro/Business | Via subscription | | Gemini CLI | `npm i -g

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
tetrad_review_planReview implementation plans before coding
tetrad_review_codeReview code before saving
tetrad_review_testsReview tests before finalizing
tetrad_confirmConfirm agreement with received feedback
tetrad_final_checkFinal verification before commit
tetrad_statusCheck health of evaluators

How to install the Tetrad MCP Server

{
  "mcpServers": {
    "tetrad": {
      "command": "npx",
      "args": ["-y", "@samoradc/tetrad"],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "GOOGLE_API_KEY": "your-value",
        "DASHSCOPE_API_KEY": "your-value",
        "GEMINI_API_KEY": "your-value",
        "OPENAI_BASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

To use Tetrad, you need at least one of the AI CLIs installed and authenticated: | CLI | Installation | Auth Without API Key? | Free Tier | |-----|--------------|----------------------|-----------| | Codex CLI | npm i -g @openai/codex | ✅ ChatGPT Plus/Pro/Business | Via subscription | | Gemini CLI | `npm i -g

VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes
GOOGLE_API_KEYCredential the server authenticates with.Yes
DASHSCOPE_API_KEYCredential the server authenticates with.Yes
GEMINI_API_KEYCredential the server authenticates with.Yes
OPENAI_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Tetrad to tetrad review plan.”
  • “Use Tetrad to tetrad review code.”
  • “Use Tetrad to tetrad review tests.”

Frequently asked questions

Quadruple consensus MCP server for code validation using Codex, Gemini, and Qwen Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.