Configure Cursor (Developer Mode)
Cursor is an AI-driven code editor that supports MCP.
Setup Steps
-
Select Cursor | Settings | Cursor Settings | Tools & MCP.
-
Click New MCP Server. This creates a file called
mcp.json. -
Replace the contents of the
mcp.jsonfile with this code:1{ 2 "mcpServers": { 3 "Salesforce": { 4 "url": "https://api.salesforce.com/platform/mcp/v1/<SERVER-NAME>", 5 "auth": { 6 "CLIENT_ID": "CONSUMER-KEY" 7 } 8 } 9 } 10}Server URL format:
- For All production orgs:
https://api.salesforce.com/platform/mcp/v1/<SERVER-NAME> - For sandbox or scratch orgs:
https://api.salesforce.com/platform/mcp/v1/sandbox/<SERVER-NAME>
Example: To use the
platform/sobject-allserver in a scratch org:1https://api.salesforce.com/platform/mcp/v1/sandbox/platform/sobject-all - For All production orgs:
-
Replace placeholder values in the
mcp.jsonfile:- Replace
<SERVER-NAME>with a server name from the list of available servers (e.g.,platform/sobject-all) - Replace
CONSUMER-KEYwith the consumer key that you saved from the external client app
- Replace
Example Configuration
This example mcp.json file is configured to connect Cursor to the platform/sobject-all server in a scratch org:
1{
2 "mcpServers": {
3 "Salesforce": {
4 "url": "https://api.salesforce.com/platform/mcp/v1/sandbox/platform/sobject-all",
5 "auth": {
6 "CLIENT_ID": "123my456consumer7890key"
7 }
8 }
9 }
10}Testing the Connection
You can now test the client’s connection to the MCP server using Cursor’s sidebar. The sidebar uses a natural language chatbot-style interface. See Test Your MCP Client for example prompts to verify your connection.