$ timeahead.in
mcp/salesforcemcp/install/cursor

install @salesforce/mcp on Cursor

Requires Node 18+ on your system so npx can fetch the package on first run. Cursor reloads its MCP servers automatically the moment the file is saved — no restart needed. Paste the config below, then follow the reload step to register @salesforce/mcp.

paste into
global: ~/.cursor/mcp.json
project: .cursor/mcp.json (commit alongside your repo)
{
  "mcpServers": {
    "Salesforce DX": {
      "command": "npx",
      "args": [
        "-y",
        "@salesforce/mcp",
        "--orgs",
        "DEFAULT_TARGET_ORG",
        "--toolsets",
        "orgs,metadata,data,users",
        "--tools",
        "run_apex_test",
        "--allow-non-ga-tools"
      ]
    }
  }
}
then: No restart needed — Cursor picks up the change automatically.
other clients
Claude DesktopWindsurfVS Code (Copilot)Claude Code
← back to @salesforce/mcp