An MCP server that wraps the Codex CLI (codex exec) for use in Claude Code — with sync calls and async tasks.
You need the Codex CLI installed and configured:
npm install -g @openai/codex
codex loginOne-liner that installs the MCP server and the discuss-with-multi-codex skill:
curl -sSL https://raw.githubusercontent.com/xyzhang626/codex-mcp/main/install.sh | bashOr manually:
claude mcp add codex -s user -- uvx --from git+https://github.com/xyzhang626/codex-mcp codex-mcpThen restart Claude Code.
Synchronous call — send a prompt to codex exec, wait for the response.
Submit a prompt asynchronously. Returns a task_id immediately.
Poll an async task by task_id to get the result.
List all async tasks and their statuses.
Codex CLI uses its own config at ~/.codex/config.toml (model, API keys, etc.).