Newer Version Available
Step 1: Configure a MCP Client
Configure a client to connect to MCP servers hosted in your Salesforce org. In this
quick start guide, we provide guidance on how to configure Agentforce Vibes, Cursor, and
Claude.
Configure Agentforce Vibes
The Agentforce Vibes extension is an AI-powered developer tool that's available
as an easy-to-install Visual Studio Code extension.
- Install the Agentforce Vibes VS Code Extension
-
From the VS Code Activity Bar, click the Agentforce icon
(
).
-
To open the MCP Servers interface, click the icon
(
) in the top-right corner of the Agentforce
panel.
- In the MCP interface, click the Remote Servers tab.
- To open up the a4d_mcp_settings.json file, select Edit Configuration.
-
Update the a4d_mcp_settings.json file and include this
code.
1 2 { 3 "mcpServers": { 4 "salesforce-api-context": { 5 "command": "npx", 6 "args": [ 7 "-y", 8 "mcp-remote@0.1.18", 9 "https://api.salesforce.com/platform/mcp/v1-beta.2/platform/salesforce-api-context", 10 "8080", 11 "--static-oauth-client-info", 12 "{\"client_id\":\"CONSUMER-KEY\",\"client_secret\":\"\"}" 13 ] 14 } 15 } 16} -
Replace placeholder values in the
a4d_mcp_settings.json file.
- Replace CONSUMER-KEY with the consumer key that you saved from your external client app setup.
- If you're connecting to a scratch or sandbox org, change the URL to https://api.salesforce.com/platform/mcp/v1-beta.2/sandbox/platform/salesforce-api-context.
Agentforce attempts to connect to the server and display the connection status.
Verify the connection using the status indicators. For more details, review the
Managed Connected Servers, or the Troubleshoot Connection Issues sections in Connect to Remote MCP Servers in the
Agentforce Vibes Extension Guide.
Configure Cursor in Developer Mode
Cursor is an AI-driven coding editor that supports MCP.
- Select
-
Click New MCP Server.
This creates a file called mcp.json.
-
Replace the contents of mcp.json file with this
code.
1 2 { 3 "mcpServers": { 4 "salesforce-api-context": { 5 "command": "npx", 6 "args": [ 7 "-y", 8 "mcp-remote@0.1.18", 9 "https://api.salesforce.com/platform/mcp/v1-beta.2/platform/salesforce-api-context", 10 "8080", 11 "--static-oauth-client-info", 12 "{\"client_id\":\"CONSUMER-KEY\",\"client_secret\":\"\"}" 13 ] 14 } 15 } 16} -
Replace placeholder values in the mcp.json file.
- Replace CONSUMER-KEY with the consumer key that you saved from your external client app setup.
- If you're connecting to a scratch or sandbox org, change the URL to https://api.salesforce.com/platform/mcp/v1-beta.2/sandbox/platform/salesforce-api-context.
Configure Claude Desktop in Developer Mode
Claude is an AI assistant that you configure to connect to Salesforce Hosted MCP
Servers. Configure Claude using a special Claude Desktop Extensions file.
- Download salesforce-hosted-mcp-servers.mcpb from this GitHub repository. This is the extension file for Salesforce Hosted MCP Servers.
- Double-click the salesforce-hosted-mcp-servers.mcpb file. The Claude desktop client opens and shows the Salesforce extension.
- Click Install.
- In Server Name, enter platform/salesforce-api-context.
-
In Consumer Key, paste the consumer key that you saved from the external
client app, then click Save.
A toggle to enable the extension appears.
-
Enable the extension using the toggle.
If you encounter an error, quit and restart Claude.
You can now test the client's connection to the MCP server.