MCP Shipyard
← Guides

MCP tool timeouts: handling slow tools in Claude and ChatGPT

What the spec says about timeouts, the limits Claude documents, what is and is not documented for ChatGPT, and four patterns for tools that take longer than a minute.

timeoutsprogresstaskscancellationclaudechatgptperformance
<!-- Evidence of demand (checked 2026-12-03 via WebSearch): OpenAI community thread "Call remote MCP server tool timed out, resulting in error 424" (opened Oct 28, 2025, closed June 29, 2026); a Claude Code issue titled "Claude Desktop: 4-minute hard timeout on remote/hosted MCP tool calls" (anthropics/claude-code #64614, seen in search results, not opened); Cursor forum "Cursor not handling long-running MCP tool responses". Several threads on the TypeScript SDK default request timeout. -->

MCP tool timeouts: handling slow tools in Claude and ChatGPT

A tool that takes 90 seconds works in your terminal and fails in a chat client. The client gives up, the model sees an error, and sometimes it retries the call, so your slow job now runs twice. This guide covers what is documented about timeouts, what is not, and the patterns that work when a job outlasts them.

What the spec says

The lifecycle section of the 2025-11-25 spec is short:

  • Implementations SHOULD set a timeout on every request they send. When it expires, the sender SHOULD send a cancellation notification and stop waiting.
  • Implementations MAY reset the timeout clock when a progress notification arrives for the request, but SHOULD always enforce a maximum timeout regardless of progress.

The spec sets no number. Each client picks its own, and a client is allowed to ignore progress when deciding whether to wait.

What Claude documents

Anthropic's connector build guide has a limits table:

Limitclaude.ai and DesktopClaude Code
Tool call timeout240 seconds per tool callConfigurable with MCP_TOOL_TIMEOUT

In Claude Code, the MCP docs add two details. A per-server timeout is a hard wall-clock limit per tool call and progress notifications do not extend it. Separately, a call that sends neither a response nor a progress notification for an idle window is aborted. That window defaults to five minutes for HTTP, SSE, WebSocket and connector servers, and is set with CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT (milliseconds, 0 disables it).

So for Claude, the number to design for is 240 seconds on the hosted surfaces, and progress notifications help only with the idle window, not the wall-clock limit.

What is documented for ChatGPT

We could not find a stated tool-call timeout in OpenAI's docs. The Apps SDK server guide says to "apply timeouts and rate limits to expensive or externally visible tools" and to meet the latency needs of your workflows, with no number. The Responses API MCP guide lists no timeout either.

What exists is anecdotal. In an OpenAI community thread about Agent Builder, developers reported HTTP 424 errors for tools that ran longer than about a minute. A staff reply on December 16, 2025 said the platform timeout remained and that progress events did not reset it. The thread was closed in June 2026, and that was the staff position at that date. It concerns Agent Builder, not ChatGPT apps, so we mark the number as unverified for ChatGPT today. Our recommendation, which is our judgment and not an OpenAI limit: keep any tool a ChatGPT user can call under 30 seconds, and treat 60 seconds as a ceiling.

Four patterns for slow work

1. Make the call fast, split the job

Return a job id immediately and add a second tool that reports status. This works in every client because it needs no protocol feature.

server.registerTool('start_export', {
  description: 'Start a report export. Returns a job_id right away. Call get_export_status until status is "done".',
  inputSchema: { report_id: z.string() },
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
}, async ({ report_id }) => {
  const job = await queue.enqueue('export', { report_id }, { key: report_id }); // key makes retries safe
  return { content: [{ type: 'text', text: JSON.stringify({ job_id: job.id, status: 'queued' }) }] };
});

Make the start tool idempotent, as above. A client that times out may call it again, and a second identical call should return the first job. Say in the description how the model should poll, so it does not guess. See writing MCP tool descriptions.

2. Send progress notifications

Progress is optional and the client must ask for it by sending a progressToken in _meta. The 2026-07-28 spec keeps the same shape: progress must increase on each notification, and total and message are optional. With the TypeScript SDK 1.32 line we ran this against a local server and the notifications arrived as SSE events before the final result:

async ({ steps }, extra) => {
  const token = extra._meta?.progressToken;
  for (let i = 1; i <= steps; i++) {
    await doStep(i, extra.signal);
    if (token !== undefined) {
      await extra.sendNotification({
        method: 'notifications/progress',
        params: { progressToken: token, progress: i, total: steps },
      });
    }
  }
  return { content: [{ type: 'text', text: 'done' }] };
}

Progress keeps an idle timer alive where the client honors it. It does not raise a hard cap, so do not rely on it past 240 seconds in Claude. Behind a proxy, make sure SSE is not buffered. The 2026-07-28 transport page says servers SHOULD send X-Accel-Buffering: no on SSE responses, and the 1.32 SDK did send it in our test.

3. Use MCP tasks where the client supports them

Tasks were introduced in 2025-11-25 as an experimental feature: the server answers a tools/call with a task handle, and the client polls tasks/get and fetches the result later. The 2026-07-28 changelog moves tasks into an official extension, io.modelcontextprotocol/tasks, and replaces the blocking tasks/result with polling.

Claude Code's docs for server authors warn that you should answer with a task only when the request carries the extension. Otherwise the call fails with the tool error Unsupported result type 'task' for tools/call. They also say connector tasks work on protocol revision 2026-07-28. Treat tasks as an optional upgrade over pattern 1, never as the only path, because a client that does not advertise the extension will get an error.

4. Stop work when the client leaves

Check the abort signal and pass it to your own I/O. On the 2025-11-25 transport, a dropped connection is not a cancellation (the spec says disconnection SHOULD NOT be read as the client cancelling), and the client should send notifications/cancelled. On the 2026-07-28 transport, closing the response stream is the cancellation signal. Handle both by watching extra.signal (1.32) or ctx.mcpReq.signal (v2), as the v2 SDK docs show, and by making side effects safe to repeat.

Measure before you guess

Find your slow path with a load run. The MCP Inspector CLI has a load mode that reports latency percentiles and can fail a job on a threshold:

npx @modelcontextprotocol/inspector --cli https://your-server.example.com/mcp --transport http \
  --method tools/call --tool-name search --tool-arg query=mcp \
  --load --load-concurrency 5 --load-duration 30 --load-max-p99 5000

The exit code is 10 if p99 exceeds 5000 ms. Report p95 and p99, not the mean, because users meet the slow tail.

For context on handshakes, in our December 2026 crawl the median full probe took about 1.2 seconds and p95 about 3.5 seconds from one machine. Keep initialize and tools/list free of database calls.

Checklist

  • Every tool finishes in under 30 seconds in normal conditions
  • Anything longer returns a job id and has a status tool
  • Start tools are idempotent
  • Progress is sent when a token is present, and never required
  • Handlers watch the abort signal
  • Errors from timeouts are specific, returned as results with isError: true

Shipyard's monitoring runs your marked-safe tool calls hourly against a latency budget and alerts when one exceeds it. See monitoring. You can do the same with the load command above in any scheduler.

Check your server

Run the free scan at /scan. It times the handshake and tools/list from outside your network, which catches slow cold starts before a client does.

Check your server against these rules

Scan runs the checks from this guide against a live URL and lists each failing rule with its fix.

Scan a server