Search the documentation
6 pages for mcp_timeout.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…| Yes, until it connects | [`MCP_TIMEOUT`](/docs/en/env-vars), 30 seconds by default; the connection fails at that deadline | | Remote server with a cached too…
CLI reference
Claude Code CLI · in the page
cli-reference
…pending servers to connect before running the first turn, up to the [`MCP_TIMEOUT`](/docs/en/env-vars) startup timeout, 30 seconds by default; a server with a [cached tool list](/docs/en/mcp#managing-…
Error reference
Claude Code CLI · in the page
errors
…waits up to the per-server connection timeout of 30 seconds set by [`MCP_TIMEOUT`](/docs/en/env-vars) for that server to connect. Before v2.1.206, startup didn't wait for the server to finish connect…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…for still-pending servers before running the first turn, up to the [`MCP_TIMEOUT`](/docs/en/env-vars) startup timeout, 30 seconds by default. A remote server with a [cached tool list](/docs/en/agent-…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…`-H` short forms * Configure MCP server startup timeout using the `MCP_TIMEOUT` environment variable (for example, `MCP_TIMEOUT=10000 claude` sets a 10-second timeout) * Set a per-server tool exe…
Connect to MCP servers
Claude Code CLI · in the page
mcp-quickstart
…wrap theme={null} Use the claude-code-docs server to look up what MCP_TIMEOUT does ``` <Info> You don't normally need to name a server in your prompt, since Claude chooses relevant…