Claude Code MCP Deep Dive (6): From One Authorization to Multiple Servers A developer's deep dive into Claude Code's remote MCP authentication describes how the client distinguishes a server needing sign-in from a connection failure, surfacing HTTP 401/403 responses as a needs-auth state in the /mcp panel and via `claude mcp login `. For eligible HTTP/SSE servers, Claude Code can expose a synthetic `mcp____authenticate` tool that starts the OAuth flow and returns an authorization URL, then reconnects and swaps in the server's real tools once the callback succeeds. Tokens are stored and refreshed automatically, and headless environments such as SSH sessions can complete login by pasting the full redirect URL back into the terminal. TL;DR: A remote MCP server that needs authentication has not necessarily failed to connect permanently. Claude Code can guide a user through browser-based OAuth, retain credentials securely, and refresh them later. In an enterprise deployment that supports Cross-App Access, one login to the organization's identity provider can also be reused to obtain server-specific access tokens without a separate browser prompt for every server. Part 5 https://dev.to/ 94be737e156beb4d74df2/claude-code-mcp-deep-dive-5-from-tool-name-matching-to-server-level-authorization-ke0 explored the permission decision after a tool becomes available. But Part 2 https://dev.to/ 94be737e156beb4d74df2/claude-code-mcp-deep-dive-2-from-a-configuration-entry-to-a-handshake-3f35 left another gate open: what happens when a remote server exists in configuration but cannot yet authenticate the client? This is a different problem from deciding whether Claude may invoke a tool. OAuth determines whether the MCP client has a credential that the remote service accepts. Claude Code's tool permissions determine whether an individual call should proceed. Passing one gate does not automatically pass the other. Claude Code distinguishes a remote server that needs sign-in from an ordinary connection failure. Its current documentation says that an HTTP 401 Unauthorized or 403 Forbidden can mark a remote server as needing authentication. The /mcp panel shows which servers need sign-in; an interactive user can authenticate there, or run claude mcp login