easy-codex-mcp
Provides read-only conversations with OpenAI Codex CLI for code analysis, review, and Q&A in a sandboxed environment.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@easy-codex-mcpReview the code in src/app.js for potential bugs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: codex-cli-mcp
Quick Start
1. Install Codex CLI
npm install -g @openai/codex
codex login2. Add to your MCP client
Claude Code (recommended):
claude mcp add easy-codex uvx -- --from git+https://github.com/dazebug/easy-codex-mcp easy-codexClaude 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 a fresh conversation with Codex |
| Resume a previous conversation using |
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 │Your assistant calls the MCP tool with a prompt
easy-codex-mcp spawns
codexCLI in read-only sandbox modeCodex analyzes your code and responds
The response + thread_id are returned to your assistant
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.pyLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceAn MCP server that wraps OpenAI's Codex CLI to automate repository cloning and code analysis tasks. It enables users to execute complex coding requests on specific Git branches and subfolders using standardized MCP tools.Last updated1345MIT
- Alicense-qualityBmaintenanceBridges OpenAI Codex CLI to any MCP client, allowing headless Codex sessions via tools like codex and codex-reply.Last updated44MIT
- Alicense-qualityDmaintenanceAn MCP server that provides technical consultation, code review, and code explanation by integrating with OpenAI's Codex CLI, enabling AI-powered coding assistance in a sandboxed, read-only environment.Last updated241MIT
- Alicense-qualityDmaintenanceIntegrates OpenAI Codex CLI with Claude Code via MCP, enabling code execution, analysis, fixing, and web search within Claude Code.Last updated8731ISC
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dazebug/easy-codex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server