> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to register your own Salesforce MCP OAuth app

> Create a Salesforce External Client App for the hosted MCP server and connect it to Nango

This guide shows you how to create a Salesforce External Client App to get the client ID and client secret Nango needs for the Salesforce hosted MCP server. Salesforce does not support dynamic client registration, and Connected Apps aren't supported, so an admin of the Salesforce org creates the app.

**1. Create an account**

If you don't already have one, sign up for a free [Salesforce Developer Edition org](https://developer.salesforce.com/signup). Open the welcome email, set a password and security question, and you are signed in to the org.

**2. Activate the MCP server**

In **Setup**, open the **MCP Servers** page and activate **SObject All** (`platform/sobject-all`), the server this integration connects to. Salesforce Hosted MCP Servers are intended only for customers with Flex Credits, and Salesforce may bill for server usage.

**3. Create an External Client App**

In **Setup**, open **Apps** > **External Client Apps** > **External Client App Manager** and click **New External Client App**.

![External Client App Manager in Salesforce Setup with the New External Client App button](https://mintcdn.com/nango/tftbh7OCopA0PyV7/api-integrations/salesforce-mcp/external_client_app_manager.png?fit=max\&auto=format\&n=tftbh7OCopA0PyV7\&q=85\&s=58a248d4fb6bcabf939283d321ceb846)

**4. Configure OAuth settings**

1. Under **API (Enable OAuth Settings)**, check **Enable OAuth**.
2. Enter `https://api.nango.dev/oauth/callback` as the **Callback URL**.
3. Add the `mcp_api` and `refresh_token` OAuth scopes.
4. Leave PKCE enabled: Salesforce requires it for this app, and Nango sends it.

![API (Enable OAuth Settings) section with Enable OAuth checked and the Nango callback URL entered](https://mintcdn.com/nango/tftbh7OCopA0PyV7/api-integrations/salesforce-mcp/enable_oauth_callback_url.png?fit=max\&auto=format\&n=tftbh7OCopA0PyV7\&q=85\&s=df93619d7a64b1264ecaff67abbb8d1d)

The External Client App can take up to 30 minutes to become available.

**5. Copy the consumer key and secret**

1. On the app's **Settings** tab, expand **OAuth Settings** and click **Consumer Key and Secret**.
2. Enter the verification code Salesforce emails you.
3. Copy the **Consumer Key** (client ID) and **Consumer Secret** (client secret).

![OAuth Settings on the app's Settings tab with the Consumer Key and Secret button](https://mintcdn.com/nango/tftbh7OCopA0PyV7/api-integrations/salesforce-mcp/consumer_key_and_secret.png?fit=max\&auto=format\&n=tftbh7OCopA0PyV7\&q=85\&s=35fdcdf36195aa5c88d128cdb9621086)

![Consumer details page showing the Consumer Key and Consumer Secret with copy buttons](https://mintcdn.com/nango/tftbh7OCopA0PyV7/api-integrations/salesforce-mcp/consumer_details_copy.png?fit=max\&auto=format\&n=tftbh7OCopA0PyV7\&q=85\&s=dc907ee54bb56aedb9e00d2f410069b6)

**6. Next**

Enter the **Consumer Key** as the client ID and the **Consumer Secret** as the client secret in the integration settings in Nango, then follow the [*Quickstart*](https://nango.dev/docs/getting-started/quickstart.md) to connect your first account.

For more details, see [Create an External Client App](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/create-external-client-app).

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.