MCP server bridging AI assistants to OpenAI Codex CLI for code analysis and review
Connect Runs on your machine
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]
{
"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>"
}
}
}
}
{
"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>"
}
}
}
}
{
"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
| Name | Description |
|---|---|
CODEX_MCP_CWDOptional | Override working directory for all tool calls |
CODEX_SESSION_TTL_MSOptional | Session time-to-live in milliseconds (default: 86400000 = 24h) |
CODEX_MAX_SESSIONSOptional | Maximum concurrent sessions (default: 50) |
Details
| Package | @trishchuk/[email protected] (NPM, stdio) |
| First published | 13 Mar 2026 |
| Last updated | 13 Mar 2026 |
| Registry name | io.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.
