Tools for OpenAI Codex
Extend Codex with the same powerful MCP tools used by Cline and Claude Code. Connect through the community adapter layer and unlock 80+ tools for your coding agent.
MCP with Codex
Codex supports MCP tools through a community-built adapter that bridges the OpenAI function-calling API with MCP servers.
How It Works
The MCP-to-Codex adapter runs as a lightweight bridge process. It starts your MCP servers locally, discovers their available tools, and translates them into OpenAI-compatible function definitions that Codex can call natively.
From Codex's perspective, MCP tools look like standard functions. From the tool's perspective, it is being called via the normal MCP protocol. The adapter handles all translation transparently.
Install the adapter
Install the MCP-Codex bridge package globally via npm.
Configure your MCP servers
Add MCP server definitions to the adapter config file.
Start the adapter
Run the bridge process, which starts MCP servers and exposes tools to Codex.
Use tools in Codex
Codex automatically discovers and uses the available MCP tools.
# Install the MCP-Codex adapter
npm install -g @clinetools/mcp-codex-adapter
{
"servers": {
"secret-scanner": {
"command": "npx",
"args": ["@clinetools/secret-scanner"]
},
"git": {
"command": "npx",
"args": [
"@modelcontextprotocol/server-git"
]
},
"complexity": {
"command": "npx",
"args": [
"@clinetools/complexity-analyzer"
]
}
},
"codex": {
"autoDiscover": true,
"timeout": 30000
}
}
# Start the adapter bridge mcp-codex-adapter start --config ./mcp-codex.config.json # Output: # MCP-Codex Adapter v1.2.0 # Loading 3 MCP servers... # secret-scanner: 3 tools ready # git: 8 tools ready # complexity: 2 tools ready # Bridge active - 13 tools available to Codex
Recommended Tools for Codex
These 10 tools are tested and verified to work seamlessly with the Codex adapter. Start here for the best experience.
Secret Scanner
Scan code for leaked API keys, tokens, and credentials before they reach your repository.
Git Server
Full Git operations including status, diff, commit, branch, and log without shell access.
Complexity Analyzer
Measure cyclomatic complexity and identify functions that need refactoring.
Filesystem Server
Sandboxed file read, write, and search operations within the Codex workspace.
Dead Code Detector
Find unused exports, functions, and variables across JavaScript and TypeScript codebases.
Prompt Detector
Analyze text inputs for prompt injection patterns and adversarial content.
PostgreSQL Client
Run queries, inspect schemas, and manage database state directly from your agent.
Docker Manager
Build images, run containers, and inspect logs without direct Docker CLI access.
Type Coverage
Measure and report TypeScript type coverage across your codebase with detailed reports.
Web Fetcher
Fetch and parse web pages, APIs, and documentation from within the agent context.
Coming Soon
The roadmap toward full, native MCP integration with OpenAI Codex. Here is where things stand and what is next.
Community Adapter
The current approach uses a community-built adapter to bridge MCP servers with Codex's function-calling interface. Works well for most tools with minor latency overhead.
First-Party Adapter
An officially maintained adapter with improved performance, error handling, and streaming support. Reduced setup friction with one-command installation.
Native MCP Support
Full, built-in MCP support directly in the Codex runtime. No adapter needed. Same seamless experience as Cline and Claude Code, with tools automatically discovered and available.
Start using MCP tools with Codex today
Browse the full catalog to find tools for your workflow, or check the adapter setup guide to get started in minutes.