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

# Salesforce

> Let Ask Siro look up and update Salesforce records.

Salesforce hosts its own MCP servers. To connect one, a Salesforce admin creates an **External Client App** in your org, and a Siro admin adds its credentials to Siro. This is separate from Siro's [Salesforce CRM integration](https://docs.siro.ai/Integrations/Salesforce.md), which syncs data into Siro.

## 1. Choose an MCP server

Salesforce offers several MCP servers. Siro connects to one of them, so choose based on whether Ask Siro should have write access.

| Server | What Ask Siro can do | Use it when |
| - | - | - |
| `sobject-reads` | **Read only.** Look up and search any record the person can see. | Ask Siro should never change Salesforce data. |
| `sobject-all` | **Read and write.** Everything `sobject-reads` does, plus create, update and delete records. Ask Siro asks the person to confirm before every change. | People should be able to update Salesforce from Ask Siro. |

Then turn the server on:

1. In Setup, open **MCP Servers** (Quick Find: `MCP Servers`).
2. Find the server you chose and click **Activate**. New orgs often have only `salesforce-api-context` active.
3. Copy the server's **URL**. It looks like `https://api.salesforce.com/platform/mcp/v1/platform/sobject-all`. Sandbox and scratch org URLs can include your My Domain in the path; copy the URL exactly as shown.

## 2. Create the External Client App in Salesforce

1. In Setup, open **External Client App Manager** (Quick Find: `External Client App Manager`) and click **New External Client App**.
2. Enter a name, for example **Siro**, and a contact email. Leave **Distribution State** as **Local**.
3. Under **API (Enable OAuth Settings)**, check **Enable OAuth**.
4. In **Callback URL**, paste the **redirect URL** shown in Siro's **Add app** form.
5. Under **OAuth Scopes**, add both:
   * **Access Salesforce hosted MCP servers (mcp\_api)**
   * **Perform requests at any time (refresh\_token, offline\_access)**
6. Under **Security**, check **Issue JSON Web Token (JWT)-based access tokens for named users**. Without it, sign-in succeeds but Salesforce rejects every request from Ask Siro.
7. Click **Create**.
8. Open the app's **Settings** tab, expand **OAuth Settings**, and click **Consumer Key and Secret**. Salesforce sends you a verification code first. Copy the **Consumer Key** and **Consumer Secret**.

A new External Client App can take up to 30 minutes to start working.

## 3. Find your Org ID

In Setup, open **Company Information** (Quick Find: `Company Information`) and copy the **Salesforce.com Organization ID**. It starts with `00D`. Siro accepts the 15- or 18-character form.

## 4. Add Salesforce in Siro

1. Go to **Integrations → MCP connections → Add app** and choose **Salesforce**.
2. Enter the **Consumer Key** as the **Client ID** and the **Consumer Secret** as the **Client secret**.
3. Enter the **MCP server URL** from step 1.
4. Enter the **Org ID** from step 3. Siro only accepts connections to this org, so nobody can connect a sandbox or another org by mistake.
5. Connect your own account under **Settings → Connected apps** to verify your connection is working.

To switch servers later, for example from `sobject-reads` to `sobject-all`, remove the app and add it again with the new URL. Removing the app disconnects everyone, so each person connects again afterward.

## 5. Each person connects

Each person connects their own Salesforce account under **Settings → Connected apps**, or from the Connect button Ask Siro shows in the chat. Ask Siro can see and change only what that person's Salesforce permissions allow.

Before the Salesforce sign-in, a page asks for an optional **domain**:

* **Production orgs that use the standard login page:** leave it empty.
* **Sandboxes, scratch orgs, and orgs that block `login.salesforce.com`:** enter your **My Domain** host, for example `yourcompany.my.salesforce.com`. Find it in Setup → **My Domain** (Quick Find: `My Domain`) under **Current My Domain URL**.

See Salesforce's guide, [Create an External Client App for hosted MCP servers](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/create-external-client-app.html), for details.


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