Skip to main content

Codex MCP Bridge

io.github.hampsterx/codex-mcp-bridge

v0.9.1Updated Aug 2, 2026stdio · npm

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

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add codex-mcp-bridge -e CODEX_CLI_PATH=codex -e CODEX_MAX_CONCURRENT=3 -- npx -y [email protected]

Configuration

5 settings.

  • CODEX_CLI_PATH
    Env var· optional
    Path to the codex CLI binary. Defaults to 'codex' on PATH.Default: codex
  • CODEX_DEFAULT_MODEL
    Env var· optional
    Default Codex model for codex/query/search.
  • CODEX_FALLBACK_MODEL
    Env var· optional
    Model to use when the primary model hits a quota error.
  • CODEX_MAX_CONCURRENT
    Env var· optional
    Maximum concurrent Codex CLI subprocesses (default 3).Default: 3
  • CODEX_MCP_SERVERS
    Env var· 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.

Listed in the official MCP Registry since Aug 2, 2026. Mirrored daily; last checked Nov 26, 2026.