Serverdex · guide

MCP OAuth: how authentication works

Many remote MCP servers need you to sign in. This is how MCP authorization works — the OAuth 2.1 flow behind that sign-in — and how to connect a server that asks for it.
The MCP OAuth flow, step by stepOAuth 2.1 · HTTP transport · from the official spec
  1. The client calls, gets 401The MCP client makes a request with no token. A protected server replies 401 Unauthorized with a WWW-Authenticate header pointing to where its metadata lives.
  2. Find the authorization serverThe client fetches the server’s Protected Resource Metadata (RFC 9728) — which the spec says MCP servers MUST implement — to learn which authorization server issues tokens for it.
  3. Discover the auth serverThe client reads the authorization server’s metadata via OAuth 2.0 Authorization Server Metadata (RFC 8414) or OpenID Connect Discovery, from a /.well-known/ endpoint.
  4. Register the clientThe client identifies itself using Client ID Metadata Documents or pre-registration. Dynamic Client Registration is now deprecated (kept only for backwards compatibility).
  5. Sign in with PKCEThe client runs the OAuth 2.1 Authorization Code flow with PKCE (S256), sending a resource parameter (RFC 8707) that names this exact server. You sign in and approve in the browser.
  6. Get a bound token, retryThe client exchanges the code for an access token issued for that server, then retries the request with Authorization: Bearer …. The server MUST only accept tokens meant for it.

Source: the official MCP Authorization spec (2026-07-28), read 1 December 2026. Keywords (MUST / SHOULD / MAY) are the spec’s own.

What MCP OAuth is

The spec defines authorization for HTTP transports and it is optional. A protected MCP server acts as an OAuth 2.1 resource server; the client is the OAuth client; the authorization server (the thing that signs you in and issues the access token) is a separate role that may be hosted with the server or be an external identity provider. A local stdio server does not use OAuth at all — it takes credentials from the environment. Source: the official Authorization spec, read 1 December 2026.

How many MCP servers need sign-in

live check · December 1, 2026
Need sign-in
6.4k
answered: authorization required
Answer with no key
14k
open to a credential-free check
Paid per call
113
require a paid plan/key
What servers say to a credential-free connectionhosted servers, by what our live check saw
Answered, no key
14k
Needs sign-in
6.4k
Not an MCP endpoint
3.2k
Unreachable
712
Paid per call
113
SSE (unchecked)
227

Source: Serverdex hourly live check, read December 1, 2026. "Needs sign-in" = the server answered that it requires OAuth authorization; "answered, no key" = it responded to a plain MCP handshake with no credentials.

Popular MCP servers that need sign-in

Remote servers →
  1. World Monitor

    koala73
    A

    Production-ready

    Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 108 tools.

    Registry
    91k 3d agoAGPL-3.0
  2. HyperFrames by HeyGen

    heygen-com
    A

    Production-ready

    Official HyperFrames by HeyGen: the best AI video editor in chat. Captions, motion graphics, MP4.

    Registry
    90k 6d agoApache-2.0
  3. Netdata

    netdata
    A

    Production-ready

    Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.

    Registry
    82k 9d agoGPL-3.0
  4. Reactive Resume

    reactive-resume
    A

    Production-ready

    Free open-source resume builder with remote MCP tools for resumes and job applications.

    Registry
    46k 4d agoMIT
  5. com.puter MCP Server

    HeyPuter
    A

    Production-ready

    Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

    Registry
    44k 7d agoAGPL-3.0
  6. PostHog

    PostHog
    A

    Production-ready

    Query analytics, manage feature flags and experiments, and investigate errors in PostHog.

    Registry
    41k 9d agoOther

The security rules worth knowing

The spec puts the user’s own credentials and consent at the centre. A server MUST validate that an access token was issued specifically for it (audience binding, RFC 8707) and MUST reject tokens that aren’t. Token passthrough — a server forwarding your token to some upstream API — is explicitly forbidden. And any tool that acts on your behalf keeps a human in the loop to consent. More on hardening a server on MCP server security. Source: the official Authorization spec & its security considerations, read 1 December 2026.

Questions people ask

What does "needs sign-in" mean on a server's page?
It means that when Serverdex connected to the hosted server with no credentials, it answered that it requires authorization — an HTTP 401 pointing to an OAuth flow. The server works; you just have to sign in (or supply a token) first. 6,420 of the servers we track are in this state.
Which OAuth does MCP use, and does a local server need it?
MCP authorization uses OAuth 2.1 and applies to HTTP (remote) transports; it is optional. A local (stdio) server does NOT use OAuth — the spec says stdio implementations should retrieve credentials from the environment instead, so you pass an API key as an env var in your client config.
I get a 401 connecting a remote MCP server — what do I do?
A 401 is the first step of the OAuth flow, not an error to fight. A compliant client reads the WWW-Authenticate header and the server's Protected Resource Metadata, discovers the authorization server, and opens a browser sign-in. If your client doesn't do this automatically, check that it supports MCP OAuth, or supply a token the server's own docs give you.
Is it safe — can a server misuse my token?
The spec is strict about this: a server MUST only accept tokens that were issued specifically for it (audience binding, RFC 8707), and token passthrough — a server forwarding your token to some other API — is explicitly forbidden. Prefer well-maintained servers you can inspect; Serverdex grades every server and runs a daily live check.
What changed in the latest spec?
In the 2026-07-28 revision, Dynamic Client Registration was downgraded to optional and marked deprecated in favour of OAuth Client ID Metadata Documents; authorization-server discovery now also accepts OpenID Connect Discovery; and mix-up protection (issuer validation, RFC 9207) and hardened PKCE (S256) were added.

Related: remote MCP servers, the client matrix, server security, and the authorization glossary entry. New to MCP? Start with what is an MCP server.