Codex MCP Bridge

Wraps Codex CLI as MCP tools: codex, review, query, search, structured, ping, listSessions. Its 8 documented tools cluster into read & search, codex, review, structured. It runs locally over stdio via the published package.

People connecting this server to Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.

VERIFIED ACTIVE

LAST COMMIT 2026-08-03 · ★ 3 · #301 OF 848 MAINTAINED OTHER · VERIFIED 2026-08-25

MIT · TypeScript servers · how we verify → /methodology

01 · Install Codex MCP Bridge

before you install - you'll need

OPENAI_API_KEY

Environment variables documented in the project's README - it lists which are required and which have defaults.

Claude Code

claude mcp add hampsterx-codex-mcp-bridge -- npx -y codex-mcp-bridge

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "hampsterx-codex-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "codex-mcp-bridge"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

license MIT - declared in the repository

npm package codex-mcp-bridge - unscoped; check the name against the project README before installing

registry namespace io.github.hampsterx is GitHub-verified and matches the repo owner

03 · What Codex MCP Bridge can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

What you can build

An agent gets 8 documented tools across read & search, codex, review, including codex, review, search, query.

Capability map

Tools grouped from the project's README - what Codex MCP Bridge lets an agent do.

read & search

3 tools - e.g. Web search via codex --search. Returns synthesized answers with source URLs.; Lightweight text analysis. No repo context, no sessions. Runs in an isolated temp directory.; List active conversation…

search · query · listSessions

Codex

1 tool - e.g. Execute prompts with file context, session resume, and sandbox control. Multi-turn conversations via session IDs. Use for free-form review prompts; see Code rev

codex

Review

1 tool - e.g. Native diff-aware Codex review via codex exec review --json. No caller prompt; supports uncommitted, base branch, and commit review modes.

review

Structured

1 tool - e.g. JSON Schema validated output via Ajv. Data extraction, classification, or any task needing machine-parseable output.

structured

Ping

1 tool - e.g. Health check with CLI version, capabilities, and concurrency diagnostics (activeCount, queueDepth).

ping

Mcp Status

1 tool - e.g. Report what Codex says about each MCP server it knows about: auth type, tool inventory, and whether it initialized. Optional diagnostic mode adds explicit failu

mcpStatus

Latest releases

v0.9.1 · 2026-08-02

What's new · Fixed · The requested sandbox level is now binding, not advisory. 0.9.0 made · every path emit a --sandbox level; this makes the level hold. Codex's · approvals_reviewer config key decides who approves a…

v0.9.0 · 2026-08-02

What's new · Fixed · Resumed turns no longer inherit their sandbox from user config. · codex exec resume takes its sandbox from user config and project trust when · no sandbox flag is given, which resolves to…

v0.8.0 · 2026-07-09

What's new · Added · Token usage in _meta - codex / query responses carry _meta.usage · (input/cached/output/reasoning token counts) from the exec turn.completed · event. Absent when no usage is emitted. Dollar cost…

04 · Who maintains Codex MCP Bridge

codex-mcp-bridge is maintained by hampsterx. We track 3 MCP servers from hampsterx - 2 actively maintained, 15 combined GitHub stars, oldest repo from Mar 2026. Full record: all servers from hampsterx.

  1. claude-mcp-bridge Wraps Claude Code CLI as MCP tools: query, search, structured, ping, listSessions. ★ 6

05 · Facts

category
other - ranked #301 of 848 actively-maintained other servers as of 2026-08-25.
release cadence
3 releases in the last 90 days (latest 2026-08-02)
registry
io.github.hampsterx/codex-mcp-bridge (active, first published 2026-04-20 · 4 versions)
packages
npm:codex-mcp-bridge

06 · Codex MCP Bridge FAQ

Is Codex MCP Bridge still maintained?

Yes - as of 2026-08-25, its last commit was 2026-08-03 and it shipped 3 releases in the last 90 days. We re-verify nightly.

What can Codex MCP Bridge do?

An agent gets 8 documented tools across read & search, codex, review, including codex, review, search, query.

How do I install Codex MCP Bridge?

Run `npx -y codex-mcp-bridge`. The README documents one environment variable (OPENAI_API_KEY) to set first. You can also paste the ready-made client config above.

Does Codex MCP Bridge run locally?

Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to Codex MCP Bridge

More MCP servers to compare · ServiceNow Nodejs · Hashnet · Apple Notes · Eve Mentor MCP

More TypeScript MCP servers · Pexels MCP Server · Kanera · Apple Ads · Google Surf MCP · Visuals MCP · see all