Best for
- Developers who want to integrate Codex CLI into AI-assisted editors.
- Teams that need automated code analysis or editing.
- Users seeking to use Codex models within the MCP ecosystem.
The project has positive feedback on GitHub, with community recognition of its functionality. v1.2.4 enhanced Windows compatibility and provides detailed documentation. For security, pay attention to sandbox configuration.
Codex MCP Tool is an open-source Model Context Protocol (MCP) server that connects your IDE or AI assistant (such as Claude, Cursor) to the Codex CLI. It enables non-interactive automation with codex exec, safe sandboxed edits with approvals, and large-scale code analysis via @ file references. Built for reliability and speed, it streams progress updates, supports structured change mode (OLD/NEW patch output), and integrates cleanly with standard MCP clients for code review, refactoring, documentation, and CI automation.
npm install -g @openai/codex.claude mcp add codex-cli -- npx -y @cexll/codex-mcp-server, or add the JSON configuration to your Claude Desktop config file.{
"mcpServers": {
"codex-cli": {
"command": "npx",
"args": ["-y", "@cexll/codex-mcp-server"]
}
}
}