Claude · Salesforce MCP

Claude connects to one Salesforce org fine. Add a second on the same MCP server and it says the URL already exists. The fix is free: put the org’s My Domain in the connector URL, and every org gets its own.

1 URL per orgwith My Domain after /d/
/sandbox/extra segment for sandboxes
$0no third-party tool needed
3‑minute videoThe full walkthrough
On this page
  1. The problem
  2. The URL format
  3. Production and sandbox
  4. Set up Salesforce
  5. Add the connector
  6. Still failing?
  7. Gotchas and FAQ
Watch on YouTube ↗
The problem

“A server with this URL already exists.”

You connected Claude to one org. Then you added a second org on the same MCP server, and Claude refused. It isn’t OAuth. It’s the URL.

Claude identifies a custom connector by its URL. The generic Salesforce hosted MCP URL for sobject-all is the same for every org, so the second connector looks like a duplicate of the first. You don’t need a paid third-party tool to fix that. Salesforce already supports an org-specific URL: put the org’s My Domain in it.

Claude Salesforce connector URL format for connecting multiple Salesforce orgs
One URL per org, and the duplicate error goes away.

Prefer to read? Everything in the video is written out below.

The fix

Use the org-specific URL.

My Domain after /d/, an environment segment if the org needs one, then the server name.

https://api.salesforce.com/platform/mcp/v1/d/{my_domain}/{environment-if-needed}/{full-server-name}
Org typeEnvironment segment
Production, trialNone
Sandbox/sandbox/
Developer, scratch/develop/, /scratch/

Salesforce’s URL reference ↗

Examples

Production and sandbox.

Same server, different orgs, different URLs.

Production or trial, My Domain salesforcemasterclass, server platform/sobject-all:

https://api.salesforce.com/platform/mcp/v1/d/salesforcemasterclass/platform/sobject-all

Sandbox called uat on the same org. The sandbox My Domain is the production one, two hyphens, then the sandbox name, and the URL gets /sandbox/ too:

https://api.salesforce.com/platform/mcp/v1/d/salesforcemasterclass--uat/sandbox/platform/sobject-all
Example Salesforce sandbox hosted MCP server URL for the Claude connector
Sandbox: the –uat suffix and the /sandbox/ segment.
Before Claude

Set up each org in Salesforce.

Every org you connect needs its own MCP server activated and its own External Client App.

  1. Setup → MCP Servers. Activate the server you want, e.g. sobject-all. That name is the last part of the URL.
  2. Setup → External Client App Manager. Create an app for Claude with the recommended OAuth scopes and callback URL from Salesforce’s hosted MCP docs.
  3. Copy that app’s consumer key and consumer secret.
Three-step setup for connecting Claude to a Salesforce org: activate the MCP server, create an External Client App, add the connector in Claude
Three steps per org.
In Claude

Add the custom connector.

Customize → Connectors → Add → Add custom connector.

  1. Name it after the org: FSC Trial Org, Client UAT. With several connectors, clear names save you.
  2. Paste the org-specific URL.
  3. Paste that org’s consumer key and secret, save, and authenticate.
Claude Desktop add custom connector form with name, URL and OAuth client fields
Name, org-specific URL, that org’s key and secret.
Still failing?

Run down this list.

  • MCP server activated in the target org
  • External Client App created in that same org, with the right scopes and callback URL
  • Consumer key and secret from that org, not another one
  • My Domain spelled correctly
  • Sandbox: both the --sandboxname suffix and /sandbox/
  • Server name at the end matches the one you activated

Once Claude can see your orgs, the source analysis Claude skill is a good first thing to point it at.

Gotchas

The questions people ask.

What’s the URL format?
https://api.salesforce.com/platform/mcp/v1/d/{my_domain}/{environment}/{server}. Leave the environment out for production and trial orgs.
Why “A server with this URL already exists”?
The new connector uses a URL Claude already has. Make it org-specific with My Domain.
Do production and trial orgs need an environment segment?
No. The URL goes straight from /d/{my_domain}/ to the server path.
How do I write a sandbox My Domain?
Production My Domain, two hyphens, sandbox name: salesforcemasterclass--uat. Plus /sandbox/ in the path.
Separate credentials per org?
Yes. Each org has its own External Client App, key and secret.
Data Migration Masterclass

Claude is the new admin tool.

The Masterclass community is where I share what’s working with Claude and Salesforce, from migrations to everyday admin.

Know someone connecting Claude to more than one org?

Share on LinkedIn