NestDaddy

Codex Mcp Bridge

io.github.hampsterx/codex-mcp-bridge · v0.9.1

Wraps Codex CLI as MCP tools: codex, review, query, search, structured, ping, listSessions.

Connect Runs on your machine

Terminal
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]
claude_desktop_config.json
{
  "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>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "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>"
      }
    }
  }
}
.vscode/mcp.json
{
  "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

NameDescription
CODEX_CLI_PATH
Optional
Path to the codex CLI binary. Defaults to 'codex' on PATH.
CODEX_DEFAULT_MODEL
Optional
Default Codex model for codex/query/search.
CODEX_FALLBACK_MODEL
Optional
Model to use when the primary model hits a quota error.
CODEX_MAX_CONCURRENT
Optional
Maximum concurrent Codex CLI subprocesses (default 3).
CODEX_MCP_SERVERS
Optional
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 published2 Aug 2026
Last updated2 Aug 2026
Registry nameio.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.