Set Up the MCP Server
Marketing Cloud Engagement includes a hosted Model Context Protocol (MCP) server. By connecting to this MCP server, your AI assistants can help you manage customer data, orchestrate campaigns, and coordinate data transfers between systems.
Before you complete these steps, install and configure an AI assistant that supports MCP, such as Claude Code or Gemini CLI.
To use the MCP server, create a managed package in Marketing Cloud Engagement, and then connect your AI assistant to the server.
-
In Marketing Cloud Engagement Setup, go to Apps, and then select Installed Packages.
-
Create an installed package:
- Click New.
- Enter a name for the package.
- Save your changes.
-
Create an API component:
-
On the detail page for the package you created, click Add Component.
-
For the component type, select API Integration.
-
Click Next.
-
For the integration type, select Public App.
-
Click Next.
-
In the Redirect URIs section, for URIs, enter
https://salesforce.com.The address that you enter in this field is a temporary placeholder. You change it in a later step.
-
In the Scope section, select the permission scopes to grant the MCP server connection.
Assign only the permission scopes that are necessary for the AI assistant to complete the tasks you assign it. See API Integration Permission Scopes.
For example, if you want the assistant to create and modify data extensions, assign it the Data | Data Extensions | Read and Data | Data Extensions | Write permission scopes.
-
-
On the detail page for the installed package, find your client ID and tenant ID.
The client ID is a 24-character alphanumeric string.
The tenant ID is a 28-character alphanumeric string that’s part of the authentication and API URIs. For example, if your Authentication Base URI is
https://mcphchq9d5b8mlzeyc2v1example.auth.marketingcloudapis.com/, your tenant ID ismcphchq9d5b8mlzeyc2v1example. -
In the API Integration section, click Edit.
-
In the Redirect URIs section, for URI, enter a redirect URL. Choose from these options:
-
To use the MCP server hosted in the United States, specify
https://mai-mce-mcp-cdp1.sfdc-yfeipo.svc.sfdcfc.net/t/{tenantId}/c/{clientId}/api/mcp/oauth/callback -
To use the MCP server hosted in the European Union, specify
https://mai-mce-mcp-cdp1.sfdc-yzvdd4.svc.sfdcfc.net/t/{tenantId}/c/{clientId}/api/mcp/oauth/callbackIn these URLs, replace
{tenantId}with your tenant ID and{clientId}with your client ID.Select the MCP server that’s located nearest to your location. The MCP server that you select only impacts the latency of your connection to it. The MCP servers don’t store any data that they access.
-
-
Configure your AI assistant to use the MCP server. Choose from these URLs:
- To use the MCP server hosted in the United States, use
https://mai-mce-mcp-cdp1.sfdc-yfeipo.svc.sfdcfc.net/t/{tenantID}/c/{clientID}/api/mcp - To use the MCP server hosted in the European Union, use
https://mai-mce-mcp-cdp1.sfdc-yzvdd4.svc.sfdcfc.net/t/{tenantID}/c/{clientID}/api/mcp
In these URLs, replace
{tenantId}with your tenant ID and{clientId}with your client ID.For example, if you use Claude Code, run this command at the command line to connect to the US-based MCP server, replacing
CONFIG_NAMEwith a name for the server connection: - To use the MCP server hosted in the United States, use
-
In your AI assistant, authenticate the connection to Marketing Cloud Engagement. The process for completing this step depends on which application you use.
For example, in Claude Code, enter
/mcp, select the MCP connection, and then select Authenticate.
Any third-party AI assistant or LLM that you choose to install and configure with MCP (such as Anthropic’s Claude or Google’s Gemini) is provided directly by that third party, may be subject to applicable terms by that third party, and is not provided, supported, or warranted by Salesforce.