Release Notes
Prerequisites: Set Up Salesforce Hosted MCP Servers
Step 1: Configure an MCP Client
Step 2: Test Your Connection to the MCP Server
Step 3 [Optional]: Configure a Rule
Previous Versions
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.
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
Create or open a project. See Create Project.
Open the Command Palette and run SFDX: Authorize an Org and log in with your Salesforce credentials.
From the VS Code Activity Bar, click the Agentforce icon (
).
To open the MCP Servers interface, click the icon (
) in the Agentforce panel.
In VSCode, in the Agentforce panel, click the Configure tab and turn on the Salesforce API Context Server.
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.
Cursor is an AI-driven coding editor that supports MCP.
Select Cursor | Settings | Cursor Settings | MCP
Click New MCP Server.
This creates a file called mcp.json.
Replace the contents of mcp.json file with this code.
1{
2 "mcpServers": {
3 "salesforce-api-context": {
4 "command": "npx",
5 "args": [
6 "-y",
7 "mcp-remote@0.1.18",
8 "https://api.salesforce.com/platform/mcp/v1-beta.2/platform/salesforce-api-context",
9 "8080",
10 "--static-oauth-client-info",
11 "{\"client_id\":\"YOUR_CONSUMER_KEY\",\"client_secret\":\"\"}"
12 ]
13 }
14 }
15}Replace placeholder values in the mcp.json file.
Replace YOUR_CONSUMER_KEY with the consumer key that you saved from your external client app setup.
The client_secret is an empty string. Leave this string blank.
Note
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.
You can now test the client’s connection to the MCP server.
salesforce_api_context. Confirm that get_metadata_api_context is enabled.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.mcpbfrom 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.
See Also