NestDaddy

Codex Mcp Tool

io.github.x51xxx/codex-mcp-tool ยท v2.2.0

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

Connect Runs on your machine

Terminal
claude mcp add codex-mcp-tool -e CODEX_MCP_CWD=<CODEX_MCP_CWD> -e CODEX_SESSION_TTL_MS=<CODEX_SESSION_TTL_MS> -e CODEX_MAX_SESSIONS=<CODEX_MAX_SESSIONS> -- npx -y @trishchuk/[email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "codex-mcp-tool": {
      "command": "npx",
      "args": [
        "-y",
        "@trishchuk/[email protected]"
      ],
      "env": {
        "CODEX_MCP_CWD": "<CODEX_MCP_CWD>",
        "CODEX_SESSION_TTL_MS": "<CODEX_SESSION_TTL_MS>",
        "CODEX_MAX_SESSIONS": "<CODEX_MAX_SESSIONS>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "codex-mcp-tool": {
      "command": "npx",
      "args": [
        "-y",
        "@trishchuk/[email protected]"
      ],
      "env": {
        "CODEX_MCP_CWD": "<CODEX_MCP_CWD>",
        "CODEX_SESSION_TTL_MS": "<CODEX_SESSION_TTL_MS>",
        "CODEX_MAX_SESSIONS": "<CODEX_MAX_SESSIONS>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "codex-mcp-tool": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@trishchuk/[email protected]"
      ],
      "env": {
        "CODEX_MCP_CWD": "<CODEX_MCP_CWD>",
        "CODEX_SESSION_TTL_MS": "<CODEX_SESSION_TTL_MS>",
        "CODEX_MAX_SESSIONS": "<CODEX_MAX_SESSIONS>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
CODEX_MCP_CWD
Optional
Override working directory for all tool calls
CODEX_SESSION_TTL_MS
Optional
Session time-to-live in milliseconds (default: 86400000 = 24h)
CODEX_MAX_SESSIONS
Optional
Maximum concurrent sessions (default: 50)

Details

Package@trishchuk/[email protected] (NPM, stdio)
First published13 Mar 2026
Last updated13 Mar 2026
Registry nameio.github.x51xxx/codex-mcp-tool

More developer tools servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.