Skip to content
Grok

codex mcp bridge for Grok

io.github.hampsterx/codex-mcp-bridge

Wraps Codex CLI as MCP tools: codex, review, query, search, structured, ping, listSessions.

client:Grok transport:stdio runtime:npm

Install codex mcp bridge 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": {
    "codex-mcp-bridge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codex-mcp-bridge"
      ],
      "env": {
        "CODEX_CLI_PATH": "<CODEX_CLI_PATH>",
        "CODEX_DEFAULT_MODEL": "<CODEX_DEFAULT_MODEL>",
        "CODEX_FALLBACK_MODEL": "<CODEX_FALLBACK_MODEL>",
        "CODEX_MAX_CONCURRENT": "<CODEX_MAX_CONCURRENT>",
        "CODEX_MCP_SERVERS": "<CODEX_MCP_SERVERS>"
      }
    }
  }
}

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

codex mcp bridge in other clients