Back to Home
tuannvm icon

codex-mcp-server

Verified Safe

by 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

Run Command
npx -y codex-mcp-server

Environment 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

Stats

Interest Score54
Security Score8
Cost ClassMedium
Avg Tokens750
Stars54
Forks13
Last Update2025-12-02

Tags

AICoding AssistantOpenAICLISession Management