Skip to content
Grok

legion for Grok

io.github.faulkj/legion

MCP-native LLM councils for debates, juries, blind panels, refinement, and custom deliberation.

client:Grok transport:stdio runtime:npm

Install legion in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "legion": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "legion-mcp"
      ],
      "env": {
        "MCP_TRANSPORT": "<MCP_TRANSPORT>",
        "DEFAULT_BASE_URL": "<DEFAULT_BASE_URL>",
        "DEFAULT_API_KEY": "<DEFAULT_API_KEY>",
        "GPT_API_KEY": "<GPT_API_KEY>",
        "MAX_ROUNDS": "<MAX_ROUNDS>",
        "TOKEN_BUDGET": "<TOKEN_BUDGET>",
        "DYNAMIC_ROLES": "<DYNAMIC_ROLES>",
        "LOG_LEVEL": "<LOG_LEVEL>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

legion in other clients