claude-code - 💡(How to fix) Fix MCP connections return 503 DNS cache overflow from sandbox egress proxy (web/mobile) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52914Fetched 2026-04-25 06:17:33
View on GitHub
Comments
0
Participants
1
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
labeled ×5cross-referenced ×1

MCP tool connections from Claude Code web/mobile sessions fail with HTTP 503. The TLS certificate on the connection reveals traffic is being intercepted by Anthropic's own egress proxy (sandbox-egress-production TLS Inspection CA), and the HTTP response body is DNS cache overflow. The upstream MCP server (AWS Lambda function URL) is confirmed healthy and returns correct responses when accessed directly.

Root Cause

MCP tool connections from Claude Code web/mobile sessions fail with HTTP 503. The TLS certificate on the connection reveals traffic is being intercepted by Anthropic's own egress proxy (sandbox-egress-production TLS Inspection CA), and the HTTP response body is DNS cache overflow. The upstream MCP server (AWS Lambda function URL) is confirmed healthy and returns correct responses when accessed directly.

Code Example

< HTTP/2 503
< content-type: text/plain
DNS cache overflow

* SSL cert issuer: O=Anthropic; CN=sandbox-egress-production TLS Inspection CA
RAW_BUFFERClick to expand / collapse

Description

MCP tool connections from Claude Code web/mobile sessions fail with HTTP 503. The TLS certificate on the connection reveals traffic is being intercepted by Anthropic's own egress proxy (sandbox-egress-production TLS Inspection CA), and the HTTP response body is DNS cache overflow. The upstream MCP server (AWS Lambda function URL) is confirmed healthy and returns correct responses when accessed directly.

Steps to reproduce

  1. Configure an MCP server using a Lambda function URL (or any external HTTPS endpoint)
  2. Connect via Claude Code web or mobile
  3. Observe 503 responses from MCP tool calls

Expected behavior

MCP calls reach the upstream server and return valid responses.

Actual behavior

HTTP 503 with body DNS cache overflow returned by the sandbox egress proxy before the request reaches the upstream server.

Evidence

< HTTP/2 503
< content-type: text/plain
DNS cache overflow

* SSL cert issuer: O=Anthropic; CN=sandbox-egress-production TLS Inspection CA

Impact

All MCP servers requiring outbound HTTPS are broken from web/mobile Claude Code. Claude Code desktop CLI is unaffected (bypasses the sandbox proxy and connects directly).

Environment

  • Claude Code web/mobile (sandbox-hosted)
  • MCP transport: Streamable HTTP
  • Upstream: AWS Lambda function URL (us-east-2)
  • Source IP: 160.79.106.35

extent analysis

TL;DR

The issue can likely be resolved by adjusting the DNS cache settings or implementing a workaround to bypass the sandbox egress proxy for MCP tool connections.

Guidance

  • Investigate the DNS cache configuration on the sandbox egress proxy to determine if there are any limits or restrictions that could be causing the overflow.
  • Consider implementing a temporary workaround, such as using a different DNS resolver or caching mechanism, to bypass the issue until a permanent fix can be applied.
  • Verify that the upstream MCP server (AWS Lambda function URL) is correctly configured and responding as expected when accessed directly.
  • Review the Claude Code web and mobile session configurations to ensure that they are properly set up to use the MCP server and not relying on any cached DNS entries.

Example

No code snippet is provided as the issue appears to be related to network configuration and DNS caching rather than code.

Notes

The issue seems to be specific to the sandbox egress proxy and its DNS caching mechanism. The fact that the Claude Code desktop CLI is unaffected suggests that the issue is related to the proxy and not the MCP server or Lambda function URL.

Recommendation

Apply a workaround, such as using a different DNS resolver or caching mechanism, to bypass the sandbox egress proxy for MCP tool connections. This is recommended because the issue appears to be related to the proxy's DNS caching mechanism, and adjusting or bypassing this mechanism may resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

MCP calls reach the upstream server and return valid responses.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix MCP connections return 503 DNS cache overflow from sandbox egress proxy (web/mobile) [1 participants]