Free toolGenerate .mcp.json configs for Claude Code, Cursor & Codex →
X

OpenAI · Codex CLI · IDE extension · ChatGPT desktop app

OpenAI Codex

OpenAI’s coding agent, shared across the Codex CLI, IDE extension and ChatGPT desktop app.

The Codex CLI, IDE extension and ChatGPT desktop app share one MCP configuration in ~/.codex/config.toml, or a project .codex/config.toml in trusted projects. Add servers with codex mcp add <name> -- <command> for stdio or --url for Streamable HTTP. Codex supports bearer tokens and OAuth (codex mcp login <name>), and plugins can bundle MCP servers and skills.

Codex reads AGENTS.md before doing any work: a global ~/.codex/AGENTS.md (or AGENTS.override.md), then one file per directory from the project root down to your working directory, up to 32 KiB combined by default. Other filenames are read only if you add them to project_doc_fallback_filenames.

Sources (checked Oct 16, 2026): developers.openai.com/codex/mcp · developers.openai.com/codex/guides/agents-md · AGENTS.md vs CLAUDE.md vs Cursor rules →

Add an MCP server to Codex

One [mcp_servers.<name>] table per server. The CLI, IDE extension and ChatGPT desktop app share this config.

Guides, pricing & comparisons