Configure Cursor (Developer Mode)

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

  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:

    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:

  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

This example mcp.json file is configured to connect Cursor to the platform/sobject-all server in a scratch org:

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.