Glen

Join the waitlist

We onboard teams in waves. Leave your work email and we'll send your invite when your spot opens.

MCP servers in Codex

Codex is the odd one out on format: it configures MCP servers in TOML, not JSON. Each server is a [mcp_servers.<name>] table inside ~/.codex/config.toml rather than a key in an "mcpServers" object. Remote servers are supported natively, and remote authentication is supplied through a bearer-token environment variable rather than an interactive OAuth flow.

Where the config lives

  • macOS / Linux: ~/.codex/config.toml

Worked example: Fetch

Here's the exact config to add the Fetch MCP server to Codex. Every server in the directory has a ready-to-paste Codex config like this.

Add to ~/.codex/config.toml

~/.codex/config.toml
toml
[mcp_servers.fetch]
command = "uvx"
args = ["mcp-server-fetch"]