MCP Codex Dev MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add mcp-codex-dev -- npx -y mcp-codex-dev
README.md

Integrate Codex CLI into Claude Code workflows with session management.

mcp-codex-dev

English | 中文

MCP Server for integrating Codex CLI into Claude Code workflows with session management and real-time progress monitoring.

Installation

Prerequisites: Codex CLI installed and configured.

In .mcp.json file

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

or

claude mcp add mcp-codex-dev -- npx -y mcp-codex-dev 

Windows OS:

{
  "mcpServers": {
    "mcp-codex-dev": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "mcp-codex-dev"]
    }
  }
}

or

claude mcp add mcp-codex-dev -- cmd /c npx -y mcp-codex-dev

Tools

Tool Description
exec Clean dialogue without templates, supports session resume
tdd Codex CLI with built-in test-driven development prompt template
review Code review (spec + quality in parallel), supports resume
health Environment and config diagnostics
session_list List tracked sessions
session_discard Discard sessions

Configuration

Create ~/.mcp/mcp-codex-dev/config.json:

{
  "model": "gpt-5.2",
  "sandbox": "danger-full-access",
  "timeout": 300000,
  "tools": {
    "tdd": { "model": "gpt-5.3-codex", "sandbox": "danger-full-access", "timeout": 2000000},
    "review": { "model": "gpt-5.2", "sandbox": "danger-full-access", "timeout": 3000000},
    "health": { "enabled": false }
  }
}

Top-level model / sandbox / timeout are global defaults. The tools section overrides per tool (keyed by tool name). Set "enabled": false to disable a tool.

Per-project config can be placed at /.mcp/mcp-codex-dev.config.json.

Progress Server

A local HTTP server starts at http://localhost:23120 showing real-time progress. Configurable via progressPort.

When multiple MCP server instances run simultaneously, they share a single progress page: the first instance binds the port and serves the UI, and other instances forward their progress events to it.

Session Tracking

Session tracking metadata is stored per project at /.mcp/mcp-codex-dev/sessions.json (where `` is the Git repo root if applicable).

Codex CLI's own session files remain in ~/.codex/sessions/<id>/.

License

No license.

Tools (6)

execClean dialogue without templates, supports session resume
tddCodex CLI with built-in test-driven development prompt template
reviewCode review (spec + quality in parallel), supports resume
healthEnvironment and config diagnostics
session_listList tracked sessions
session_discardDiscard sessions

Environment Variables

progressPortPort for the local HTTP progress monitoring server

Configuration

claude_desktop_config.json
{"model": "gpt-5.2", "sandbox": "danger-full-access", "timeout": 300000, "tools": {"tdd": { "model": "gpt-5.3-codex", "sandbox": "danger-full-access", "timeout": 2000000}, "review": { "model": "gpt-5.2", "sandbox": "danger-full-access", "timeout": 3000000}, "health": { "enabled": false }}}

Try it

Run a test-driven development cycle for the current feature using the tdd tool.
Perform a code review on the latest changes, checking both specifications and code quality.
List all my active coding sessions to see which ones I can resume.
Check the environment health to ensure all Codex CLI configurations are correct.

Frequently Asked Questions

What are the key features of MCP Codex Dev?

Integrates Codex CLI directly into Claude Code workflows. Supports session management for resuming coding tasks. Real-time progress monitoring via a local HTTP dashboard. Per-tool configuration overrides for models and timeouts. Built-in test-driven development and code review templates.

What can I use MCP Codex Dev for?

Automating test-driven development cycles within a Claude-assisted coding session.. Conducting parallel code reviews that evaluate both technical specifications and code quality.. Managing multiple long-running coding sessions across different project repositories.. Monitoring the real-time progress of complex AI-driven coding tasks via a browser dashboard..

How do I install MCP Codex Dev?

Install MCP Codex Dev by running: npx -y mcp-codex-dev

What MCP clients work with MCP Codex Dev?

MCP Codex Dev works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP Codex Dev docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare