AI Clients

Codex

OpenAI Codex reads MCP servers from a TOML config. Add MCP Ads there to use your ad accounts from the Codex CLI.

Add the server

Codex uses TOML rather than JSON, so the entry looks different from Cursor and Windsurf even though it means the same thing.

~/.codex/config.toml
[mcp_servers.mcp-ads]
url = "https://mcp-ads.com/mcp-slim"
Note

MCP client support differs between Codex versions and moves quickly. If the key name is rejected, check the config format for the version you are running rather than assuming the URL is wrong.

Authorise

The first tool call opens the browser for the OAuth authorisation, the same as every other client.

Go further

Common questions

Why TOML and not JSON?

That is Codex's choice of config format. The content is the same: a named server with a URL.

What if my Codex version does not support remote MCP servers?

Then no configuration will help, because the client has to speak the protocol. Claude Code is the closest terminal-based alternative and supports remote servers today.

Ready to connect?

Start free, connect the platforms you use, and run your first workflow from Claude in minutes.