Skip to content

Salesforce Hosted MCP — "Authorization with the MCP server failed" on production Enterprise org #184

Description

@bbgit123

MCP server URL or name

https://api.salesforce.com/platform/mcp/v1/platform/sobject-reads

How are you connecting to this server?

From a custom connector URL I entered manually

Where does the issue occur?

When pressing the Connect button

When did you last reproduce this?

2026-04-16 2:00 PM EDT

Browser and OS

Arc 1.140.0 on Mac Taho 26.2

Describe the issue

Connecting Claude's custom MCP connector to a Salesforce Hosted MCP Server (sobject-reads) on a production Enterprise org. OAuth handshake completes successfully — Salesforce issues the token and OAuth Usage confirms connection — but Claude returns "Authorization with the MCP server failed" when attempting to use the token against the MCP endpoint.

This matches the pattern reported in #171 (sandbox org) but confirms the bug also affects production Enterprise orgs. Anthropic support acknowledged this as an Anthropic-side issue matching the pattern tracked in #171.

Steps to reproduce:

  1. Create Salesforce External Client App per official docs at https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/claude.html
  2. Configure callback URL as https://claude.ai/api/mcp/auth_callback (also tested with claude.com path added)
  3. Enable MCP Service on org; activate sobject-reads MCP server
  4. In Claude: Settings > Connectors > Add custom connector
  5. Paste server URL and Consumer Key in Advanced settings
  6. Click Connect, complete Salesforce OAuth, approve scopes
  7. Salesforce OAuth Usage confirms token issued
  8. Claude returns "Authorization with the MCP server failed" with ofid_ reference
    Also tested with URL https://api.salesforce.com/platform/mcp/v1-beta.2/platform/sobject-reads - same result.

Environment:

  • MCP Client: Claude (Web), paid plan
    • Org Type: Production, Enterprise Edition
      • Authentication: Authorization Code flow via Salesforce External Client App
        • Scopes granted: api, refresh_token (offline_access), sfap_api

Diagnostics performed:

  • PKCE disabled on External Client App
    • "Require secret for Web Server Flow" disabled
      • Permitted Users: "All users can self-authorize"
        • IP Relaxation: "Relax IP restrictions"
          • Callback URL includes both claude.ai and claude.com paths
            • Enable Authorization Code and Credentials Flow: checked
              • Tested in incognito mode
                • Deleted and recreated Claude connector multiple times
                  • Tested both v1 and v1-beta.2 URL paths

Error details

Authorization with the MCP server failed. You can check your credentials and permissions. If this persists, share this reference with support: ofid_ecd71870d1963316

Expected behavior

Claude connector should successfully connect to the Salesforce Hosted MCP server after OAuth completes, allowing use of the sobject-reads tools.

Additional context

Related issues tracking the same pattern:

Anthropic support confirmed this is an Anthropic-side issue being tracked in #171.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions