easy-codex-mcp

easy-codex-mcp

Lets MCP-compatible AI assistants have read-only conversations with OpenAI Codex CLI for code analysis, review, and Q&A.

Category
Visit Server

README

easy-codex-mcp

An MCP server that lets any MCP-compatible AI assistant have read-only conversations with OpenAI Codex CLI.

No complex setup β€” just codex login and you're ready.

Why?

Sometimes your AI assistant needs a second opinion. easy-codex-mcp bridges the gap by letting Claude, Cursor, or any MCP client consult Codex for code analysis, review, and Q&A β€” all in a non-destructive, read-only sandbox.

  • πŸ”’ Read-only by design β€” Codex runs in sandbox mode. It reads your code but never modifies files or runs commands.
  • πŸ’¬ Conversational β€” Start a thread and continue it later with full context preserved.
  • πŸ”§ Zero config β€” No API keys to manage in your MCP config. Just log in to Codex CLI once.

Quick Start

1. Install Codex CLI

npm install -g @openai/codex
codex login

2. Add to your MCP client

Claude Code (recommended):

claude mcp add easy-codex uvx -- --from git+https://github.com/dazebug/easy-codex-mcp easy-codex

Claude Desktop β€” add to your claude_desktop_config.json:

{
  "mcpServers": {
    "easy-codex": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/dazebug/easy-codex-mcp", "easy-codex"]
    }
  }
}

Other MCP clients β€” use the same config format with uvx as the command.

3. Use it

Your AI assistant now has two new tools:

Tool Description
start_new_conversation Start a fresh conversation with Codex
continue_conversation Resume a previous conversation using thread_id

Example prompts to your AI assistant:

  • "Ask Codex to review this file for potential bugs"
  • "Get Codex's opinion on the architecture of this module"
  • "Have Codex explain how the authentication flow works"

Tools

start_new_conversation

Start a new read-only conversation with Codex.

Parameters:

  • prompt (required) β€” What to ask Codex.
  • working_directory (optional) β€” Directory for Codex to work in.

Returns: { "thread_id": "...", "response": "..." }

continue_conversation

Resume a previous conversation with full context.

Parameters:

  • thread_id (required) β€” Thread ID from a previous conversation.
  • prompt (required) β€” Follow-up question.
  • working_directory (optional) β€” Directory for Codex to work in.

Returns: { "thread_id": "...", "response": "..." }

How It Works

Your AI Assistant  ──MCP──▢  easy-codex-mcp  ──CLI──▢  Codex (read-only sandbox)
       β”‚                          β”‚                          β”‚
       β”‚   "Review this code"     β”‚   codex e --json "..."   β”‚
       │◀─────────────────────────│◀──────────────────────── β”‚
       β”‚   thread_id + response   β”‚   JSONL output           β”‚
  1. Your assistant calls the MCP tool with a prompt
  2. easy-codex-mcp spawns codex CLI in read-only sandbox mode
  3. Codex analyzes your code and responds
  4. The response + thread_id are returned to your assistant
  5. Use thread_id to continue the conversation later

Requirements

  • Python 3.12+
  • OpenAI Codex CLI (npm install -g @openai/codex)
  • Codex CLI logged in (codex login)

Development

git clone https://github.com/dazebug/easy-codex-mcp.git
cd easy-codex-mcp
uv sync

# Run tests
uv run pytest

# Dev mode
uv run mcp dev src/easy_codex/server.py

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured