Search the documentation
4 pages for max_mcp_output_tokens.
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
…gent can read the output back in portions. Raise the limit with the [`MAX_MCP_OUTPUT_TOKENS`](/docs/en/env-vars) environment variable. See [MCP output limits and warnings](/docs/en/mcp#mcp-output-limi…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…mits output to 25,000 tokens by default. To raise the limit, set the `MAX_MCP_OUTPUT_TOKENS` environment variable (for example, `MAX_MCP_OUTPUT_TOKENS=50000`); the warning threshold is fixed. See [MCP…
Building custom connectors
Claude Documentation · in the page
connectors/building/index
…de Code max tool result size | 25,000 tokens (configurable via `MAX_MCP_OUTPUT_TOKENS`) | | Claude Code timeout | Configurable via `MCP_TOOL_TIMEOUT` | |…
Troubleshooting MCP Apps
Claude Documentation · in the page
connectors/building/mcp-apps/troubleshooting
…ude Code uses a separate 25,000-token default limit configurable via `MAX_MCP_OUTPUT_TOKENS`.</Note> To avoid this, keep initial tool result payloads lean: * **Paginate large results.** Return a sum…