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
Add a remote server
Give the server a name and its address:
codex mcp add <name> --url <url>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>Or edit config.toml
Each server is a table under
mcp_servers. A remote server takesurl, andhttp_headersorbearer_token_env_varfor a key. A local server takescommand,argsandenv:[mcp_servers.<name>] url = "<url>" [mcp_servers.<other-name>] command = "npx" args = ["-y", "<package>"]Sign in and check
For servers that use OAuth, run
codex mcp login <name>. Thencodex mcp listshows your servers, and/mcpshows 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.
- GitHubby ClaudeClaude desktop appClaude mobile appClaude CodeClaude CodeClaude APIClaude APIGitHubRemote
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. 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.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/mcpManage 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.aiConnect 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/mcpBuild 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/mcpGive 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/mcpCreate, deploy, manage, and secure websites on Netlify.
Run this in your terminal:
codex mcp add netlify --url https://mcp.netlify.com/mcpConnect 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/mcpBring 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/mcpFind 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/mcpConnect 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.comSearch 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/mcpBring creative work and visual content into your everyday AI workflow.
Run this in your terminal:
codex mcp add canva --url https://mcp.canva.com/mcpUp-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_secfor it in config.toml. The default is 10 seconds. - A project's config.toml is ignored
- Codex reads
.codex/config.tomlin 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 indisabled_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
- Claude Code: Add servers from your terminal with claude mcp add.
- Cursor: Add servers to an mcp.json file, for one project or all.
- VS Code: Add servers for GitHub Copilot from the Command Palette or .mcp.json.
- Claude Desktop: Add remote servers as custom connectors, and local ones in a config file.
- ChatGPT: Add remote servers as custom plugins on chatgpt.com.
New to MCP? Start with What is an MCP server?