Configure Cursor (Developer Mode)

Cursor is an AI-driven code editor that supports MCP.

Setup Steps 

  1. Select Cursor | Settings | Cursor Settings | Tools & MCP.

  2. Click New MCP Server. This creates a file called mcp.json.

  3. Replace the contents of the mcp.json file 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-all server in a scratch org:

    1https://api.salesforce.com/platform/mcp/v1/sandbox/platform/sobject-all
  4. Replace placeholder values in the mcp.json file:

    • Replace <SERVER-NAME> with a server name from the list of available servers (e.g., platform/sobject-all)
    • Replace CONSUMER-KEY with the consumer key that you saved from the external client app

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.