MCP servers for Codex

How to add an MCP server

  • Each server is a [mcp_servers.<name>] table in the Codex config file.
  • A local server takes command, args and env. A remote server takes url, and bearer_token_env_var names the env var that holds a token.
  • Codex documents streamable HTTP for remote servers. It does not document SSE.