Answer: Claude Code supports OAuth 2.0 for remote MCP servers; add the server that requires authentication, then run `/mcp` within Claude Code and follow the browser steps to log in. You can also run the OAuth flow from the command line with `claude mcp login `. Status: Confirmed Entry: tool/claude-code/permissions-and-security/authenticate-remote-mcp-oauth Revision: 4 Digest: sha256:02b979e8eb1038c1 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:40Z Last changed: 2026-11-18T12:17:28Z (no-browser flag: — → --no-browser) Last verified: 2026-11-20T12:22:07Z Next check: 2026-11-21T12:22:07Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of authentication protocol | OAuth 2.0 | [1] | 2026-11-20 add server command | claude mcp add --transport http sentry https://mcp.sentry.dev/mcp | [1] | 2026-11-20 in-session command | /mcp | [1] | 2026-11-20 CLI login command | claude mcp login | [1] | 2026-11-20 logout command | claude mcp logout | [1] | 2026-11-20 callback port flag | --callback-port | [1] | 2026-11-20 no-browser flag | --no-browser | [1] | 2026-11-20 Sources: [1] Anthropic. "Connect Claude Code to tools via MCP". https://code.claude.com/docs/en/mcp.md Role: primary. Accessed: 2026-11-20T12:22:07Z Quote: "Claude Code supports OAuth 2.0 for secure connections." (Supports: authentication protocol) Quote: "claude mcp add --transport http sentry https://mcp.sentry.dev/mcp" (Supports: add server command) Quote: "In Claude Code, use the command: ```text wrap theme={null} /mcp" (Supports: in-session command) Quote: "The `claude mcp login ` command runs a configured server's OAuth flow directly from your shell" (Supports: CLI login command) Quote: "To clear stored credentials later, run `claude mcp logout `." (Supports: logout command) Quote: "Use `--callback-port` to fix the port so it matches a pre-registered redirect URI of the form `http://localhost:PORT/callback`." (Supports: callback port flag) Quote: "Pass `--no-browser` to force the URL prompt even when a local browser is detected." (Supports: no-browser flag) Published: 2026-11-20T02:52:57Z Snapshot SHA-256: a6fa343721a48523c7de2039126c29ab9cade7009b501c6d3da9c63be1850d3d (captured 2026-11-20T12:22:03Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:22:07Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:22:07Z Last attempt: 2026-11-20T12:22:07Z Notes and limitations: Extracted automatically from a single official source (section "Authenticate with remote MCP servers"). Related: https://latestn.com/tool/claude-code/permissions-and-security/auto-approve-refuse-tool-call How do I approve or refuse a tool call in Claude Code before the user is asked? https://latestn.com/tool/claude-code/permissions-and-security/available-permission-modes What permission modes are available in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/available-permission-modes-2 What permission modes are available in Claude Code and what does each auto-approve? https://latestn.com/tool/claude-code/permissions-and-security/allow-deny-rules How do I configure allow and deny rules for tools in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/allow-mcp-tools How do I allow or auto-approve MCP tools in Claude Code Agent SDK using allowedTools? https://latestn.com/tool/claude-code/permissions-and-security/approve-apps-per-session How do I approve which apps Claude can control during a computer use session? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:17:28Z | changed | no-browser flag: — → --no-browser | [1] 2026-11-18T12:17:28Z | changed | callback port flag: — → --callback-port | [1] 2026-11-18T12:17:28Z | changed | logout command: — → claude mcp logout | [1] 2026-11-18T12:17:28Z | changed | in-session command: — → /mcp | [1] 2026-11-18T12:17:28Z | changed | add server command: — → claude mcp add --transport http sentry https://mcp.sentry.dev/mcp | [1] 2026-11-18T12:17:28Z | changed | authentication protocol: — → OAuth 2.0 | [1] 2026-11-18T12:17:28Z | changed | No-browser flag: --no-browser → — | [1] 2026-11-18T12:17:28Z | changed | Fixed callback port flag: --callback-port → — | [1] 2026-11-18T12:17:28Z | changed | Logout command: claude mcp logout → — | [1] 2026-11-18T12:17:28Z | changed | Example add command: claude mcp add --transport http sentry https://mcp.sentry.dev/mcp → — | [1] 2026-11-18T12:17:28Z | changed | In-session command: /mcp → — | [1] 2026-11-18T12:17:28Z | changed | Trigger status codes: 401 Unauthorized → — | [1] 2026-11-18T12:17:28Z | changed | Authentication method: OAuth 2.0 → — | [1] 2026-11-17T12:27:31Z | changed | Fixed callback port flag: — → --callback-port | [1] 2026-11-17T12:27:31Z | changed | Example add command: — → claude mcp add --transport http sentry https://mcp.sentry.dev/mcp | [1] 2026-11-17T12:27:31Z | changed | Trigger status codes: — → 401 Unauthorized | [1] 2026-11-17T12:27:31Z | changed | Authentication method: — → OAuth 2.0 | [1] 2026-11-17T12:27:31Z | changed | Callback port flag: --callback-port → — | [1] 2026-11-17T12:27:31Z | changed | Add server command: claude mcp add --transport http sentry https://mcp.sentry.dev/mcp → — | [1] 2026-11-17T12:27:31Z | changed | Authentication protocol: OAuth 2.0 → — | [1] 2026-11-16T12:10:08Z | changed | Callback port flag: — → --callback-port | [1] 2026-11-16T12:10:08Z | changed | Authentication protocol: — → OAuth 2.0 | [1] 2026-11-16T12:10:08Z | changed | Transport compatibility: HTTP servers → — | [1] 2026-11-16T12:10:08Z | changed | Fixed callback port flag: --callback-port → — | [1] 2026-11-16T12:10:08Z | changed | Authentication method: OAuth 2.0 → — | [1] 2026-11-13T03:04:40Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/authenticate-remote-mcp-oauth/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/permissions-and-security/authenticate-remote-mcp-oauth POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/authenticate-remote-mcp-oauth with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/authenticate-remote-mcp-oauth?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I authenticate Claude Code with a remote MCP server using OAuth? Revision 4, last verified 2026-11-20T12:22:07Z. https://latestn.com/tool/claude-code/permissions-and-security/authenticate-remote-mcp-oauth (accessed 2026-11-21T10:02:04Z). @misc{LatestN_tool_claude_code_permissions_and_security_authenticate_remote_mcp_oauth_r4, title = {How do I authenticate Claude Code with a remote MCP server using OAuth?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/authenticate-remote-mcp-oauth}}, note = {Revision 4; digest sha256:02b979e8eb1038c1; last verified 2026-11-20T12:22:07Z; accessed 2026-11-21T10:02:04Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/permissions-and-security/authenticate-remote-mcp-oauth