You are here:
Enable CRM Analytics MCP Server (Beta)
Create an external client app (ECA), enable CRM Analytics MCP server in Setup, and connect your MCP client to query CRM Analytics data through AI assistants.
Required Editions
| Available in Lightning Experience. |
| Available with CRM Analytics, which is available for an extra cost in Enterprise, Performance, and Unlimited Editions. |
| User Permissions Needed | |
|---|---|
| To create an ECA and enable the server: | System Administrator |
| To view analytics assets and query data: | Use CRM Analytics |
Before you start, make sure that you have a supported MCP client: Claude (Desktop, Web, or Code), Cursor, ChatGPT (developer mode), Agentforce Vibes 2.0, or another client. Your client must support OAuth 2.0 Authorization Code with Proof Key for Code Exchange (PKCE).
MCP servers are off by default. Complete the steps to get started with Salesforce hosted MCPs.
To connect your AI assistant to CRM Analytics, create an ECA and turn on the server in Salesforce. Then log in to the target org and complete OAuth in your MCP client.
-
Create an ECA that uses OAuth 2.0 Authorization Code with PKCE.
CRM Analytics MCP server authenticates using the ECA. See Create an External Client App, and use the callback URL for your MCP client. Examples include
https://claude.ai/api/mcp/auth_callbackfor Claude andcursor://anysphere.cursor-mcp/oauth/callbackfor Cursor. - From Setup, in the Quick Find box, enter MCP Servers, and then select MCP Servers under API Catalog.
- Turn on CRM Analytics MCP Server.
-
Sign out of all other Salesforce orgs. In your default browser, log in to the org
with your ECA, and leave the browser open.
Your MCP client opens a new tab during authentication. Signing in to the correct org first helps prevent the multitenant conflicts that cause most connection failures.
-
Add CRM Analytics MCP server to your MCP client by using the server URL for your org
type, and complete the OAuth flow when the client opens a browser tab.
- Production:
https://api.salesforce.com/platform/mcp/v1/analytics/crma-beta - Sandbox or scratch org:
https://api.salesforce.com/platform/mcp/v1/sandbox/analytics/crma-beta
Each user authenticates individually. CRM Analytics MCP server doesn't support service account patterns. For client-specific connection instructions, see Configure Your MCP Client.
- Production:
Confirm the connection by asking a discovery prompt in your AI client.
Sample prompt: What analytics apps do I have access to?
Expected result: The AI client returns the folders (apps) that you can access by
using list_folders.
For more first-session prompts, see CRM Analytics MCP server Troubleshooting and Tips. If the client can't connect or no tools appear, see the same topic.
