AdYour product here, seen by people installing AI tools every day Sponsor slots open: 12 of 12, from $249 a month

OpenAI · MCP servers in the Codex CLI and IDE extension

How to add MCP servers to Codex

In the Codex CLI, add an MCP server with codex mcp add <name> -- <command>, or add a [mcp_servers.<name>] block to ~/.codex/config.toml. The IDE extension reads the same file.

Add a server from the terminal

codex mcp add my-server -- npx -y some-mcp-package

Or edit the config file

Codex keeps its settings in ~/.codex/config.toml:

[mcp_servers.my-server]
command = "npx"
args = ["-y", "some-mcp-package"]

Run codex mcp list to check it is registered.

Official documentation

Codex changes often. If a step here no longer matches, the official docs win.

Popular MCP servers for Codex

All MCP servers →
  1. 1exa exa-labs · Search and webConnect AI agents to Exa for web search, content fetching, and multi-step research.AAAyesterday★ 5.1k100
  2. 2apify-mcp-server apify · E-commerceExtract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡AAAyesterday★ 12k100
  3. 3browser-use browser-use · Browser automationControl a real Chrome browser to complete any task: fill forms, extract data, book flights.AAA3 days ago★ 119k100
  4. 4GitDiagram ahmedkhaleel2004 · DesignArchitecture diagrams, explanations and Mermaid source for public GitHub repositories.AAA6 days ago★ 18k100
  5. 5Jitsu jitsucomManage Jitsu data pipelines: destinations, streams, connections, functions, live events.AAAyesterday★ 5.1k100
  6. 6mockserver mock-server · Developer toolsMock, record/replay, verify and chaos-test any HTTP, REST, gRPC or LLM dependency over MCP.AAAyesterday★ 5.0k100
  7. 7XcodeBuildMCP getsentry · Developer toolsXcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.AAA3 days ago★ 6.5k100
  8. 8Oh My Posh Validator JanDeDobbeleerValidate oh-my-posh configurations and segment snippets against the official schema.AAA4 days ago★ 24k100
  9. 9draw.io jgraph · DesignCreate draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.AAAyesterday★ 5.7k100
  10. 10Vexa Vexa-ai · CommunicationMeeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.AAA9 days ago★ 2.9k98
  11. 11World Monitor koala73Real-time global intelligence across conflict, markets, energy, trade, shipping and cyber. 95 tools.ACAyesterday★ 89k98
  12. 12mcp medplumSecurely access and manage FHIR healthcare data stored in Medplum.AAAyesterday★ 2.8k98
  13. 13Omnara omnara-ai · Cloud and DevOpsDeploy durable AI agents with Omnara, an open-source managed-agent platform.AAAyesterday★ 2.9k98
  14. 14mcp-server HeyPuter · Documents and filesPuter MCP enables AI tools to interact with Puter: manage files, websites, workers, and moreACAyesterday★ 44k98
  15. 15openstatus openstatusHQManage monitors, status pages, incidents and maintenances in your openstatus workspace.ACAyesterday★ 9.2k98