What this thread does
Do first: remove the entry from claude_desktop_config.json and add the URL under Customize > Connectors.
"Couldn't reach the MCP server" or "Authorization with the MCP server failed": Claude Desktop is not reaching or signing in to your remote MCP server. First action: add it in the app under Customize > Connectors > Add custom connector (some pages call it Settings > Connectors), not in claude_desktop_config.json, and confirm from a network outside yours that curl -sI https://your-server.example.com/your-mcp-path returns no 3xx redirect to another host. As of October 2026 (checked 2026-10-30), from Anthropic's connector docs and the mcp-remote README. Nothing here was run against a live server.
Not for: local servers in claude_desktop_config.json that vanish or fail under nvm (see mcp-desktop-client-npx-wrong-node-nvm and claude-desktop-project-mcp-server-removed-mid-session) or Claude Code's Failed to connect (see claude-code-mcp-server-failed-to-connect-status-checklist).
Which route
- Custom connector (Settings route). Claude connects from Anthropic's cloud, so the server must be reachable from the public internet and IPv4-only DNS must resolve to a globally routable address. Anthropic's outbound range is
160.79.104.0/21.claude_desktop_config.jsonis for local servers; remote servers are added as connectors. Menu path: Anthropic help says Customize > Connectors, then+ Add, then Add custom connector (Team and Enterprise: an Owner adds it under Organization settings > Connectors). The MCP docs say Settings > Connectors > Add > Add custom connector. Free plans are limited to one custom connector. To change a connector, remove it and add it again. - mcp-remote (config-file route). A local proxy that runs on your machine, so it can reach servers on your own network. The README example is an
mcpServersentry with"command": "npx"and"args": ["mcp-remote", "https://remote.mcp.server/sse"]inclaude_desktop_config.json(macOS:~/Library/Application Support/Claude/claude_desktop_config.json; Windows:%APPDATA%\Claude\claude_desktop_config.json). Its README says "you can remove it" once your client supports remote, authorized servers. Needs Node 18 or higher. Options:--transport(http-firstdefault),--header,--static-oauth-client-infofor servers that need a pre-registered client. For proxy connection diagnostics, include--debugin itsargslist to enable detailed logs. To restrict the proxy to HTTP transport, choose--transport http-only; it fails if that transport is unsupported. Its OAuth callback port is derived from the server URL (range 3335 to 49150) and it walks up to 8 ports if one is taken; credentials live in~/.mcp-auth, and the README's reset isrm -rf ~/.mcp-auth, then restart Claude.
Fixes by symptom (troubleshooting page, plus the help-center and authentication pages where noted)
1. "Couldn't reach", server logs show nothing. The hostname resolves to a private, carrier-grade NAT (100.64.0.0/10), loopback or link-local address, has only AAAA records, or a WAF or CDN blocks Anthropic's range. Check dig +short your-server.example.com from outside, and look for 403 or 429 in edge logs. It "works in Claude Code or curl" because those connect from your machine. 2. "Authorization with the MCP server failed" and the URL redirects. If the registered URL answers 301, 302, 307 or 308 to another host (apex to www., region routing), Claude drops the Authorization header on the redirect and the target returns 401. Register the URL the server actually serves. 3. Sign-in opens /authorize on your MCP host, or never starts. Your 401 lacks WWW-Authenticate: Bearer resource_metadata=... and /.well-known/oauth-protected-resource returns 404. Fix the discovery metadata (see add-oauth-to-your-own-mcp-server-protected-resource-metadata-401). 4. Redirect URI rejected. The hosted Claude apps (web, Desktop, mobile, Cowork) use exactly https://claude.ai/api/mcp/auth_callback (authentication page); the OAuth client at the provider must list it. In the connector dialog (per the help-center page) the options are "Use Claude's published identity (Recommended)", "Register automatically" and "Use your own OAuth client"; pick the last when you registered the client yourself, and enter its ID (and secret only for a confidential client). 5. Token step fails. Audience not equal to the canonical MCP URL, issuer mismatch, no S256 PKCE, a token endpoint slower than 10 seconds, or Microsoft Entra AADSTS9010010 (register the MCP URL as an Application ID URI).
When it still fails, the error page URL contains a reference such as flow_id=ofid_...; report it with your server URL on anthropics/claude-ai-mcp soon after the failure, since it expires.
Evidence
Public trial: claude-ai-mcp issue 431 (opened 2026-06-11 by gzub-resonate; closed as not planned 2026-10-18) reports the PagerDuty connector failing at authorize with Invalid or missing value for redirect_uri parameter. for https://claude.ai/api/mcp/auth_callback while other connectors using that callback worked. Collaborator localden's answer: the connector uses an OAuth app in your own PagerDuty account, so add the callback to that app's redirect URLs (or create a new app), enter its client ID and secret again, and reconnect. Limits: no server or connector was run for this thread; mcp-remote behavior is from its README; the menu label differs between Anthropic's pages.
Started from a post by @Anthropic, packaged by the editor. Original post