Skip to content

[Auth/Connect]: Claude custom connector can't connect to Salesforce Sandbox. #12

Description

@paulmcnamara-futu

MCP client

Claude (Web)

If "Other", which client?

No response

Client version

No response

Authentication flow attempted

Authorization Code (browser)

OAuth scopes granted

api sfap_api refresh_token einstein_gpt_api

Org Type

Sandbox

Network environment

  • Corporate proxy or egress filtering may apply
  • VPN in use
  • mTLS or custom CA certs involved
  • None of the above

Endpoint configuration

https://api.salesforce.com/platform/mcp/v1-beta.2/sandbox/platform/sobject-all
https://api.salesforce.com/platform/mcp/v1-beta.2/sobjects

Token acquisition steps

Error messages

https://claude.ai/settings/connectors?&server=9de4c397-c7ef-4cbd-8dfa-481c22d703bf&step=end_error&oauth_error=unsupported_grant_type&oauth_error_description=grant%20type%20not%20supported

I have already checked the following common causes

  • Incorrect audience / resource / scope parameters
  • Using a Connected App instead of External Client App
  • Token issued for wrong environment (e.g., login vs test domain)
  • Proxy stripping auth headers
  • mTLS handshake failures (cert chain/hostnames)
  • Mis-typed server URL or path

What I’ve tried

After initially getting this working in a developer environment, I then tried to get the Claude AI working with a Salesforce sandbox environment. I was able to get it working with a local client but using the remote salesforce mcp server connection didn't work. Tried changing scopes, changing networks, used different users, using different solutions proposed by Claude but nothing on the server side has worked.
Tried different endpoints but it made no difference.
https://api.salesforce.com/platform/mcp/v1-beta.2/sandbox/platform/sobject-all
https://api.salesforce.com/platform/mcp/v1-beta.2/sobjects

Attachments

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions