by elyin
Codex Bridge connects Claude with OpenAI Codex via CLI for automated code analysis, reviews, and CI/CD integrations.
Connects Claude with OpenAI's Codex through the official CLI, enabling direct code consultation and batch processing without API costs.
Codex Bridge is a community-built MCP server published by elyin that provides AI assistants with tools and capabilities via the Model Context Protocol. Codex Bridge connects Claude with OpenAI Codex via CLI for automated code analysis, reviews, and CI/CD integrations. It is categorized under ai ml, developer tools. This server exposes 3 tools that AI clients can invoke during conversations and coding sessions.
You can install Codex Bridge in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Codex Bridge is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
I recommend Codex Bridge for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Strong directory entry: Codex Bridge surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Codex Bridge is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
We evaluated Codex Bridge against two servers with overlapping tools; this profile had the clearer scope statement.
Codex Bridge reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Codex Bridge has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Strong directory entry: Codex Bridge surfaces stars and publisher context so we could sanity-check maintenance before adopting.
I recommend Codex Bridge for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Codex Bridge is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Codex Bridge reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
showing 1-10 of 40
A lightweight MCP (Model Context Protocol) server that enables AI coding assistants to interact with OpenAI's Codex AI through the official CLI. Works with Claude Code, Cursor, VS Code, and other MCP-compatible clients. Designed for simplicity, reliability, and seamless integration.
mcp>=1.0.0 and Codex CLIInstall Codex CLI:
npm install -g @openai/codex-cli
Authenticate with Codex:
codex
Verify installation:
codex --version
🎯 Recommended: PyPI Installation
# Install from PyPI
pip install codex-bridge
# Add to Claude Code with uvx (recommended)
claude mcp add codex-bridge -s user -- uvx codex-bridge
Alternative: From Source
# Clone the repository
git clone https://github.com/shelakh/codex-bridge.git
cd codex-bridge
# Build and install locally
uvx --from build pyproject-build
pip install dist/*.whl
# Add to Claude Code
claude mcp add codex-bridge -s user -- uvx codex-bridge
Development Installation
# Clone and install in development mode
git clone https://github.com/shelakh/codex-bridge.git
cd codex-bridge
pip install -e .
# Add to Claude Code (development)
claude mcp add codex-bridge-dev -s user -- python -m src
Codex Bridge works with any MCP-compatible AI coding assistant - the same server supports multiple clients through different configuration methods.
# Recommended installation
claude mcp add codex-bridge -s user -- uvx codex-bridge
# Development installation
claude mcp add codex-bridge-dev -s user -- python -m src
</details>
<details>
<summary><strong>Cursor</strong></summary>
Global Configuration (~/.cursor/mcp.json):
{
"mcpServers": {
"codex-bridge": {
"command": "uvx",
"args": ["codex-bridge"],
"env": {}
}
}
}
Project-Specific (.cursor/mcp.json in your project):
{
"mcpServers": {
"codex-bridge": {
"command": "uvx",
"args": ["codex-bridge"],
"env": {}
}
}
}
Go to: Settings → Cursor Settings → MCP → Add new global MCP server
Configuration (.vscode/mcp.json in your workspace):
{
"servers": {
"codex-bridge": {
"type": "stdio",
"command": "uvx",
"args": ["codex-bridge"]
}
}
}
Alternative: Through Extensions
uvx codex-bridgeAdd to your Windsurf MCP configuration:
{
"mcpServers": {
"codex-bridge": {
"command": "uvx",
"args": ["codex-bridge"],
"env": {}
}
}
}
</details>
<details>
<summary><strong>Cline</strong> (VS Code Extension)</summary>
cline_mcp_settings.json:{
"mcpServers": {
"codex-bridge": {
"command": "uvx",
"args": ["codex-bridge"],
"env": {}
}
}
}
</details>
<details>
<summary><strong>Void</strong></summary>
Go to: Settings → MCP → Add MCP Server
{
"mcpServers": {
"codex-bridge": {
"command": "uvx",
"args": ["codex-bridge"],
"env": {}
}
}
}
</details>
<details>
<summary><strong>Cherry Studio</strong></summary>
codex-bridgeSTDIOuvx["codex-bridge"]Using the UI:
uvx codex-bridgeManual Configuration:
"augment.advanced": {
"mcpServers": [
{
"name": "codex-bridge",
"command": "uvx",
"args": ["codex-bridge"],
"env": {}
}
]
}
</details>
<details>
<summary><strong>Roo Code</strong></summary>
mcp_settings.json:{
"mcpServers": {
"codex-bridge": {
"command": "uvx",
"args": ["codex-bridge"],
"env": {}
}
}
}
</details>
<details>
<summary><strong>Zencoder</strong></summary>
{
"command": "uvx",
"args": ["codex-bridge"],
"env": {}
}
For pip-based installations:
{
"command": "codex-bridge",
"args": [],
"env": {}
}
For development/local testing:
{
"command": "python",
"args": ["-m", "src"],
"env": {},
"cwd": "/path/to/codex-bridge"
}
For npm-style installation (if needed):
{
"command": "npx",
"args": ["codex-bridge"],
"env": {}
}
</details>
Once configured with any client, use the same two tools:
The server implementation is identical - only the client configuration differs!
By default, Codex Bridge uses a 90-second timeout for all CLI operations. For longer queries (large files, complex analysis), you can configure a custom timeout using the CODEX_TIMEOUT environment variable.
By default, Codex CLI requires being inside a Git repository or trusted directory. If you need to use Codex Bridge in directories that aren't Git repositories, you can set the CODEX_SKIP_GIT_CHECK environment variable.
⚠️ Security Warning: Only enable this flag in trusted environments where you control the directory structure.
Example configurations:
<details> <summary><strong>Claude Code</strong></summary># Add with custom timeout (120 seconds)
claude mcp add codex-bridge -s user --env CODEX_TIMEOUT=120 -- uvx codex-bridge
# Add with git repository check disabled (for non-git directories)
claude mcp add codex-bridge -s user --env CODEX_SKIP_GIT_CHECK=true -- uvx codex-bridge
# Add with both configurations
claude mcp add codex-bridge -s user --env CODEX_TIMEOUT=120 --env CODEX_SKIP_GIT_CHECK=true -- uvx codex-bridge
</details>
<details>
<summary><strong>Manual Configuration (mcp_settings.json)</strong></summary>
{
"mcpServers": {
"codex-bridge": {
"command": "uvx",
"args": ["codex-bridge"],
"env": {
"CODEX_TIMEOUT": "120",
"CODEX_SKIP_GIT_CHECK": "true"
}
}
}
}
</details>
Configuration Options:
CODEX_TIMEOUT:
CODEX_SKIP_GIT_CHECK:
consult_codexDirect CLI bridge for simple queries with structured JSON output by default.
Parameters:
query (string): The question or prompt to send to Codexdirectory (string): Working directory for the query (default: current directory)format (string): Output format - "text", "json", or "code" (default: "json")timeout (int, optional): Timeout in seconds (recommended: 60-120, default: 90)Example:
consult_codex(
query="Find authentication patterns in this codebase",
directory="/path/to/project",
format="json", # Default format
timeout=90 # Default timeout
)
consult_codex_with_stdinCLI bridge with stdin content for pipeline-friendly execution.
Parameters:
stdin_content (string): Content to pipe as stdin (file contents, diffs, logs)prompt (string): The prompt to process the stdin contentdirectory (string): Working directory for the queryformat (string): Output format - "text", "json"Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.