Serverdex client guide
MCP servers for OpenAI Codex CLI
OpenAI's Codex CLI. Servers are added with codex mcp add or written as TOML tables in config.toml; hosted servers take a URL and a bearer token or an OAuth login.
Every setup fact on this page was read from OpenAI Codex CLI's own documentation on 19 November 2026 (sources at the end). Server data comes from the live Serverdex index of the official MCP registry.
Where the configuration lives
- ~/.codex/config.toml by default; a project can carry its own .codex/config.toml (trusted projects only).
- Each server is a [mcp_servers.<name>] table. codex mcp list shows the configured servers; /mcp in the codex TUI shows the active ones.
Add a server to OpenAI Codex CLI
Local server (stdio) — command line
codex mcp add context7 -- npx -y @upstash/context7-mcp
# with environment variables
codex mcp add <server-name> --env VAR1=VALUE1 --env VAR2=VALUE2 -- <stdio server-command>Local server (stdio) — config.toml
[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp"]
env_vars = ["LOCAL_TOKEN"]
[mcp_servers.context7.env]
MY_ENV_VAR = "MY_ENV_VALUE"Hosted server (Streamable HTTP) — config.toml
[mcp_servers.figma]
url = "https://mcp.figma.com/mcp"
bearer_token_env_var = "FIGMA_OAUTH_TOKEN"
http_headers = { "X-Figma-Region" = "us-east-1" }For a specific server, open its Serverdex page: the “Connect this server” block has the config with the real package name, arguments and environment variables from the registry. Any server, any client: MCP config generator.
Hosted (remote) servers in OpenAI Codex CLI
- url is required; bearer_token_env_var names an environment variable whose value is sent as the Authorization bearer token; http_headers, env_http_headers, auth and http_headers_helper are optional.
- For a server that supports OAuth: codex mcp login <server-name> (add --no-browser on a machine without a browser, open the printed URL and paste the redirect URL back).
Hosted servers that answered the Serverdex live check with no credentials at the last pass (most-starred first; full list with check times):
Browser Use
browser-use
Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.
Labelhead Artist Momentum
paperclipai
Trending hip-hop artist momentum scores across four cultural dimensions.
Front-End Checklist
thedaviddias
Review frontend code and live pages against 386 quality-gated web development rules.
Context7
upstash
Up-to-date docs for AI agents
Tldraw
tldraw
Draw and visually collaborate with your agents on tldraw's canvas.
Oh My Posh Validator
JanDeDobbeleer
Validate oh-my-posh configurations and segment snippets against the official schema.
Compiler Explorer
compiler-explorer
Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links
GitDiagram
ahmedkhaleel2004
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Spree Commerce developer docs for AI agents
spree
Spree Commerce docs for AI coding agents: build headless B2B and marketplace ecommerce on its APIs.
AIHOT
KKKKhazix
Chinese AI news: search topics, explore hot events, and read daily, weekly and monthly briefs.
Finance Database
JerBouma
Equities, ETFs, indices, currencies and cryptos, categorised.
OneUptime
OneUptime
Manage incidents, alerts, monitors, status pages, on-call and telemetry in OneUptime.
Find servers for OpenAI Codex CLI by job or by product
Every server page carries the config in the OpenAI Codex CLI shape, the repository's last push and licence, and the live-check result.
Best MCP servers by categoryMCP servers by productComparisonsRemote servers answering now
What the docs say to watch for
- command is required for a stdio server; args, env, env_vars and cwd are optional.
Server not showing up or stuck on loading tools? The troubleshooting guide goes through the causes in order.
OpenAI Codex CLI and MCP: questions people ask
- Where is the OpenAI Codex CLI MCP config file?
- ~/.codex/config.toml by default; a project can carry its own .codex/config.toml (trusted projects only). Each server is a [mcp_servers.<name>] table. codex mcp list shows the configured servers; /mcp in the codex TUI shows the active ones.
- Does OpenAI Codex CLI support remote (hosted) MCP servers?
- Yes. url is required; bearer_token_env_var names an environment variable whose value is sent as the Authorization bearer token; http_headers, env_http_headers, auth and http_headers_helper are optional. For a server that supports OAuth: codex mcp login <server-name> (add --no-browser on a machine without a browser, open the printed URL and paste the redirect URL back).
- Which MCP servers should I add to OpenAI Codex CLI first?
- Pick by the job you need done: the Serverdex guides rank servers by GitHub stars within each category, with last push, licence and live check for each, and the product pages list every server for a given tool (Postgres, Notion, Slack, GitHub…). The hosted servers on this page answered our credential-free MCP handshake at the last check. Then copy the config from the server's page in the OpenAI Codex CLI shape.
Sources
- OpenAI: Model Context Protocol for Codex CLI — read 19 November 2026
Other clients: Claude Desktop · Claude Code · Cursor · VS Code · Cline · Windsurf · Zed · JetBrains AI Assistant · Continue.