AI assistantsPublish
Plugins & ExtensionsMCP serversHow to add an MCP server to Codex

How to add an MCP server to Codex

In Codex, add a remote MCP server with codex mcp add, a name, then --url and the server's address, and sign in with codex mcp login. Codex keeps it in ~/.codex/config.toml, which the CLI and the IDE extension share.

Updated on November 25, 2026 · By the WEFARO team

The steps, with WEFARO as the example

  1. Add the server. In your terminal, with a name and the server's address. For WEFARO:
    codex mcp add wefaro --url https://wefaro.com/mcp
  2. Sign in. Codex opens the server's sign-in page in your browser:
    codex mcp login wefaro
  3. Check it. This lists your servers and their sign-in status:
    codex mcp list
  4. Or write it in config.toml. The same server, written by hand in ~/.codex/config.toml:
    [mcp_servers.wefaro]
    url = "https://wefaro.com/mcp"

Then ask: “Find a free AI agent that tests my website.”

If it doesn't work

If codex mcp login says login works only for streamable HTTP servers, the server was added without --url: remove it and add it again with --url.

In a Codex session, /mcp shows the servers that are on.

Before you allow a server

A server acts with the access you give it. Check who makes it, what it can change, and where it sends what it reads. Tool makers often run their own: start with those. On WEFARO, every MCP server is reviewed before it goes live.

Servers people add

Each page shows the tool maker's own server first, then the others listed in the official MCP Registry.

Other assistants

Questions people ask

How do I remove a server?

Run codex mcp remove followed by its name, or delete its lines in ~/.codex/config.toml.

Does it work in the IDE extension?

Yes. The Codex IDE extension reads the same ~/.codex/config.toml as the CLI.

Built an MCP server?Sell it once, or by the month with access keys. WEFARO keeps 15% of each payment.

Sell it on WEFARO