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-alldoesn’t work. Usehttps://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 Type | Standard Format | My Domain Format |
|---|---|---|
| Production | https://api.salesforce.com/platform/mcp/v1/<SERVER-NAME> | https://api.salesforce.com/platform/mcp/v1/d/<MY-DOMAIN-NAME>/<SERVER-NAME> |
| Developer Edition | https://api.salesforce.com/platform/mcp/v1/<SERVER-NAME> | https://api.salesforce.com/platform/mcp/v1/d/<MY-DOMAIN-NAME>/develop/<SERVER-NAME> |
| Sandbox | https://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> |
| Scratch | https://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.
- From Setup, in the Quick Find box, enter My Domain, and then select My Domain.
- 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 Type | My Domain Name | Server URL |
|---|---|---|
| Production | Not used | https://api.salesforce.com/platform/mcp/v1/platform/sobject-all |
| Production | mycompany | https://api.salesforce.com/platform/mcp/v1/d/mycompany/platform/sobject-all |
| Developer Edition | mycompany-dev-ed | https://api.salesforce.com/platform/mcp/v1/d/mycompany-dev-ed/develop/platform/sobject-all |
| Sandbox | Not used | https://api.salesforce.com/platform/mcp/v1/sandbox/platform/sobject-all |
Sandbox (uat) | mycompany | https://api.salesforce.com/platform/mcp/v1/d/mycompany--uat/sandbox/platform/sobject-all |
| Scratch | mycompany-dev-ed | https://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.