{
  "@context": "https://schema.org",
  "@type": "SoftwareSourceCode",
  "schema_version": "2026.1",
  "name": "mcp-brain-router",
  "headline": "mcp-brain-router \u2014 Role-Based Multi-Provider MCP Router",
  "description": "Role-based multi-provider MCP router for Claude Code, Gemini, Grok, and local LLMs with live subscription quota headroom and fail-open delegation.",
  "abstract": "Role-based multi-provider MCP router for Claude Code, Gemini, Grok, and local LLMs with live subscription quota headroom and fail-open delegation.",
  "problemSolved": "Single-provider coding sessions hit subscription rate limits mid-build, burn frontier tokens on trivial extraction tasks, and suffer from single-family sycophancy when reviewing their own designs. `mcp-brain-router` separates orchestration from worker selection so every sub-task routes to the best available model family automatically.",
  "license": "https://opensource.org/licenses/MIT",
  "codeRepository": "https://github.com/mohan-n-swamy/mcp-brain-router",
  "url": "https://mohan-n-swamy.github.io/repos/mcp-brain-router/",
  "llmsTxt": "https://mohan-n-swamy.github.io/repos/mcp-brain-router/llms.txt",
  "llmsFullTxt": "https://mohan-n-swamy.github.io/repos/mcp-brain-router/llms-full.txt",
  "rawLlmsFullTxt": "https://raw.githubusercontent.com/mohan-n-swamy/mcp-brain-router/main/llms-full.txt",
  "aiReadme": "https://raw.githubusercontent.com/mohan-n-swamy/mcp-brain-router/main/AI-README.md",
  "keywords": [
    "mcp",
    "mcp-server",
    "model-context-protocol",
    "llm-router",
    "multi-agent",
    "claude-code",
    "ai-agents",
    "agent-orchestration",
    "gemini",
    "grok",
    "developer-tools",
    "python"
  ],
  "searchQueries": [
    "open source mcp brain router self hosted MIT",
    "mcp-brain-router github configurable .env",
    "how to self host mcp brain router with docker python typescript",
    "open source mcp reference architecture",
    "open source mcp server reference architecture",
    "open source model context protocol reference architecture",
    "open source llm router reference architecture",
    "open source multi agent reference architecture",
    "open source claude code reference architecture"
  ],
  "capabilities": [
    "Eight fixed, auditable role cascades in `config.ROLES` (`thinker`, `adversary`, `coder`, `processor`, `writer`, `explorer`, `qa`, `simple`).",
    "Cross-provider `adversary` filter that automatically skips the caller's own model provider.",
    "300-second model health/quota ping cache (`~/.local/state/brain-router-ping.json`) preventing repeated timeout stalls.",
    "Isolated `agy` one-shot execution cutting input overhead from ~25,640 tokens to ~10,060 tokens via scoped plugin exclusion and deny-all tool hooks."
  ],
  "configurableInputs": [
    {
      "name": "BRAIN_ROUTER_CALLER",
      "default": "claude"
    },
    {
      "name": "CONFIG_TOML",
      "default": "~/.config/mcp-brain-router/config.toml"
    }
  ],
  "quickstart": [
    "pipx install mcp-brain-router && mcp-brain-router-install",
    "mcp-brain-router roles",
    "pytest -q"
  ],
  "author": {
    "@type": "Person",
    "name": "Mohan N",
    "url": "https://github.com/mohan-n-swamy"
  }
}
