Wraps Codex CLI as MCP tools: codex, review, query, search, structured, ping, listSessions.
Connect Runs on your machine
claude mcp add codex-mcp-bridge -e CODEX_CLI_PATH=<CODEX_CLI_PATH> -e CODEX_DEFAULT_MODEL=<CODEX_DEFAULT_MODEL> -e CODEX_FALLBACK_MODEL=<CODEX_FALLBACK_MODEL> -e CODEX_MAX_CONCURRENT=<CODEX_MAX_CONCURRENT> -e CODEX_MCP_SERVERS=<CODEX_MCP_SERVERS> -- npx -y [email protected]
{
"mcpServers": {
"codex-mcp-bridge": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CODEX_CLI_PATH": "<CODEX_CLI_PATH>",
"CODEX_DEFAULT_MODEL": "<CODEX_DEFAULT_MODEL>",
"CODEX_FALLBACK_MODEL": "<CODEX_FALLBACK_MODEL>",
"CODEX_MAX_CONCURRENT": "<CODEX_MAX_CONCURRENT>",
"CODEX_MCP_SERVERS": "<CODEX_MCP_SERVERS>"
}
}
}
}
{
"mcpServers": {
"codex-mcp-bridge": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CODEX_CLI_PATH": "<CODEX_CLI_PATH>",
"CODEX_DEFAULT_MODEL": "<CODEX_DEFAULT_MODEL>",
"CODEX_FALLBACK_MODEL": "<CODEX_FALLBACK_MODEL>",
"CODEX_MAX_CONCURRENT": "<CODEX_MAX_CONCURRENT>",
"CODEX_MCP_SERVERS": "<CODEX_MCP_SERVERS>"
}
}
}
}
{
"servers": {
"codex-mcp-bridge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CODEX_CLI_PATH": "<CODEX_CLI_PATH>",
"CODEX_DEFAULT_MODEL": "<CODEX_DEFAULT_MODEL>",
"CODEX_FALLBACK_MODEL": "<CODEX_FALLBACK_MODEL>",
"CODEX_MAX_CONCURRENT": "<CODEX_MAX_CONCURRENT>",
"CODEX_MCP_SERVERS": "<CODEX_MCP_SERVERS>"
}
}
}
}
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_CLI_PATHOptional | Path to the codex CLI binary. Defaults to 'codex' on PATH. |
CODEX_DEFAULT_MODELOptional | Default Codex model for codex/query/search. |
CODEX_FALLBACK_MODELOptional | Model to use when the primary model hits a quota error. |
CODEX_MAX_CONCURRENTOptional | Maximum concurrent Codex CLI subprocesses (default 3). |
CODEX_MCP_SERVERSOptional | Controls which MCP servers from ~/.codex/config.toml stay enabled inside the Codex subprocess. Empty/unset disables all non-required servers; 'inherit' passes config through; comma-separated names (e.g. 'serena,github') enables those; values starting with '{' or '[' are raw TOML. |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 2 Aug 2026 |
| Last updated | 2 Aug 2026 |
| Registry name | io.github.hampsterx/codex-mcp-bridge |
More search and web servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
