Best MCP servers for Codex
The 4 MCP servers StackGrade tracks, ranked by StackGrade score, each with its automated safety label. “Best” here only means the highest StackGrade score this week (public maintenance, adoption and docs signals). It is not a hands-on test with Codex.
Updated : the last week a score, rank or safety result on this page changed.
Ranking
| # | MCP server | Score | Safety label | Critical dependency advisories | Our MCP code check found | License | Stars |
|---|---|---|---|---|---|---|---|
| 1 | Context7upstash/context7 | 57 #19 of 52 overall | Caution | 2 | none detected in the repo’s own code | MIT | 64,060 |
| 2 | MCP reference serversmodelcontextprotocol/servers | 48 #29 of 52 overall | No issues found | 0 | shell/process exec, filesystem read, filesystem write and network | Apache-2.0 / MIT | 91,744 |
| 3 | Playwright MCPmicrosoft/playwright-mcp | 45 #32 of 52 overall | No issues found | 0 | none detected in the repo’s own code | Apache-2.0 | 38,961 |
| 4 | GitHub MCP Servergithub/github-mcp-server | 41 #40 of 52 overall | No issues found | 0 | none detected in the repo’s own code | MIT | 34,149 |
Critical advisories are distinct OSV advisories in runtime dependencies, counted once per package. “Our MCP code check” looks for code that spawns processes, reads or writes files or uses the network, in the repo’s own code only; a server whose logic lives in a dependency shows nothing here. Directories such as awesome-mcp-servers list servers but are not servers, so they are not ranked here.
Do these servers work with Codex?
MCP is an open protocol, so each server can be connected to any MCP client, Codex included. We have not tested each server with Codex, and the ranking is the same on our pages for Codex, Claude Code and OpenCode, because it does not depend on the client. What differs is how you add a server and what Codex documents about it:
- Codex keeps MCP servers in
~/.codex/config.toml, or per project in.codex/config.toml(trusted projects only), as[mcp_servers.<name>]tables. The Codex CLI, the IDE extension and the ChatGPT desktop app share this configuration. - Add a local (stdio) server with
codex mcp add <name> -- <command>; streamable HTTP servers take aurl./mcpin the Codex terminal UI lists active servers. - Per server you can set
enabled_tools/disabled_toolsanddefault_tools_approval_mode(auto,prompt,writesorapprove;writesprompts for tools that are not marked read-only). - OpenAI’s docs list Context7, Playwright and GitHub among “useful MCP servers”; all three are in the ranking above.
Source: OpenAI, Codex docs: Model Context Protocol (checked 1 Nov 2026). Each server’s own README has its exact install command.
And Codex itself?
Codex scores 58 this week (#16 of 52 overall, #6 in Coding agents) with the safety label Caution. An MCP server runs with your agent’s permissions, so check both. Is Codex safe?
Questions about MCP servers for Codex
What are the best MCP servers for Codex?
By StackGrade score this week: Context7 (57, caution), MCP reference servers (48, no issues found), Playwright MCP (45, no issues found). “Best” only means the highest StackGrade score from public maintenance, adoption and docs signals among the 4 MCP servers tracked. It is not a hands-on test with Codex.
Are MCP servers safe to use with Codex?
Safety labels this week across the 4 tracked MCP servers: 1 caution, 3 no issues found; 1 of them lists at least one critical advisory in runtime dependencies. These come from an automated scan, not a manual audit. An MCP server runs with your agent’s permissions, so read each server’s README and check the label before you connect it.
Does every MCP server work with Codex?
MCP is an open protocol, so each server can be connected to any MCP client, Codex included. StackGrade has not tested each server with Codex. The ranking does not depend on the client; what differs is how you add a server.
How do I add an MCP server to Codex?
Codex keeps MCP servers in ~/.codex/config.toml, or per project in .codex/config.toml (trusted projects only), as [mcp_servers.<name>] tables. The Codex CLI, the IDE extension and the ChatGPT desktop app share this configuration. Add a local (stdio) server with codex mcp add <name> -- <command>; streamable HTTP servers take a url. /mcp in the Codex terminal UI lists active servers. Source: OpenAI, Codex docs: Model Context Protocol (checked 1 Nov 2026). Each server’s own README has its exact install command.
How this ranking works
- Score (0 to 100): percentiles among all 52 tracked tools for maintenance (30%), adoption (30%) and README docs (20%); community is not measured yet. Methodology
- Safety label: separate from the score, from a weekly automated scan of dependencies (OSV), install hooks, remote-code patterns, agent instruction files and MCP server code. Not a manual audit. All safety labels
- Which servers: every tool we track whose type is MCP server. 4 servers is a short list; we add servers in the weekly discovery run.
Same ranking with setup notes for Claude Code and OpenCode · All agent skills and MCP servers · Compare tools side by side