Debug OAuth 2.1 for MCP servers
Use the MCP OAuth Debugger to walk through the OAuth 2.1 authorization flow step by step. The debugger surfaces every request, response, and discovered metadata payload so you can identify which phase of the OAuth handshake is failing.
The OAuth Debugger tab appears in the response pane when your MCP request uses OAuth 2.0 authorization, or when the server returns a 401 Unauthorized response after a connection attempt.
The OAuth Debugger only opens after you click Connect.
Debug an OAuth 2.1 connection
Use the OAuth Debugger to step through each phase of the OAuth 2.1 handshake and identify where the connection is failing.
To debug an OAuth 2.1 connection, do the following:
-
Choose an existing streamable HTTP MCP request or create a new one.
-
Click Connect. If the server requires OAuth, Postman opens the OAuth Debugger tab in the response pane.
-
Review the first step, Send request without token. This step sends an unauthenticated request to the server so Postman can observe the OAuth challenge it returns.
Each step displays the following:
- The HTTP method and URL.
- Request and response headers.
- Request and response body.
- The HTTP status code.
-
Click Continue to advance to the next phase:
Steps display a status indicator: running while in progress, passed on success, or failed if an error occurs. A failed step means that phase is where the OAuth handshake is breaking down.
-
To re-run the flow from the beginning, click Restart.
Review OAuth server configuration
After Postman fetches authorization server metadata, you can go to the OAuth Config section in the OAuth Debugger tab to review the server’s discovered configuration.
The OAuth Config section includes the following:
-
Endpoints — The issuer URL, authorization endpoint, token endpoint, dynamic client registration endpoint, and protected resource endpoint. Click
Copy next to any endpoint to copy it to your clipboard.
-
Capabilities — Whether the server supports PKCE with S256, dynamic client registration, and the client ID metadata document.
-
Supported values — The grant types, response types, code challenge methods, and token endpoint authentication methods the server advertises.
Client secrets discovered during dynamic client registration are redacted in the debugger trace. They’re stored securely and used for subsequent token requests, but aren’t displayed.