Skip to content
DEV Community · AI· PluginStack·· 5d agoAI Score60

How to Add an MCP Server to Codex with CLI or TOML

How to add an MCP server to Codex (config.toml and codex mcp add)

AI Takeaway

This guide explains how to add an MCP server to Codex with `codex mcp add` or by editing `config.toml`. The Codex CLI, IDE extension, and desktop app share MCP configuration; the guide also covers environment variables, remote servers, verification, and common errors.

Source: DEV Community · AI · dev.to