Skip to content
Cursor

codex mcp tool for Cursor

io.github.x51xxx/codex-mcp-tool

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

client:Cursor transport:stdio runtime:npm

Install codex mcp tool in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

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>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

codex mcp tool in other clients