> ## 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.

# Salesforce MCP

> Connect AI tools to Salesforce via the Model Context Protocol (MCP)

## 🚀 Quickstart

Connect to the Salesforce hosted MCP server with Nango and call MCP tools in minutes. Salesforce does not support dynamic client registration, so you first register your own External Client App.

**1. Register your External Client App**

Follow [How to register your own Salesforce MCP OAuth app](https://nango.dev/docs/api-integrations/salesforce-mcp/how-to-register-your-own-salesforce-mcp-oauth-app.md) to get a client ID and client secret.

**2. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to **Integrations** -> *Configure New Integration* -> *Salesforce MCP*, then enter your client ID and client secret.

**3. Authorize Salesforce**

Go to **Connections** -> *Add Test Connection* -> *Authorize*, then log in to your Salesforce org. Later, you'll let your users do the same directly from your app.

**4. Initialize the Salesforce MCP connection**

Make your first MCP request (initialize handshake). Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), integration ID, and connection ID:

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/platform/mcp/v1/platform/sobject-all" \
>   -X POST \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "jsonrpc": "2.0",
>     "id": 1,
>     "method": "initialize",
>     "params": {
>         "protocolVersion": "2024-11-05",
>         "capabilities": {},
>         "clientInfo": {
>             "name": "nango-client",
>             "version": "1.0.0"
>         }
>     }
> }'
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.post({
>     endpoint: '/platform/mcp/v1/platform/sobject-all',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>',
>     data: {
>         jsonrpc: '2.0',
>         id: 1,
>         method: 'initialize',
>         params: {
>             protocolVersion: '2024-11-05',
>             capabilities: {},
>             clientInfo: {
>                 name: 'nango-client',
>                 version: '1.0.0'
>             }
>         }
>     }
> });
>
> console.log(res.data);
> ```

✅ You're connected! Check the **Logs** tab in Nango to inspect requests.

**5. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/auth/overview.md) to integrate Nango in your app.

## 📚 Salesforce MCP guides

Salesforce does not support dynamic client registration: an admin of the Salesforce org creates an External Client App, and you enter its client ID and client secret in the Nango integration. Nango requests the `mcp_api` and `refresh_token` scopes.

Each user signs in to their Salesforce org, so the MCP server acts with that user's permissions. Salesforce Hosted MCP Servers are intended only for customers with Flex Credits, and Salesforce may bill for server usage.

* [How to register your own Salesforce MCP OAuth app](https://nango.dev/docs/api-integrations/salesforce-mcp/how-to-register-your-own-salesforce-mcp-oauth-app.md)\
  Create an External Client App in Salesforce and connect it to Nango.

Official resources: [Salesforce Hosted MCP Servers](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/hosted-mcp-servers-overview), [Create an External Client App](https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/create-external-client-app)

## API gotchas

* This connection only reaches the hosted MCP server. To call Salesforce's REST APIs, use the `salesforce` integration, which connects with Salesforce OAuth 2.0.

***


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