Find Your Server URL

Each MCP client connects to a Salesforce Hosted MCP Server through a server URL. The URL format depends on your org type and on whether you connect through your org’s My Domain.

A server URL has three parts: the base URL, an org-type segment, and the server name.

The server name always includes its prefix:

  • Standard servers use the platform/ prefix, for example, platform/sobject-all.
  • Custom servers use the custom/ prefix, for example, custom/myserver.

Note: Don’t drop the prefix. A URL such as https://api.salesforce.com/platform/mcp/v1/sobject-all doesn’t work. Use https://api.salesforce.com/platform/mcp/v1/platform/sobject-all.

For the server names that are available in your org, see the Standard Servers reference and Build Custom MCP Servers.

For convenience, you can use the standard format. If your org blocks logins from login.salesforce.com or test.salesforce.com, use the My Domain URL format instead.

Org TypeStandard FormatMy Domain Format
Productionhttps://api.salesforce.com/platform/mcp/v1/<SERVER-NAME>https://api.salesforce.com/platform/mcp/v1/d/<MY-DOMAIN-NAME>/<SERVER-NAME>
Developer Editionhttps://api.salesforce.com/platform/mcp/v1/<SERVER-NAME>https://api.salesforce.com/platform/mcp/v1/d/<MY-DOMAIN-NAME>/develop/<SERVER-NAME>
Sandboxhttps://api.salesforce.com/platform/mcp/v1/sandbox/<SERVER-NAME>https://api.salesforce.com/platform/mcp/v1/d/<MY-DOMAIN-NAME>--<SANDBOX-NAME>/sandbox/<SERVER-NAME>
Scratchhttps://api.salesforce.com/platform/mcp/v1/sandbox/<SERVER-NAME>https://api.salesforce.com/platform/mcp/v1/d/<MY-DOMAIN-NAME>/scratch/<SERVER-NAME>

The My Domain format always includes /d/ before your My Domain name.

  1. From Setup, in the Quick Find box, enter My Domain, and then select My Domain.
  2. Copy the value in My Domain Name.

In a sandbox, My Domain Name shows only your My Domain name, such as mycompany. In the server URL, add two hyphens and the sandbox name after it, for example, mycompany--uat.

These examples use the platform/sobject-all server.

Org TypeMy Domain NameServer URL
ProductionNot usedhttps://api.salesforce.com/platform/mcp/v1/platform/sobject-all
Productionmycompanyhttps://api.salesforce.com/platform/mcp/v1/d/mycompany/platform/sobject-all
Developer Editionmycompany-dev-edhttps://api.salesforce.com/platform/mcp/v1/d/mycompany-dev-ed/develop/platform/sobject-all
SandboxNot usedhttps://api.salesforce.com/platform/mcp/v1/sandbox/platform/sobject-all
Sandbox (uat)mycompanyhttps://api.salesforce.com/platform/mcp/v1/d/mycompany--uat/sandbox/platform/sobject-all
Scratchmycompany-dev-edhttps://api.salesforce.com/platform/mcp/v1/d/mycompany-dev-ed/scratch/platform/sobject-all

Add the server URL to your MCP client. See Connecting an MCP Client.