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,argsandenv. A remote server takesurl, andbearer_token_env_varnames the env var that holds a token. - Codex documents streamable HTTP for remote servers. It does not document SSE.