codex-mcp-server
Verified Safeby directive-reticule640
Overview
Integrates OpenAI's Codex CLI with Model Context Protocol (MCP) clients to enable AI-powered code analysis, generation, and brainstorming directly within development environments.
Installation
npx -y @cexll/codex-mcp-serverEnvironment Variables
- OPENAI_API_KEY
Security Notes
The server implements robust input validation using Zod and utilizes 'cross-spawn' for external command execution, which is generally safer than raw shell execution for arguments. It transparently exposes the underlying Codex CLI's sandbox modes ('read-only', 'workspace-write', 'danger-full-access') and approval policies, explicitly flagging the 'yolo' (bypass all safety) option as dangerous. No hardcoded secrets were found; API key management is delegated to the Codex CLI (via 'codex login' or 'OPENAI_API_KEY' environment variable). Overall safety heavily relies on the user's careful configuration and understanding of the Codex CLI's sandbox and approval settings, as the server delegates powerful operations to the AI agent.
Similar Servers
mcp-server-csdn
The server automatically publishes Markdown articles to the CSDN platform, acting as a tool called by a Spring AI agent.
MCPify
Exposes ASP.NET Core endpoints and OpenAPI specifications as Model Context Protocol (MCP) tools for AI assistants.
ACI_MCP
A Node.js-based Model Context Protocol (MCP) server for managing and configuring Cisco ACI fabrics through its APIC REST API.
ancplua-mcp
Provides C#/.NET Model Context Protocol (MCP) servers to expose development tools for filesystem, Git, CI, Roslyn, and multi-AI orchestration workflows.