Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect to Claude

Connecting Claude to a Salesforce Hosted Model Context Protocol (MCP) server allows your AI assistant to interact with Salesforce logic and assets. These instructions apply to Claude.ai and the Claude Desktop app.

Claude Code automatically inherits this connection. Once you add the connector, it becomes available to Claude Code without additional configuration.

Prerequisites

Before starting, ensure you have:


Step-by-step Setup Instructions

  1. In the left sidebar of Claude, click Customize.

  2. Click Connectors, then click Add and select Add custom connector.

  3. In the connector name field, enter a name for the connector.

This will be the name appears in your connectors list.

  1. Enter the server URL, substituting <SERVER-NAME> with your specific server name:

Production orgs: https://api.salesforce.com/platform/mcp/v1/<SERVER-NAME>

Sandbox or scratch orgs: https://api.salesforce.com/platform/mcp/v1/sandbox/<SERVER-NAME>

Example:

To use the platform/sobject-all server in a sandbox org, enter:

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

  1. Click Continue.

  2. Under OAuth client, select Use your own OAuth client.

  3. In the OAuth Client ID field, paste the consumer key from your External Client App.

If you did not save the consumer key from the configuration step, navigate to the ECA Settings to copy the key:

• Enter the public identifier from your app's OAuth settings — do not use an API key or token.

• Leave OAuth Client Secret blank unless your authorization server explicitly requires one.

  1. Next to your newly created connector, click Connect.

Claude redirects to the Salesforce org containing your External Client App. If you are already logged in, the user challenge is skipped, obtaining an access token and sending it back to Claude.

Configuring tool permissions (optional)

Once authentication completes successfully, click Configure next to the connector to adjust permission settings for the available tools on your selected MCP server.

Testing the connection

To test the client connection to the MCP server, submit a natural language request through Claude’s chat interface and verify that it returns the expected response.

Last updated

Was this helpful?