⌨️MAX_MCP_OUTPUT_TOKENS
Also known as MAX_MCP_OUTPUT_TOKENS environment variable
It sets how big an MCP tool's answer may be.
Think of it like
It is like a voice note. It can only be so long.
Example
Jack's database server returns big query results that get cut off. He raises the limit, and Claude sees the whole table.
Why it matters
A tool that returns too much can fill the chat in one call. This keeps that in check.
Definition
Example code
bash
export MAX_MCP_OUTPUT_TOKENS=50000
claudeCommon mistake
Key takeaways
- 1Default 25,000. Tokens per answer.
- 2Warns at 10,000. So you notice.
- 3Huge text. Goes to a file.