Skip to content
Grok

sub agents mcp for Grok

io.github.shinpr/sub-agents-mcp

MCP server for delegating tasks to specialized AI sub-agents across coding tools

client:Grok transport:stdio runtime:npm

Install sub agents mcp 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": {
    "sub-agents-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sub-agents-mcp"
      ],
      "env": {
        "AGENTS_DIR": "<AGENTS_DIR>",
        "AGENT_TYPE": "<AGENT_TYPE>",
        "AGENT_PERMISSION": "<AGENT_PERMISSION>",
        "AGENT_MODEL": "<AGENT_MODEL>",
        "AGENT_EFFORT": "<AGENT_EFFORT>",
        "CURSOR_API_KEY": "<CURSOR_API_KEY>",
        "CLI_API_KEY": "<CLI_API_KEY>",
        "EXECUTION_TIMEOUT_MS": "<EXECUTION_TIMEOUT_MS>",
        "SESSION_ENABLED": "<SESSION_ENABLED>",
        "SESSION_DIR": "<SESSION_DIR>",
        "SESSION_RETENTION_DAYS": "<SESSION_RETENTION_DAYS>",
        "AGENTS_SETTINGS_PATH": "<AGENTS_SETTINGS_PATH>"
      }
    }
  }
}

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

sub agents mcp in other clients