Setup guide · Codex

Codex MCP servers.

Codex keeps MCP servers in ~/.codex/config.toml. Add one with codex mcp add, or write it into the file yourself.

How to add an MCP server to Codex

  1. Add a remote server

    Give the server a name and its address:

    codex mcp add <name> --url <url>
  2. Or add a local server

    Everything after -- is the command that starts the server:

    codex mcp add <name> --env API_KEY=<your-key> -- npx -y <package>
  3. Or edit config.toml

    Each server is a table under mcp_servers. A remote server takes url, and http_headers or bearer_token_env_var for a key. A local server takes command, args and env:

    [mcp_servers.<name>]
    url = "<url>"
    
    [mcp_servers.<other-name>]
    command = "npx"
    args = ["-y", "<package>"]
  4. Sign in and check

    For servers that use OAuth, run codex mcp login <name>. Then codex mcp list shows your servers, and /mcp shows them inside a Codex session.

Top MCP servers for Codex

These are allMCPservers' editor's picks, each ready to add to Codex. Every snippet uses the address or package its publisher lists. Some publishers accept sign-ins only from certain apps, so if a sign-in fails, check the publisher's guide.

  1. GitHubby ClaudeClaude desktop appClaude mobile appClaude CodeClaude CodeClaude APIClaude APIGitHub
    Remote

    Explore repositories, review pull requests, and bring your codebase into the conversation.

    Run this in your terminal:

    [mcp_servers.github]
    url = "https://api.githubcopilot.com/mcp/"
    http_headers = { "Authorization" = "Bearer <your-token>" }

    Replace the <your-…> placeholder with your own token from GitHub.

  2. Apifyby Apify
    Remote

    Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡

    Run this in your terminal:

    [mcp_servers.apify]
    url = "https://mcp.apify.com/"
    http_headers = { "Authorization" = "Bearer <your-token>" }

    Replace the <your-…> placeholder with your own token from Apify.

  3. Figmaby Figma
    Remote

    Bring your designs into your coding workflow. Turn design context into better implementation.

    Run this in your terminal:

    codex mcp add figma --url https://mcp.figma.com/mcp
  4. Alpicby ai.alpic.mcp
    Remote

    Manage your projects, debug deployments, and check analytics for any MCP server you host with Alpic.

    Run this in your terminal:

    codex mcp add alpic --url https://mcp.alpic.ai
  5. Linearby Linear (Linear Orbit, Inc.)
    Remote

    Connect your team's projects, issues, and priorities to the way you work with AI.

    Run this in your terminal:

    codex mcp add linear --url https://mcp.linear.app/mcp
  6. Build and manage applications with Cloudflare's compute, storage, and developer tools.

    Run this in your terminal:

    codex mcp add cloudflare-developer-platform --url https://bindings.mcp.cloudflare.com/mcp
  7. Notionby Notion
    Remote

    Give your agent the context of your workspace, from meeting notes to project documentation.

    Run this in your terminal:

    codex mcp add notion --url https://mcp.notion.com/mcp
  8. Netlifyby Netlify
    Remote

    Create, deploy, manage, and secure websites on Netlify.

    Run this in your terminal:

    codex mcp add netlify --url https://mcp.netlify.com/mcp
  9. Supabaseby Supabase
    Remote

    Connect to your Supabase projects and work with the data behind your application.

    Run this in your terminal:

    codex mcp add supabase --url https://mcp.supabase.com/mcp
  10. Sentryby Sentry.io
    Remote

    Bring error context into your workflow and get closer to the cause of production issues.

    Run this in your terminal:

    codex mcp add sentry --url https://mcp.sentry.dev/mcp
  11. Slackby Slack
    Remote

    Find the conversations and shared knowledge that keep your team moving together.

    Run this in your terminal:

    codex mcp add slack --url https://mcp.slack.com/mcp
  12. Stripeby Stripe
    Remote

    Connect your payment and business workflows with the context of your Stripe account.

    Run this in your terminal:

    codex mcp add stripe --url https://mcp.stripe.com
  13. Exaby Exa
    Remote

    Search the web for useful sources and bring fresh context into your research.

    Run this in your terminal:

    codex mcp add exa --url https://mcp.exa.ai/mcp
  14. Canvaby Canva
    Remote

    Bring creative work and visual content into your everyday AI workflow.

    Run this in your terminal:

    codex mcp add canva --url https://mcp.canva.com/mcp
  15. Context7by upstash
    Remote

    Up-to-date library documentation and code examples, right inside your coding workflow.

    Run this in your terminal:

    [mcp_servers.context7]
    url = "https://mcp.context7.com/mcp"
    http_headers = { "Authorization" = "Bearer <your-token>" }

    Replace the <your-…> placeholder with your own token from Context7.

Browse every MCP server in the directory →

Fixing common problems

A server times out at start
Raise startup_timeout_sec for it in config.toml. The default is 10 seconds.
A project's config.toml is ignored
Codex reads .codex/config.toml in a project only after you trust that project.
You want fewer tools
List the ones to keep in enabled_tools, or the ones to hide in disabled_tools.
You need the options
Run codex mcp --help.

Before you connect a server

An MCP server can read and change whatever the account you connect can. Use servers from publishers you trust, give each one the narrowest access that works, and read what a tool is about to do before you approve it. A listing here shows where a server comes from. It isn't a security audit.

For every option, see Codex's MCP documentation.

Set up MCP servers in other apps

New to MCP? Start with What is an MCP server?