Salesforce DX
Salesforce's DX MCP server runs on each person's computer. The Official card starts npx -y @salesforce/mcp --orgs DEFAULT_TARGET_ORG --toolsets all over stdio and turns on Local MCP. Sign-in is the Salesforce CLI authorization on that computer. In the catalog, open the Salesforce DX card with the Official badge. See Install and Configure the Salesforce DX MCP Server and Local MCP.
Salesforce's hosted MCP server, for CRM data and metadata through OAuth, is Salesforce.
End of life. Salesforce ended support for this local server on November 2, 2026. The GitHub repositories are archived, and the npm package @salesforce/mcp is deprecated. The package still installs, so this card still starts. Salesforce now delivers this tooling as skills in forcedotcom/sf-skills. See the end-of-life notice.
Before you start
On every computer that will use the server:
- Node.js Active LTS, so
npxcan start@salesforce/mcpand Willow's local client. See Local MCP. - The Salesforce CLI (
sf). Install it with the operating-system installer or withnpm install @salesforce/cli --global, then runsf --version. See Install Salesforce CLI.
The person who authorizes the org needs the Approve Uninstalled Connected Apps user permission. Org administrators have that permission by default. See Authorize an Org Using a Browser.
Authorize the org
Authorize the org on the computer before the server can use it. Use sf org login web, or SFDX: Authorize an Org from the VS Code command palette.
The card's --orgs value is DEFAULT_TARGET_ORG, which is the CLI's default org.
- On that computer, run
sf org login web --alias my-org --set-default. - In the browser that opens, sign in and click Allow, then close the browser.
- Run
sf org listand confirm that org is the default.
DEFAULT_TARGET_ORG is resolved on every tool call. A local default in the DX project for the directory the tool runs in wins. Otherwise the CLI uses the global default. Changing the default org changes which org this server can use. To keep the server on one org, replace DEFAULT_TARGET_ORG in the arguments with that org's username or alias. DEFAULT_TARGET_DEV_HUB is the same idea for the default Dev Hub. Salesforce recommends allowing only the orgs you intend this server to use.
When the login URL is a My Domain or a sandbox, pass --instance-url with the My Domain URL from Setup → My Domain. It ends in my.salesforce.com, such as https://MyDomainName.my.salesforce.com. A sandbox looks like https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
Set up Willow
- Go to MCP Servers → + Add MCP server, open the Salesforce DX card with the Official badge, and click + Use.
- Leave Local MCP on. The command is already
npx. The arguments are already-y,@salesforce/mcp,--orgs,DEFAULT_TARGET_ORG,--toolsets,all. - Assign groups and Publish.
--toolsets all enables every generally available tool. Salesforce says the server includes over 60 tools and recommends enabling only the toolsets you will use, because the full list can overwhelm the model. To narrow it, edit the --toolsets value on the server's Setup tab under MCP configuration. Separate names with commas. The core toolset stays enabled either way. Tools that are not generally available stay off unless you also add the flag --allow-non-ga-tools. The toolset names are in the install guide.
Salesforce's examples pass @salesforce/mcp@latest so npx takes the newest release. This card's argument is @salesforce/mcp. The package is deprecated, and Salesforce says no further releases will ship.
Each person
- Confirm
npxandsfrun on that computer, and thatsf org listshows the org this server should use. - On the MCP Servers page, open this server and click Use. Copy the STDIO configuration into the AI client. See Local MCP servers.
Troubleshooting
The process does not start
Cause: Node.js is missing on the computer that runs the server, or npx is not on PATH.
Solution: Install Node.js Active LTS and confirm node, npm, and npx are on PATH.
The server cannot use an org
Cause: That computer has no authorized org, or no default org is set. DEFAULT_TARGET_ORG follows the CLI default for the directory the tool runs in.
Solution: Run sf org login web --alias my-org --set-default, then sf org list. To pin one org, put its username or alias in --orgs and publish again.
Browser login is refused
Cause: The user lacks Approve Uninstalled Connected Apps.
Solution: An org administrator grants that permission, or an administrator runs sf org login web on that computer. See Authorize an Org Using a Browser.