# Codex MCP Server

Codex MCP Server is a bridge that lets Claude Code call OpenAI's Codex CLI as an MCP tool, for AI-assisted code analysis, generation, review and web search from inside another agent's session.

Codex MCP Server wraps the OpenAI Codex CLI as a Model Context Protocol server, so Claude Code, or another MCP client, can ask Codex to explain, refactor, review or analyze code, or run a web search, without leaving the current session.

Its tools include a general codex command with session support, model selection and structured output metadata, a review tool for uncommitted changes, branches or commits, a websearch tool with configurable result count and depth, a listSessions tool for viewing active conversations, and simple ping and help tools. Sessions created with a session ID persist so later calls can resume the same conversation and its context, and advanced options let a caller choose the Codex model, reasoning effort, sandbox mode and a callback URL for automated tasks.

It requires Codex CLI 0.75.0 or later and an OpenAI API key configured through Codex's own login command.

Website: https://docs.tuannvm.com/codex-mcp-server
