Skip to content

Summary

MCP server that lets Claude Code, Claude Desktop or Cursor hand work to the OpenAI Codex CLI: file analysis with @ references, multi-turn sessions, native code review and sandboxed edits.

Features

  • Delegate tasks to the Codex CLI from any MCP client
  • @ file and folder references
  • Multi-turn sessions via native codex exec resume
  • Native codex review in a read-only sandbox
  • do-act: run, verify with a command, retry
  • Local models via Ollama or LM Studio

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it.
  3. Restart the agent — the "Codex MCP Tool" tools will be available.
{
  "mcpServers": {
    "codex-mcp-tool": {
      "command": "npx",
      "args": [
        "-y",
        "@trishchuk/codex-mcp-tool"
      ]
    }
  }
}

Description

Codex MCP Tool bridges an MCP client to a locally installed and signed-in OpenAI Codex CLI, so Claude Code, Claude Desktop or Cursor can delegate a task to Codex, get a second opinion or run Codex's own review without leaving the session. Prompts can reference files and folders with @src/ or @package.json, and sessions keep conversation continuity per working directory using Codex's native codex exec resume.

The main tools are ask-codex (run Codex with files, a chosen model, a session and safety settings), batch-codex (several atomic tasks, sequentially or concurrently) and review-changes (the native codex review in a read-only sandbox, for example on uncommitted changes). A do-act mode runs a task, verifies it with a shell command such as npm test and retries in the same conversation. Other options include Codex's web search, image generation, structured OLD/NEW change output for refactors, brainstorming frameworks, and local models through Ollama or LM Studio. Sandbox and approval policies are explicit, cancelling a call stops the Codex process, and a health tool reports the CLI path, version and authentication.

It needs Node.js 18+ and the Codex CLI; usage is billed to whatever Codex account or provider you use. Install with claude mcp add codex-cli -- npx -y @trishchuk/codex-mcp-tool or the equivalent JSON entry. Runs on Windows, macOS and Linux; MIT-licensed.

MCP server and Claude Code plugin that keeps bulky tool output out of your context window, indexes it for search, and preserves session state across compaction.

MCP: VoiceMode

by Mike Bailey

New

Voice conversations with Claude Code and other MCP agents: speech-to-text and text-to-speech over MCP, running fully local with Whisper.cpp and Kokoro or through OpenAI's voice APIs.

MCP: PAL MCP

by Beehive Innovations

New

Provider Abstraction Layer MCP server, formerly Zen MCP: lets Claude Code, Codex CLI, Gemini CLI or Cursor call Gemini, OpenAI, Grok, OpenRouter, Azure or local Ollama models for second opinions, consensus, code review and CLI subagents.

New

Local code knowledge graph served over MCP: Tree-sitter maps functions, calls, imports and tests so an assistant reviews a change by its blast radius instead of re-reading the codebase.

Browse all MCP servers →