Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

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

README.md

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): ``bash 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: ``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

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.