Back to Home
tuannvm icon

codex-mcp-server

Verified Safe

by tuannvm

Overview

Serves as a Model Context Protocol (MCP) bridge to integrate OpenAI's Codex CLI for AI-powered code analysis, generation, and review within various editors like Claude Code, VS Code, and Cursor.

Installation

Run Command
npx -y codex-mcp-server

Environment Variables

  • CODEX_DEFAULT_MODEL
  • CODEX_MCP_CALLBACK_URI

Security Notes

The server uses `child_process.spawn` to execute the `codex` CLI. While user-provided prompts and working directories are passed to the CLI, the server takes precautions: the executable `codex` is fixed, and arguments are constructed and escaped (`escapeArgForWindows`) to mitigate direct shell injection. Session IDs are validated with a regex. No hardcoded secrets were found; API keys are expected to be managed by the underlying Codex CLI's login mechanism. The main security surface area relies on the robustness of the `codex` CLI itself in processing arbitrary user input, which is an external dependency.

Similar Servers

Stats

Interest Score59
Security Score8
Cost ClassHigh
Avg Tokens1000
Stars101
Forks23
Last Update2026-01-19

Tags

AICoding AssistantCode ReviewOpenAI CodexMCP