Skip to content
Grok

codex mcp tool for Grok

io.github.x51xxx/codex-mcp-tool

MCP server bridging AI assistants to OpenAI Codex CLI for code analysis and review

client:Grok transport:stdio runtime:npm

Install codex mcp tool 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-tool": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@trishchuk/codex-mcp-tool"
      ],
      "env": {
        "CODEX_MCP_CWD": "<CODEX_MCP_CWD>",
        "CODEX_SESSION_TTL_MS": "<CODEX_SESSION_TTL_MS>",
        "CODEX_MAX_SESSIONS": "<CODEX_MAX_SESSIONS>"
      }
    }
  }
}

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 tool in other clients