# Codex MCP Server: Bridge Claude Code with OpenAI Codex CLI

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Source: osrepos.com
Repository profile: https://osrepos.com/repo/tuannvm-codex-mcp-server
Generated for open source discovery and AI-assisted research.

Codex MCP Server is an essential tool that acts as a bridge between Claude Code and OpenAI's Codex CLI. It allows developers to integrate powerful AI-driven code analysis, generation, and review capabilities directly into their editor. This server wrapper enables Claude Code to fully leverage Codex's advanced AI functionalities.

GitHub: https://github.com/tuannvm/codex-mcp-server
OSRepos URL: https://osrepos.com/repo/tuannvm-codex-mcp-server

## Summary

Codex MCP Server is an essential tool that acts as a bridge between Claude Code and OpenAI's Codex CLI. It allows developers to integrate powerful AI-driven code analysis, generation, and review capabilities directly into their editor. This server wrapper enables Claude Code to fully leverage Codex's advanced AI functionalities.

## Topics

- claude-code
- codex
- cursor
- mcp
- TypeScript
- AI
- Development Tools
- Code Generation

## Repository Information

Last analyzed by OSRepos: Sun Aug 23 2026 01:20:57 GMT+0100 (Western European Summer Time)
Detail views: 2
GitHub clicks: 0

## Safety Notice

OSRepos shares public repositories for knowledge and discovery only. Review source code, dependencies, licenses, and security implications before running or installing anything.

## Content

## Introduction

The `codex-mcp-server` project provides a crucial link, enabling Claude Code to tap into the robust AI capabilities of OpenAI's Codex CLI. This server wrapper acts as a bridge, bringing AI-powered code analysis, generation, and review directly into your development workflow. It simplifies the integration, allowing developers to enhance their coding experience with advanced AI assistance.

## Installation

To get started with `codex-mcp-server`, follow these simple steps:

### 1. Install Codex CLI

First, ensure you have the OpenAI Codex CLI installed globally and authenticated:

bash
npm i -g @openai/codex
codex login --api-key "your-openai-api-key"


### 2. Add to Claude Code

Next, integrate the `codex-mcp-server` into Claude Code using the `claude mcp add` command:

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


For a one-click installation experience, you can also use the provided links for VS Code, VS Code Insiders, and Cursor:
*   [VS Code Install](https://vscode.dev/redirect/mcp/install?name=codex-cli&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22codex-mcp-server%22%5D%7D){target="_blank"}
*   [VS Code Insiders Install](https://insiders.vscode.dev/redirect/mcp/install?name=codex-cli&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22codex-mcp-server%22%5D%7D){target="_blank"}
*   [Cursor Install](https://cursor.com/en/install-mcp?name=codex&config=eyJ0eXBlIjoic3RkaW8iLCJjb21tYW5kIjoibnB4IC15IGNvZGV4LW1jcC1zZXJ2ZXIiLCJlbnYie30ifQ%3D%3D){target="_blank"}

## Examples

Once installed, you can start leveraging Codex's AI capabilities through Claude Code. Here are some common ways to interact with it:

### Basic Usage


Ask codex to explain this function
Use codex to refactor this code for better performance
Use review to check my uncommitted changes


### Code Analysis


Use codex to analyze this authentication logic for security issues


### Multi-turn Conversations

`codex-mcp-server` supports multi-turn conversations using session IDs, allowing you to maintain context across multiple interactions:


Use codex with sessionId "refactor" to analyze this module
Use codex with sessionId "refactor" to implement your suggestions


### Code Review

Perform AI-powered code reviews on uncommitted changes, branches, or commits:


Use review with base "main" to check my PR changes
Use review with uncommitted true to review my local changes


### Web Search

Utilize the `websearch` tool to perform web searches directly:


Use websearch with query "TypeScript 5.8 new features"
Use websearch with query "Rust vs Go performance 2025" and numResults 15


## Why Use Codex MCP Server?

Integrating `codex-mcp-server` into your development environment offers significant advantages. It empowers developers with on-demand AI assistance for complex tasks like code analysis, refactoring, and security checks. The ability to conduct multi-turn conversations and perform AI-powered code reviews streamlines workflows and enhances code quality. By bridging Claude Code with OpenAI Codex, this project brings cutting-edge AI directly to your fingertips, boosting productivity and enabling more efficient development.

## Links

For more detailed information and to contribute to the project, visit the official repository:
*   [GitHub Repository](https://github.com/tuannvm/codex-mcp-server){target="_blank"}
*   [npm Package](https://www.npmjs.com/package/codex-mcp-server){target="_blank"}