---
title: "Salesforce DX: setup for Claude, Cursor, Codex · DotsAgent"
description: "Salesforce CLI tools for agents: query data, deploy and retrieve metadata, and manage orgs and users. Set up Salesforce DX in 13 MCP clients."
url: https://dotsagent.io/mcp/servers/salesforce-dx
---

Commerce · Salesforce

# Set up Salesforce DX

Salesforce CLI tools for agents: query data, deploy and retrieve metadata, and manage orgs and users.

- **Publisher**: Salesforce Official
- **Run locally**: `npx -y @salesforce/mcp --orgs DEFAULT_TARGET_ORG --toolsets orgs,metadata,data,users`
- **Transports**: stdio
- **Authentication**: Uses orgs you have already authorised in the Salesforce CLI.
- **What it can touch**: Read and write, limited to the toolsets enabled with --toolsets.
- **Licence**: Apache-2.0
- **Source**: [github.com/salesforcecli/mcp](https://github.com/salesforcecli/mcp)
- **Status**: Active

## Install

This server runs on your machine as a child process of the client. You need the runtime its command uses, such as Node.js for npx, uv for uvx or Docker, plus any variables listed under Environment.

### Claude Code

`shell`

```
claude mcp add --scope project salesforce-dx -- npx -y @salesforce/mcp --orgs DEFAULT_TARGET_ORG --toolsets orgs,metadata,data,users
```

### Cursor

`.cursor/mcp.json`

```
{
  "mcpServers": {
    "salesforce-dx": {
      "command": "npx",
      "args": [
        "-y",
        "@salesforce/mcp",
        "--orgs",
        "DEFAULT_TARGET_ORG",
        "--toolsets",
        "orgs,metadata,data,users"
      ]
    }
  }
}
```

### Codex

`~/.codex/config.toml`

```
[mcp_servers.salesforce-dx]
command = "npx"
args = ["-y", "@salesforce/mcp", "--orgs", "DEFAULT_TARGET_ORG", "--toolsets", "orgs,metadata,data,users"]
```

[Config for other clients →](https://dotsagent.io/mcp/config#add=salesforce-dx)

## Other servers in commerce

- [Stripe](https://dotsagent.io/mcp/servers/stripe): Create and look up Stripe customers, payments, invoices and products, and search the Stripe docs.

- [Shopify Dev](https://dotsagent.io/mcp/servers/shopify-dev): Searches Shopify developer docs and checks Admin GraphQL and Liquid code while you build apps.

- [HubSpot](https://dotsagent.io/mcp/servers/hubspot): HubSpot's hosted server for reading and updating CRM contacts, companies, deals and tickets.

## Sources

1. [github.com](https://github.com/salesforcecli/mcp)/salesforcecli/mcp

Independent reference for people who build AI agents. Not affiliated with any vendor named here.

© 2026 DotsAgent · Facts checked October 1, 2026
