Best MCP servers for Codex

OpenAI Codex (CLI, IDE extension, and ChatGPT desktop) shares MCP config in TOML — not JSON. The CLI can also add servers for you. We found 337 servers that mention Codex in their docs — 309 maintained in the last 90 days, 159 with a ready-made install config.

Official Codex MCP docs · Jump to copy-paste commands

How to add an MCP server to Codex

Where to put the config

Edit ~/.codex/config.toml (user-wide), or .codex/config.toml in a trusted project. ChatGPT desktop, Codex CLI and the IDE extension share this file.

Add with the CLI

codex mcp add <name> -- <stdio-command>

Example: codex mcp add context7 -- npx -y @upstash/context7-mcp

List with codex mcp list; in the TUI use /mcp. ChatGPT desktop: Settings → MCP servers → Add server.

Config format (TOML)

Each server is a [mcp_servers.<name>] table. Stdio: command, optional args and [mcp_servers.<name>.env]. Remote: set url (and optional bearer_token_env_var / headers).

Sample config — ~/.codex/config.toml

Project-scoped .codex/config.toml is ignored unless the project is trusted.

[mcp_servers.example-server]
command = "npx"
args = ["-y", "some-mcp-server"]

[mcp_servers.example-server.env]
API_KEY = "your-key-here"

# Remote example:
# [mcp_servers.figma]
# url = "https://mcp.figma.com/mcp"
# bearer_token_env_var = "FIGMA_OAUTH_TOKEN"

Copy-paste codex mcp add commands

Run these in your terminal. Codex writes them to ~/.codex/config.toml; run codex mcp list to confirm, and complete OAuth in the browser when a remote asks.

Official hosted remotes

GitHub MCP (official remote)Remote · HTTP · token

Official GitHub-hosted remote MCP server. Repos, issues, pull requests and more over OAuth or a PAT — the easiest way to use GitHub MCP without running the local binary.

codex mcp add github --url https://api.githubcopilot.com/mcp/ --bearer-token-env-var GITHUB_PAT_TOKEN

GitHub's Codex guide requires --bearer-token-env-var for PAT access; export GITHUB_PAT_TOKEN first. Source

Context7 MCP (official remote)Remote · HTTP · OAuth

Upstash-hosted Context7 remote endpoint. Pulls up-to-date, version-specific library docs and code examples into your prompt; optional API key for higher limits.

codex mcp add context7 --url https://mcp.context7.com/mcp
Sentry MCP (official remote)Remote · HTTP · OAuth

Official Sentry-hosted MCP server. Search issues, errors and traces, and get Seer root-cause analysis via OAuth. Streamable HTTP at mcp.sentry.dev.

codex mcp add sentry --url https://mcp.sentry.dev/mcp
Linear MCP (official remote)Remote · HTTP · OAuth

Official Linear-hosted MCP server. Find, create and update issues, projects and comments via OAuth. Streamable HTTP at mcp.linear.app.

codex mcp add linear --url https://mcp.linear.app/mcp
Notion MCP (official remote)Remote · HTTP · OAuth

Official Notion-hosted MCP server. Search, read and update Notion pages and databases over OAuth — no local install. Streamable HTTP at mcp.notion.com.

codex mcp add notion --url https://mcp.notion.com/mcp
Figma MCP (official remote)Remote · HTTP · OAuth

Official Figma-hosted MCP server. Pull design context from Figma files over OAuth without the desktop app. Preferred over the local desktop MCP server for most setups.

codex mcp add figma --url https://mcp.figma.com/mcp
Supabase MCP (official remote)Remote · HTTP · OAuth

Official Supabase-hosted remote MCP server. Manage projects, run SQL and use Supabase features over OAuth or an access token — no local npx process required.

codex mcp add supabase --url https://mcp.supabase.com/mcp

Official Atlassian-hosted MCP server (v2). Connect Jira, Confluence, Jira Service Management, Bitbucket and Compass to Claude, Cursor, VS Code and ChatGPT via OAuth 2.1.

codex mcp add atlassian --url https://mcp.atlassian.com/v2/mcp

Popular local servers commands from each project's README

chrome-devtools-mcpLocal · stdio

Chrome DevTools for coding agents

codex mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest

Project README · needs Node.js

RepomixLocal · stdio

Packs a whole repository into one AI-friendly file; run with --mcp to let assistants pack and read local or remote codebases.

codex mcp add repomix -- npx -y repomix --mcp

Project README · needs Node.js

Provides a tool for dynamic, reflective problem-solving: break problems into steps, revise thoughts, and branch into alternative reasoning paths.

codex mcp add sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking

Project README · needs Node.js

Every listing has the same one-liner in its install tab. Replace placeholder keys before running; never paste secrets into chat.

Quick comparison

Top 12 by GitHub stars among servers documented for Codex. Status: maintained = commit in the last 90 days. Grade A–F blends maintenance, license, install config, official flag and stars.

ServerStarsStatusGradeUpdatedInstallAPI key
Sequential Thinking (official reference server)modelcontextprotocol★ 91.3kMaintainedByesterdayOne-clickNot mentioned
headroomheadroomlabs-ai★ 75.5kMaintainedBtodayCommandLikely
codebase-memory-mcpDeusData★ 46.7kMaintainedAtodayOne-clickLikely
playwright-mcpmicrosoft★ 38.3kMaintainedAtodayOne-clickNot mentioned
github-mcp-servergithub★ 33.7kMaintainedBtodayCommandLikely
code-review-graphtirth8205★ 32.2kMaintainedAtodayOne-clickLikely
mcp-for-blenderahujasid★ 31.2kMaintainedB8 days agoCommandLikely
serenaoraios★ 30.3kMaintainedBtodayOne-clickNot mentioned
context-modemksglu★ 30.3kMaintainedBtodayOne-clickLikely
Repomixyamadashy★ 28.9kMaintainedAtodayOne-clickLikely
dbxt8y2★ 27kMaintainedAtodayOne-clickLikely
editorpascalorg★ 24.9kMaintainedAtodayOne-clickLikely

All 337 MCP servers for Codex

Showing all 337 servers

Codex MCP FAQ

How do I add an MCP server to Codex?

Follow the setup guide on this page (paths and format checked against the official Codex docs). On HookMCP, open any server listing, open the Codex install tab when available, and copy the snippet — 159 of the 337 servers documented for Codex have a ready-made config.

What is the command to add an MCP server to Codex?

For a local server: codex mcp add <name> -- <command> [args]. For a hosted remote: codex mcp add <name> --url <url>. Codex stores servers in ~/.codex/config.toml; this page lists copy-paste commands for popular servers.

What are the best MCP servers for Codex?

By GitHub stars and recent activity among servers that mention Codex in their docs, Sequential Thinking (official reference server) by modelcontextprotocol (★ 91.3k, updated yesterday) leads, followed by headroom and codebase-memory-mcp. Pick based on the tools you need and whether you want local stdio or a hosted endpoint.

Where is the Codex MCP config file?

See the setup guide above — config locations differ by client (JSON for Cursor/Claude Desktop/VS Code/Windsurf/Cline, TOML for Codex, Plugins UI for ChatGPT web). Prefer the path your client's official docs or in-app Open config action show.

Do MCP servers for Codex need an API key?

175 of 337 servers documented for Codex may need keys or tokens. Pass them as environment variables in the client config, never in chat.

Other clients

Looking for an app integration instead? Browse integrations like Postgres, GitHub and Slack.