← All connection guides

Codex

About 1 minute · Last checked 2026-10-10

  1. Add MegaMCPs. Codex opens your browser to sign in: check the account and click Allow.
    codex mcp add megamcps --url https://mcp.megamcps.com/mcp
  2. In the Codex app or IDE extension instead: Settings → MCP servers → Add server → Streamable HTTP, paste the address, save, restart Codex and click Authenticate.

If it doesn't work

  • No browser opened, or you need to sign in again? Run codex mcp login megamcps.
  • codex mcp list shows the server; /mcp in a Codex session lists its tools.
  • No browser on this machine (SSH, a container)? Create an API key, put it in MEGAMCPS_KEY and add bearer_token_env_var = "MEGAMCPS_KEY" under [mcp_servers.megamcps] in ~/.codex/config.toml.
New to MegaMCPs?

Create an account and connect a service first. Onboarding then shows this guide beside a live check that turns green at your client's first tool call.