MCP Server Studio
MCP server bridging AI assistants to OpenAI Codex CLI for code analysis and review
Registry name: io.github.x51xxx/codex-mcp-tool
Add to 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>"
}
}
}
}Run in your 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]Add to .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>"
}
}
}
}Add to .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>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_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>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
CODEX_MCP_CWD | No | Override working directory for all tool calls |
CODEX_SESSION_TTL_MS | No | Session time-to-live in milliseconds (default: 86400000 = 24h) |
CODEX_MAX_SESSIONS | No | Maximum concurrent sessions (default: 50) |