MCP directory
CM

Codex Mcp Bridge

by github.com/hampsterx · v0.9.1 · updated Aug 2, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • CODEX_CLI_PATH

    Path to the codex CLI binary. Defaults to 'codex' on PATH.

  • CODEX_DEFAULT_MODEL

    Default Codex model for codex/query/search.

  • CODEX_FALLBACK_MODEL

    Model to use when the primary model hits a quota error.

  • CODEX_MAX_CONCURRENT

    Maximum concurrent Codex CLI subprocesses (default 3).

  • CODEX_MCP_SERVERS

    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.

More from github.com/hampsterx

More MCP servers