Codex: "MCP client for `server` timed out after 10 seconds"
Codex
The error
MCP client for `<name>` timed out after N seconds. Add or adjust `startup_timeout_sec` in your config.toml
Why it happens
Codex gives each MCP server 10 seconds to start by default (startup_timeout_sec). Servers started with npx, uvx or docker often take longer the first time, while they download. Tool calls have their own limit, 60 seconds by default (tool_timeout_sec).
How to fix it
- Run the command once yourself
Start the exact command in a terminal so the download finishes and you can see real errors.npx -y @playwright/mcp@latest --help - Raise the startup timeout for that server
Add it to the server's existing table in~/.codex/config.toml. The table still needs itscommandorurl.[mcp_servers.playwright] command = "npx" args = ["-y", "@playwright/mcp@latest"] startup_timeout_sec = 30 - Servers that come from a plugin
If the server comes from an installed plugin, it isn't a normal[mcp_servers.NAME]entry, and a table with only a timeout and nocommand/urlisn't a valid server (users report Codex then refuses to load the config with an "invalid transport" error, even though the timeout hint suggests it). Plugin servers are adjusted under[plugins."PLUGIN".mcp_servers.NAME](on/off and tool settings); if one won't start, update or reinstall the plugin. - Slow tools
If tool calls time out rather than startup, raisetool_timeout_secin the same table.tool_timeout_sec = 120 - Know when Codex starts each server (0.172.0 or later)
Since Codex 0.172.0 (November 23, 2026), an optional stdio server that already has a cached tool list starts at its first tool call instead of when the thread starts. A server markedrequired = truestill needs a live connection at startup, unless you also setstartup_readiness = "catalog". To start servers with the thread again, turn the feature off. Codex waitsmcp_optional_startup_grace_ms(default 1000) for optional servers while it builds the first tool list; 0 waits for each server's fullstartup_timeout_sec.[mcp_servers.playwright] command = "npx" args = ["-y", "@playwright/mcp@latest"] required = true # fail startup if this server isn't ready [features] mcp_lazy_stdio_startup = false # start stdio servers with the thread
Related servers
Browser Automation● Maintained
Playwright (Microsoft)
Microsoft's official Playwright MCP server: lets your AI assistant drive a real browser using the page's accessibility tree instead of screenshots. Ve
★ 40.3k · updated 2026-11-30
Dev Tools● Maintained
GitHub
GitHub's official MCP server for repositories, issues, pull requests, Actions and more (local Docker image or the hosted api.githubcopilot.com/mcp/ en
★ 34.9k · updated 2026-11-27 · 🔑 auth
Docs & Knowledge● Maintained
Context7
Upstash Context7: up-to-date library documentation for AI coding agents (local @upstash/context7-mcp or hosted mcp.context7.com/mcp). Version 4.9.0 (N
★ 65.7k · updated 2026-11-30 · 🔑 auth
Sources
- https://learn.chatgpt.com/docs/extend/mcp?surface=cli
- https://github.com/openai/codex/releases/tag/rust-v0.172.0
- MCP startup-timeout hint tells users to add [mcp_servers.<name>] for plugin-provided servers, which breaks config loading (GitHub issue, 0 comments)
- Invalid transport error when setting `mcp_servers.codex_apps.startup_timeout_sec` (GitHub issue, 11 comments)
- MCP startup_timeout_sec does not cover pre-initialize OAuth bootstrap with saved tokens (GitHub issue, 2 comments)