a2a mcp
Back to MCP Servers
Codex MCP Server logo
mcp-server1,292

Codex MCP Server

An MCP server wrapper that bridges Claude (and other MCP clients) with OpenAI's Codex CLI, letting you harness GPT-powered code generation, analysis, refactoring, and execution directly from your preferred AI coding environment.

Overview

Codex MCP Server is a lightweight, open-source Model Context Protocol (MCP) server that wraps OpenAI's official Codex CLI. It acts as a bridge, allowing MCP clients such as Claude Desktop/Code, Cursor, Windsurf, and others to call Codex as a tool for advanced coding tasks.

This enables hybrid AI workflows where Claude handles high-level reasoning and strategy while delegating heavy code generation, refactoring, analysis, and execution to Codex's powerful GPT-based engine.

Popular community project maintained by tuannvm and others.

Codex MCP Server

Key Features

  • Full integration with OpenAI Codex CLI capabilities
  • Exposes Codex commands (explain, refactor, generate, analyze, exec, etc.) as structured MCP tools
  • Supports codex exec for safe, sandboxed code execution and edits
  • Streams progress updates and structured patch outputs
  • Easy one-command installation via npx
  • Works with both local STDIO and configurable environments
  • Cross-platform (macOS, Linux, Windows)
  • Secure approval flows for file modifications

Installation & Setup

Quick Start (for Claude Code)

claude mcp add codex-cli -- npx -y codex-mcp-server

Alternative repositories / forks

  • https://github.com/tuannvm/codex-mcp-server (primary)
  • https://github.com/cexll/codex-mcp-server (enhanced version)
  • Built-in Codex MCP mode: codex mcp-server (native support in recent Codex CLI)

After adding, restart your MCP client and confirm the server appears in the tools list.

Use Cases

  • Hybrid Agentic Coding: Use Claude for planning and Codex for high-quality code output
  • Code Review & Refactoring: Ask Claude to review a codebase, then delegate complex refactors to Codex
  • Debugging Stuck Tasks: When one model gets stuck, hand off to the other via MCP
  • Large-scale Analysis: Leverage Codex's context window and reasoning on massive projects
  • Multi-model Orchestration: Combine strengths of Anthropic and OpenAI models in a single workflow
  • CI/CD Automation and batch code transformations

Requirements

  • OpenAI Codex CLI installed (npm i -g @openai/codex or Homebrew)
  • Valid OpenAI API access (Codex uses GPT models)
  • An MCP-compatible client (Claude Code/Desktop recommended)

Resources

  • GitHub: https://github.com/tuannvm/codex-mcp-server
  • Official Codex MCP Documentation: https://developers.openai.com/codex/mcp/
  • Native Codex as MCP Server: Run codex mcp-server directly

Codex MCP Server is one of the most practical tools for developers wanting to combine the best of Claude's reasoning with Codex's coding prowess in the growing MCP ecosystem.

Tags

mcpmcp-servercodexopenaiclaudeai-codingcoding-agenttypescriptclibridge

Related Entries

Keep exploring similar tools and resources in this category.

Browse MCP Servers
Hyper3D MCP logo

Hyper3D MCP

MCP Servers

Hyper3D MCP is Hyper3D's hosted Rodin MCP server for creating 3D assets from natural-language instructions or supported references, checking asynchronous generation progress, and retrieving model download links inside AI coding clients. Official setup is documented for Codex, Claude Code, and Kimi Code CLI.

Semrush MCP Server logo

Semrush MCP Server

MCP Servers

Semrush MCP connects AI assistants to Semrush APIs for keyword, backlink, website traffic and market research.

Browserbase MCP Server logo

Browserbase MCP Server

MCP Servers

Browserbase MCP gives AI agents browser automation tools powered by Stagehand and Browserbase browser sessions.

SerpApi MCP Server logo

SerpApi MCP Server

MCP Servers

SerpApi MCP exposes search engine results to AI assistants through SerpApi, supporting live research and structured search data retrieval.

Similarweb MCP Server logo

Similarweb MCP Server

MCP Servers

Similarweb MCP brings website traffic and digital market intelligence into AI assistants for competitive research.

AgentQL MCP Server logo

AgentQL MCP Server

MCP Servers

AgentQL MCP connects AI agents to AgentQL web extraction, returning structured information from web pages for research and automation.

a2a mcp

Search the directory

Find entries, skills, articles, and categories. Use arrow keys to select and Enter to open.