> For the complete documentation index, see [llms.txt](https://help.sdocs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sdocs.com/sdocs/automation-and-document-lifecycle/configure-s-docs-for-mcp/set-up-salesforce-hosted-mcps/create-an-external-client-app.md).

# Create an External Client App

To integrate third-party applications with your Salesforce org via APIs and security controls, you must use an External Client App for registration and enablement.

{% hint style="info" %}
Use an External Client App to connect an MCP client to a Salesforce org.

**Connected Apps are not supported.**
{% endhint %}

{% hint style="warning" %}
You can’t create External Client Apps directly in scratch orgs using the Setup UI. To test in a scratch org, create the External Client App in a developer hub org, add it to a package, and install the package in the target scratch org.
{% endhint %}

#### Steps to Create an External Client App

1. From Setup, in the Quick Find box, enter **external client**, and then select **External Client App Manager**.
2. Click **New External Client App**.
3. Fill out the **Basic Information** section.
4. Expand the section labeled **API (Enable OAuth Settings)** and click the **Enable OAuth** checkbox.
5. In **Callback URL**, enter the applicable URL based on your MCP client:

**Example:**

```
https://claude.ai/api/mcp/auth_callback
```

{% hint style="info" %}
For additional Callback URL examples, please reference Salesforce documentation for [**Steps to Create an External Client App.**](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/create-external-client-app.html#steps-to-create-an-external-client-app)
{% endhint %}

6. In **OAuth Scopes**, include the following:
   * Access MCP servers (`mcp_api`)
   * Perform requests at any time (`refresh_token`)

<figure><img src="https://1548664070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWKNnJmhJBQwhdk5WBFsi%2Fuploads%2Fgit-blob-e02131191b96fad1d11491dc10aaa9636248ff02%2FScreenshot%202026-10-01%20at%2011.13.09%E2%80%AFAM.png?alt=media" alt=""><figcaption></figcaption></figure>

6. Under **Security**:
   * Select **Issue JSON Web Token (JWT)-based access tokens for named users**.
   * Deselect all other options that don’t require contacting Salesforce customer support to change.

<figure><img src="https://1548664070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWKNnJmhJBQwhdk5WBFsi%2Fuploads%2Fgit-blob-d93c3331e43e03709e737da3df0a12f828851b54%2FScreenshot%202026-10-01%20at%2011.13.59%E2%80%AFAM.png?alt=media" alt=""><figcaption></figcaption></figure>

6. Click **Create.**

{% hint style="info" %}
Ensure that the *App Status* is **Enabled.**

**Note:** The External Client App can take up to 30 minutes to become available and operational for use with your MCP client. (The delay is similar to registering a new domain with DNS.)
{% endhint %}

8. Click **Settings**, then click **Consumer Key and Secret** under OAuth Settings to get the consumer key. Store the consumer key for later use.

<figure><img src="https://1548664070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWKNnJmhJBQwhdk5WBFsi%2Fuploads%2Fgit-blob-dd15f4d1312266d9c65bcb979243035f2b124d7a%2FScreenshot%202026-10-01%20at%2011.42.51%E2%80%AFAM.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Before deploying your MCP integration to production, consider implementing additional security measures. Each enhancement in the article linked below is independent and can be applied based on your organization’s security requirements:

[**Enhance Security for Production**](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/create-external-client-app.html#enhance-security-for-production)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.sdocs.com/sdocs/automation-and-document-lifecycle/configure-s-docs-for-mcp/set-up-salesforce-hosted-mcps/create-an-external-client-app.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
