1. Build the MCP server (optional)
Skip this step if you’re using a standard server likesobject-all.
If the standard servers give more or less than you want, you can curate your own instead — combining tools from multiple standard servers, or adding tools backed by your own Apex, Flows, or APIs.
- Go to Setup → Quick Find → API Catalog → MCP Servers.
- Click Create Salesforce MCP Server.
- Enter a unique label, name, and description → Create.
- Make sure the server is deactivated, then click Add Server Assets → Add Tools to map in Apex actions, Apex REST/AuraEnabled APIs, Flows, Named Query APIs, or Agentforce agents.
2. Enable the hosted MCP server (Salesforce)
Servers are off by default; an admin turns them on.- Go to Setup → Quick Find → MCP Servers (under API Catalog) → open Salesforce Servers (or your custom server from step 1).
- Toggle on the server(s) you need. Common standard ones:
sobject-all— full read/write/query across standard and custom objects (still bound by the user’s FLS, object perms, and sharing rules).salesforce-api-context— object metadata / API context.metadata-experts— metadata generation (Beta).
3. Create the External Client App (Salesforce)
- Go to Setup → Quick Find → External Client App Manager → New External Client App.
- Fill in Basic Information, expand API (Enable OAuth Settings), check Enable OAuth.
- Set the Callback URL:
- Under Selected OAuth Scopes, add only:
- Access MCP servers (
mcp_api) - Perform requests at any time (
refresh_token)
- Access MCP servers (
- Check:
- Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows
- Issue JSON Web Token (JWT)-based access tokens for named users
- Leave unchecked:
- Enable Authorization Code and Credentials Flow
- Enable Client Credentials Flow
- Require Secret for Web Server Flow
- Require Secret for Refresh Token Flow
- Save.
4. Copy two values
- Consumer Key — the app → Settings → OAuth Settings → Consumer Key and Secret (enter the emailed verification code).
- MCP server URL — from the MCP Servers connection details.
5. Connect from Dovetail
- In an agent, go to External tools → Salesforce → Connect (or use the connector picker in chat).
- Paste the MCP server URL and Consumer Key.
- Approve the Salesforce popup.
- Toggle Salesforce on per agent.