Natural File Analysis
@filename integration lets you
analyze any codebase with ease.
Leverage OpenAI's Codex models in any client that supports the standardized MCP protocolβbuilt for Claude Code
And much more to explore
Codex MCP Tool is a Model Context Protocol (MCP) server that bridges the gap between OpenAI's powerful Codex CLI and the growing ecosystem of MCP-compatible clients. It allows AI assistants like Claude to leverage Codex's advanced code analysis and generation capabilities through a standardized protocol.
codex exec commands programmatically@ syntax to include files in your prompts# One-command installation
claude mcp add codex-cli -- npx -y codex-mcp-tool codex-mcp
# Verify installation
/mcpAdd to your configuration file:
{
"mcpServers": {
"codex-cli": {
"command": "npx",
"args": ["-y", "codex-mcp-tool", "codex-mcp"]
}
}
}For detailed installation and setup instructions, see our Getting Started Guide.
Once installed, you can use natural language or slash commands:
// Natural language
"use codex to analyze @src/main.ts and explain what it does"
"ask codex to find security vulnerabilities in this codebase"
"have codex refactor this function to use modern JavaScript"
// Slash commands (Claude Code)
/codex-cli:analyze @README.md summarize this file
/codex-cli:sandbox create a Python data processing scriptThis project was inspired by the excellent work from jamubc/gemini-mcp-tool. Special thanks to @jamubc for the original MCP server architecture and implementation patterns.
This project is licensed under the MIT License. See the LICENSE file for details.
Disclaimer: This is an unofficial, third-party tool and is not affiliated with, endorsed, or sponsored by OpenAI.