All clients

Use MCP servers in Codex with Toolport

Toolport is a free, open source local MCP gateway. Add your servers to Toolport once, flip the Codex toggle, and Codex gets all of them through a single gateway entry, with lazy discovery loading 3 meta-tools instead of every server's full tool list.

Setup

  1. Download Toolport for Windows, macOS or Linux, and add your MCP servers to it (or import the ones your clients already have; secrets go to your OS keychain).
  2. Open the Clients tab and toggle Codex on. Toolport writes its gateway entry into Codex's config, next to anything already there.
  3. Restart or reload Codex. Your full server set is available through Toolport, and any server you add later shows up without touching Codex again.

Where Codex keeps its MCP config

TOML with [mcp_servers.<name>] tables. The CLI and desktop app read the same file.

Why a gateway instead of Codex's own server list?

Download Toolport, free See all supported clients