Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

“Token Expired” and “Session Expired” are not interchangeable diagnoses. An expired access token is an authorization problem; an expired application or protocol session is a separate state problem. The labels themselves are not established here as standardized MCP error strings, so use the HTTP response, logs, and the relevant MCP version—not the wording alone—to identify the cause.

What expires: access token, refresh token, or session?

These are related pieces of state, but they have different owners and recovery paths.

  • Access token: The bearer credential an HTTP MCP client sends to the server in the Authorization header on each request, including requests associated with the same logical application session.
  • Refresh token: A separate credential the client may use with the authorization server to obtain another access token. The MCP authorization specification says clients must not assume a refresh token will be issued; issuance is at the authorization server’s discretion.
  • Session state: Application or protocol state whose meaning and lifecycle depend on the client, server, and MCP version. A message that says “session expired” does not, by itself, identify which session state failed.

The MCP authorization specification for 2025-06-18 states: “Invalid or expired tokens MUST receive a HTTP 401 response.” That requirement is useful evidence when diagnosing authorization, but a product’s user-facing error label may not map cleanly to the HTTP status.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How to distinguish a token problem from a session problem

Diagnostic axis Token problem Session problem
State owner OAuth authorization server and client credential store MCP client or server, or the surrounding application, depending on implementation
Evidence to inspect Authorization header, HTTP status, authentication challenge, and token or refresh response Client/server lifecycle logs, connection state, and the implementation’s version-specific session mechanism
Typical action Refresh the access token if an accepted refresh token is available; otherwise authorize again Use the specific client/server’s documented session recovery or reconnect behavior
Version sensitivity Check the applicable OAuth and MCP authorization requirements for the transport and version High: MCP session mechanics changed in the release announced on 2026-07-28

This is a diagnostic framework, not a promise that every client exposes the same logs or controls.

#1 Best Overall
Yubico - Security Key C NFC - Basic Compatibility - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.

Diagnose the failure in order

  1. Establish transport and version. Determine whether the connection uses HTTP, STDIO, or another transport, and record the MCP specification version used by both ends. MCP authorization is intended for HTTP transports; the specification advises STDIO implementations to obtain credentials from the environment instead.
  2. Inspect the actual HTTP response. For an HTTP authorization failure, confirm whether the server returned 401 or 403 and capture the relevant WWW-Authenticate challenge. Do not log bearer credentials. Under the 2025-06-18 authorization specification, 401 indicates missing or invalid authorization, including an invalid or expired token; 403 indicates invalid scopes or insufficient permissions. Verify the target specification version before applying this version-specific guidance.
  3. Verify the access-token request path. Confirm that the client sends the intended bearer access token in the Authorization header on every HTTP request. Never put access tokens in query strings.
  4. Check refresh independently. If the client has a refresh token, check whether the authorization server accepts it and whether the client correctly stored any replacement token after rotation. Protect refresh tokens in transit and at rest. The 2026-07-28 authorization specification states: “MUST NOT assume refresh tokens will be issued; the AS retains discretion.”
  5. Inspect session state separately. Check the application’s own session expiration and connection state, then consult the lifecycle behavior for the MCP version in use. The MCP project’s 2026-07-28 release announcement says that release retires the former initialize/initialized exchange and the Mcp-Session-Id header. Do not assume that header is present in implementations based on that release.
  6. Choose recovery based on evidence. If the authorization server accepts a valid refresh token, the client may obtain a new access token. If the refresh token is expired or revoked—or was never issued—the user may need to authorize again. If the failure is in application or server-side session state, follow that implementation’s documented reconnect or recovery procedure; there is no universal reinitialization fix.

Why refresh can fail even when the user expects it to work

A refresh token is not simply a longer-lived access token, and refresh is not guaranteed recovery. The authorization server controls whether to issue one and whether to accept it later. Expiration, revocation, rotation, or non-issuance can leave the client needing a fresh authorization flow.

RFC 9700 treats refresh-token expiration and rotation as OAuth security concerns and says refresh tokens should expire after a period of inactivity. If a server rotates tokens, the client must persist the new token correctly; continuing to present an old token can cause refresh to fail. A refresh failure is evidence about the refresh-token path, not proof that an MCP protocol session expired.

Rank #2
Yubico - YubiKey 5C NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keep version changes in view

Older MCP implementations may use lifecycle mechanisms that are not safe to assume across versions. The MCP project’s 2026-07-28 release announcement describes retirement of the former initialization exchange and Mcp-Session-Id header. Meanwhile, the cited HTTP authorization status guidance is from the 2025-06-18 specification, and the refresh-token non-assumption is stated in the 2026-07-28 authorization specification. Match each rule to the versions and transport your client and server actually implement rather than treating “MCP session” as a timeless protocol feature.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
FIDO2 U2F Security Key Passkey Two-Factor Authentication (2FA) USB Key PIN+Touch (Non-Biometric) USB-A Type TrustKey T110
  • Security Key : Protect your online accounts against unauthorized access by using FIDO2 and U2F authentication with T110. It's the world's most protective security key that works with windows, Mac OS, Linux as well as Chrome, Firefox, Edge and many other major browsers.
  • Certified with the new FIDO2 standard, T110 provides the benefit of fast login and strong protection against phishing, account takeover as well as many other online attactks.
  • Works with : Bank of America, Github, Google, Microsoft, DUO, Twitter, Facebook, Dropbox, Apple, ebay, BINANCE, mor and more.
  • Fits USB-A port : Insert the T110 security key into the USB-A port of each service and log in conveniently with one touch
  • For the driver download and user guide, please visit TrustKey Solutions Home support page.
Rank #4
Yubico - Security Key NFC - Basic Compatibility - Multi-Factor Authentication (MFA) Key, Connect via USB-A or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key NFC via USB-A and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
Rank #3
Yubico - YubiKey 5 NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-A or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.