codex-mcp-server
Verified Safeby tuannvm
Overview
Provides a Model Context Protocol (MCP) server to integrate OpenAI Codex CLI with AI clients like Claude, offering session management, model selection, and native resume capabilities for coding assistance.
Installation
npx -y codex-mcp-serverEnvironment Variables
- CODEX_DEFAULT_MODEL
Security Notes
The server executes external commands using `child_process.execFile` with `shell: false`, which effectively mitigates shell injection vulnerabilities. User-provided prompts and parameters are passed as distinct arguments to the `codex` CLI. Authentication (requiring an OpenAI API Key) is handled by the underlying `codex` CLI via its `codex login` command, not directly by this server, reducing the risk of hardcoded or exposed secrets within the server itself. While executing external binaries always carries some inherent risk, the implementation correctly handles command arguments to prevent common exploits.
Similar Servers
claude-code-mcp
Provides an MCP server to allow LLMs to directly invoke Claude Code CLI for complex coding, file system, and Git operations, bypassing interactive permission prompts.
wcgw
An MCP server that empowers AI chat applications to execute shell commands, edit code, and manage project context on a local machine for development tasks.
claude-codex-settings
This repository provides a toolkit and configurations for integrating Model Context Protocol (MCP) servers into Claude Code plugins, enabling AI agents to interact with external services, local tools, and APIs within an AI-assisted development environment.
codex-mcp-go
Wraps OpenAI's Codex CLI to serve it as an MCP tool for AI clients, enabling multi-turn conversations and sandbox-controlled code execution.