Configure Cursor (Developer Mode)
Cursor is an AI-driven code editor that supports MCP.
-
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: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: - 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
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.