Top 10 MCP servers · TOML
Top 10 MCP servers for OpenAI Codex
Ten MCP servers that fit OpenAI Codex's `config.toml` and `codex mcp add` workflow — all using stdio or Streamable HTTP (Codex does not document legacy SSE), with bearer tokens kept in environment variables.
How we picked
Each server on this list meets five checks: it is official from the product vendor or has strong community adoption, its setup is documented for transports OpenAI Codex actually supports (stdio, Streamable HTTP), each pick covers a distinct job instead of repeating the same tool, security risks are explicitly stated, and GitHub stars (shown where the repository is dedicated to the MCP server, as of Nov 26, 2026) provide adoption context. These entries are source-verified, not runtime-tested together inside OpenAI Codex.
The ten picks
- #1OfficialStreamable HTTP★ 65.5k GitHub stars · as of Nov 26, 2026
Context7
Adds version-pinned library documentation to Codex sessions via a simple Streamable HTTP `url` entry in `~/.codex/config.toml`.
Auth: Optional API key · None for basic hosted access - #2OfficialStreamable HTTP★ 34.8k GitHub stars · as of Nov 26, 2026
GitHub MCP Server
Uses Codex's `bearer_token_env_var` TOML setting against GitHub's hosted HTTP endpoint for PR, issue, and repo workflows.
Auth: Personal access token · OAuth via hosted endpoint - #3Officialstdio★ 40.2k GitHub stars · as of Nov 26, 2026
Playwright MCP
Launches over stdio in Codex (`[mcp_servers.playwright]`) to test local web apps end to end inside a separate browser profile.
Auth: None (browser profile) - #4Communitystdio★ 31.7k GitHub stars · as of Nov 26, 2026
Serena
Supplies LSP-backed symbol lookups and targeted edits over stdio, reducing whole-file rewrites in Codex terminal sessions.
Auth: None (local process permissions) - #5Officialstdio★ 59.5k GitHub stars · as of Nov 26, 2026
Chrome DevTools MCP
Runs over stdio so Codex can inspect live browser console output, network calls, and traces when debugging frontend changes.
Auth: None (local Chrome session) - #6OfficialStreamable HTTP
Figma MCP Server (official)
Connects Codex to Figma's Streamable HTTP server for design tokens and component specs while following Codex OAuth setup.
Auth: Figma account (OAuth) - #7OfficialStreamable HTTP★ 977 GitHub stars · as of Nov 26, 2026
Sentry MCP Server
Exposes Sentry issues and stack traces to Codex over Streamable HTTP so bug fixes start from real error payloads.
Auth: OAuth via hosted endpoint · Sentry access token - #8OfficialStreamable HTTP
DeepWiki MCP
Needs only a single `url` line in Codex's TOML config (no auth) to query architecture and usage across public GitHub repos.
Auth: None (public repositories) - #9OfficialStreamable HTTP
Linear MCP
Brings Linear issue details and project context into Codex over Streamable HTTP for ticket-driven implementation.
Auth: OAuth · Linear API credentials (client-dependent) - #10OfficialStreamable HTTP★ 3k GitHub stars · as of Nov 26, 2026
Supabase MCP Server
Connects Codex to Supabase over Streamable HTTP for schema inspection and branch SQL, respecting Codex project trust scopes.
Auth: OAuth · Personal access token
All ten in one OpenAI Codex config
Generated at build time using the OpenAI Codex adapter (user scope). Start with only the two or three servers you need for your current task rather than enabling all ten at once.
Target path: ~/.codex/config.toml
# Code X MCP — OpenAI Codex CLI MCP configuration
# Docs: https://developers.openai.com/codex/mcp
# Scope: user (~/.codex/config.toml)
# Merge these tables with existing entries; do not replace unrelated configuration.
[mcp_servers.context7]
url = "https://mcp.context7.com/mcp"
[mcp_servers.github]
url = "https://api.githubcopilot.com/mcp/"
bearer_token_env_var = "GITHUB_PERSONAL_ACCESS_TOKEN"
[mcp_servers.playwright]
command = "npx"
args = ["-y", "@playwright/mcp@latest"]
[mcp_servers.serena]
command = "uvx"
args = ["--from", "git+https://github.com/oraios/serena", "serena", "start-mcp-server"]
[mcp_servers.chrome-devtools]
command = "npx"
args = ["-y", "chrome-devtools-mcp@latest"]
[mcp_servers.figma-dev-mode]
url = "https://mcp.figma.com/mcp"
[mcp_servers.sentry]
url = "https://mcp.sentry.dev/mcp"
[mcp_servers.deepwiki]
url = "https://mcp.deepwiki.com/mcp"
[mcp_servers.linear]
url = "https://mcp.linear.app/mcp"
[mcp_servers.supabase]
url = "https://mcp.supabase.com/mcp"
- Replace generated placeholders or export the listed environment variables before starting Codex. Do not commit real tokens.
Setup steps
- Open or create ~/.codex/config.toml and merge the generated MCP tables with your existing configuration.
- Keep bearer tokens in environment variables. Codex reads the variable named by bearer_token_env_var when it connects.
- Verify the registration with `codex mcp list` (and `codex mcp get <name>`), then restart the Codex session before testing tools.
- The documented CLI alternative is available; for example: codex mcp add 'github' --url 'https://api.githubcopilot.com/mcp/' --bearer-token-env-var 'GITHUB_PERSONAL_ACCESS_TOKEN' codex mcp add 'playwright' -- 'npx' '-y' '@playwright/mcp@latest' codex mcp add 'serena' -- 'uvx' '--from' 'git+https://github.com/oraios/serena' 'serena' 'start-mcp-server' codex mcp add 'chrome-devtools' -- 'npx' '-y' 'chrome-devtools-mcp@latest'