Sign in to a remote MCP server in Claude Code: /mcp and claude mcp login A developer has documented how to authenticate remote MCP servers in Claude Code, which requires a browser-based OAuth sign-in before hosted servers like Sentry, Linear and Notion become usable. Servers are added with `claude mcp add --transport http ` and then authorized either through the `/mcp` panel or the shell command `claude mcp login `, with tokens stored securely and refreshed automatically. The guide also covers `--callback-port` for fixed redirect URIs, passing a pre-registered client ID and secret, and headless sign-in over SSH using `--no-browser`. Originally published at https://aicoding-guide.com https://aicoding-guide.com/en/posts/claude-code-mcp-http-oauth/ . Hosted MCP servers like Sentry, Linear and Notion are not usable the moment you register their URL. They need a browser sign-in first, and claude mcp list shows them as Needs authentication until you do it. In short: add the server with claude mcp add --transport http