Quick Answer
When a Salesforce MCP server completes the OAuth login and then fails with an authorization error, the most common root cause is one unchecked box in the External Client App: "Issue JSON Web Token (JWT)-based access tokens for named users." Salesforce's hosted MCP servers require an External Client App — Connected Apps are not supported — configured with your MCP client's exact callback URL (for Claude, https://claude.ai/api/mcp/auth_callback), the mcp_api and refresh_token scopes, and the named-user JWT security setting enabled. After any change, allow up to 30 minutes for the app to become operational before retesting. This guide gives the full correct configuration and the troubleshooting order that isolates Salesforce-side versus client-side failures — the same checklist Vantage Point uses when connecting Claude to client Salesforce orgs.
Key Takeaways (TL;DR)
- The error: OAuth consent completes, then MCP authorization fails — the token leg of the handshake, not the login, is what's breaking.
- The usual fix: enable "Issue JSON Web Token (JWT)-based access tokens for named users" in the External Client App's Security section.
- The prerequisite: hosted MCP requires an External Client App; Connected Apps are not supported for MCP clients.
- The patience requirement: a new or edited External Client App can take up to 30 minutes to propagate — retesting immediately produces misleading failures.
- How Vantage Point helps: dual Salesforce and Claude partnership means one team owns both ends of the connection.
Of all the failure modes in a Salesforce–Claude rollout, this one is the most misleading. The user clicks through the OAuth screen, approves access, watches the login succeed — and then the connector reports that authorization failed. Teams burn hours re-checking usernames, passwords, and SSO, because every signal says the login worked. It did. The failure is in what happens next.
Understanding that distinction is what makes this a ten-minute fix instead of a multi-week support ticket.
Why Does Authorization Fail After a Successful OAuth Login?
The MCP connection handshake has two separate legs. First, OAuth authentication: the user proves who they are and consents to the connection. Second, token issuance for the MCP session: Salesforce mints the access token the MCP client will actually use, scoped to that named user.
The classic failure sits in the second leg. Salesforce's hosted MCP setup guide requires the External Client App's Security section to have "Issue JSON Web Token (JWT)-based access tokens for named users" selected — and all other options that don't require Salesforce support to change deselected. When that box is unchecked, OAuth completes perfectly and the authorization callback then fails, because the token format the hosted MCP server expects was never enabled.
Support engineers may first check whether PKCE (Proof Key for Code Exchange) is required on the app — a reasonable guess for OAuth callback failures generally. But for the hosted MCP server specifically, the named-user JWT setting is the documented requirement and the first place to look.
What Does the Correct External Client App Configuration Look Like?
Salesforce's hosted MCP documentation is explicit: use an External Client App, not a Connected App — Connected Apps aren't supported for MCP clients. The correct configuration:
- From Setup, open External Client App Manager and click New External Client App.
- Complete Basic Information, then expand API (Enable OAuth Settings) and check Enable OAuth.
- Set the Callback URL for your MCP client. For Claude, that's
https://claude.ai/api/mcp/auth_callback. (Postman and Cursor use their own documented callbacks; some clients accept multiple.) - Under OAuth Scopes, include exactly what's needed:
Access MCP servers (mcp_api)andPerform requests at any time (refresh_token). - Under Security, select Issue JSON Web Token (JWT)-based access tokens for named users and deselect other options that don't require Salesforce support to change.
- Click Create — then wait. The app can take up to 30 minutes to become available and operational, similar to DNS propagation. Retesting inside that window produces false failures.
- From Settings, retrieve the Consumer Key for the client configuration.
Miss any one of these — wrong app type, a callback URL that doesn't match character-for-character, a missing scope, the JWT setting — and the failure surfaces only at authorization time, after the login appears to succeed.
If It Still Fails: A Five-Step Troubleshooting Order
When the configuration looks right and authorization still fails, work Salesforce's documented connection-failure sequence in order:
| Step | Check | What it tells you |
|---|---|---|
| 1 | Verify the server URL format — sandbox and scratch orgs use .../mcp/v1/sandbox/...; production orgs omit it |
A URL built for the wrong org type fails no matter how good the OAuth app is |
| 2 | Confirm the MCP server is activated in the Salesforce UI | Created-but-not-activated servers reject connections |
| 3 | Test a known server — connect to sobject-all |
If the known server works, your server name or configuration is wrong; if it also fails, the problem is deeper |
| 4 | Check org API eligibility — the edition must support API access | Professional edition without API access enabled can't host MCP connections |
| 5 | Isolate client-side issues — test with Postman or MCP Inspector from the same machine | If those succeed, the failure is specific to the MCP client's own settings — e.g., the connector isn't enabled for users in the client's admin panel |
That last step matters more than it looks. When OAuth succeeds in a test tool but fails in Claude, the remaining suspects live on the client side: whether the custom connector was added at the organization level, whether an admin has made it available to the user, and whether the user is authenticating into the correct org. Splitting "Salesforce's half" from "the client's half" with a neutral test tool is how you avoid two vendors each blaming the other.
What Security Hardening Belongs in Production?
Once the connection works in a sandbox, the same External Client App offers production-grade controls worth enabling deliberately:
- Require a client secret for web-based clients where the secret can be stored server-side.
- Restrict access with a permission set via OAuth Policies, so only pre-authorized users can authenticate through the app.
- Shorten the refresh token lifecycle — 30 days or less, with rotation enabled — so a compromised token expires quickly.
- Enable single logout so revoking a Salesforce session kills the MCP session too — important for offboarding.
The reassuring part of the architecture: the hosted MCP server respects the org's existing security model. Sharing rules, role hierarchy, and field-level security all apply — access is dynamically scoped to whichever user authenticated. A well-governed org's controls carry straight through.
What Should Teams Do Next?
If you're mid-failure right now: open the External Client App, check the named-user JWT setting, correct the callback URL and scopes if needed, wait 30 minutes, and retest before touching anything else. If you're planning a rollout: build the External Client App in a sandbox first, validate against a known server, harden the OAuth policies, and only then replicate to production. The setup is declarative and genuinely quick — the failures come from skipping one checkbox in a guide nobody reads until something breaks.
How Vantage Point Helps
Vantage Point implements Salesforce's hosted MCP connectivity as part of its Salesforce practice and its work as a Claude Partner Network member — including the Claude-side configuration where client admin settings matter just as much. Senior consultants only — no junior handoffs; the experts you meet are the experts who deliver. For the broader architecture picture, see the companion piece on how MCP connects Claude to your CRM, and for complex multi-system work, the firm's integration services cover the patterns beyond a single connector.
Stuck on a Salesforce–Claude connection?
A working session with a senior consultant can validate your External Client App, walk the troubleshooting order, and get the connector authorized — usually in a single call.
Frequently Asked Questions
Can I use a Connected App instead of an External Client App for Salesforce MCP?
No. Salesforce's hosted MCP documentation states that Connected Apps aren't supported for MCP clients. You must register the client through an External Client App from the External Client App Manager in Setup.
What callback URL does Claude need for a Salesforce MCP connection?
Enter https://claude.ai/api/mcp/auth_callback as the callback URL in the External Client App's OAuth settings. Other clients use their own documented callbacks — Postman uses its oauth.pstmn.io URLs, and Cursor uses a localhost callback.
Which OAuth scopes does the Salesforce MCP server require?
Two: "Access MCP servers" (mcp_api) and "Perform requests at any time" (refresh_token). Adding broader scopes isn't necessary for the connection and widens the token's reach beyond what the MCP server uses.
How long does a new External Client App take to work?
Up to 30 minutes. Salesforce compares the delay to DNS propagation. Authorization attempts during that window can fail even with a perfect configuration, so wait before concluding something is wrong.
OAuth works in Postman but fails in my MCP client — why?
That pattern isolates the problem to the client side. Check whether the custom connector was added at the organization level in the client's admin panel, whether it's enabled for your user, and whether the callback URL in the External Client App matches the client's exact current value.
Does the Salesforce MCP server respect my org's sharing rules?
Yes. Access through the hosted MCP server is dynamically scoped to the authenticated user, so sharing rules, role hierarchy, and field-level security all apply exactly as they do in the UI.
Sources
- Salesforce Developers — Create an External Client App (Hosted MCP Servers)
- Salesforce Developers — Server Connection Failures
- Salesforce Developers — Authentication Issues
Vantage Point is a boutique CRM consulting firm helping businesses transform with Salesforce, HubSpot, and AI — 150+ clients, 400+ engagements, and a 4.71/5 average engagement rating. Learn more at vantagepoint.io.
