MCP Server for interacting with Salesforce instances
MCP MCP server exists for a simple reason — assistants are far more useful when they can act on MCP directly instead of describing what you should do. MCP Server for interacting with Salesforce instances.
For general documentation about the Salesforce DX MCP Server, see this section in the Salesforce DX Developer Guide. The docs include:
The Salesforce DX MCP Server is a specialized Model Context Protocol (MCP) implementation designed to facilitate seamless interaction between large language models (LLMs) and Salesforce orgs. This MCP server provides a robust set of tools and capabilities that enable LLMs to read, manage, and operate Salesforce resources securely.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
Once MCP is connected, these are the calls the assistant has available:
create-custom — rule (NON-GA) - Creates a custom XPath-based PMD rule from a provided Apex code sampleToolset — Descriptionall — Enables all available tools from all toolsets. We recommend that you configure only the toolsets you’re going to use, rather than all of them withaura-experts — Tools that provide Aura component analysis, blueprinting, and migration expertise.code-analysis — Tools for static analysis of your code using Salesforce Code Analyzercore — Core set of DX MCP tools. This toolset is always enableddata — Tools to manage the data in your org, such as listing all accountsdevops — Tools to securely and autonomously read, manage, and operate DevOps Center resourcesenrichment — Tools to enrich metadata components in your DX projectexperts-validation — Tools to validate and score LWC components for production readiness across accessibility, security, and best practiceslwc-experts — Tools to assist with Lightning Web Component (LWC) development, testing, optimization, and best practicesmetadata — Tools to deploy and retrieve metadata to and from your org and your DX projectAmong the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCP's toolset — create-custom, Toolset, all and 11 more — is a fair guide to whether it matches your workflow. It is maintained by salesforcecli; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| create-custom | rule (NON-GA) - Creates a custom XPath-based PMD rule from a provided Apex code sample. |
| Toolset | Description |
| all | Enables all available tools from all toolsets. We recommend that you configure only the toolsets you’re going to use, rather than all of them with this value. The DX MCP Server includes over 60 MCP tools, so enabling the |
| aura-experts | Tools that provide Aura component analysis, blueprinting, and migration expertise.. |
| code-analysis | Tools for static analysis of your code using Salesforce Code Analyzer. |
| core | Core set of DX MCP tools. This toolset is always enabled. |
| data | Tools to manage the data in your org, such as listing all accounts. |
| devops | Tools to securely and autonomously read, manage, and operate DevOps Center resources. |
| enrichment | Tools to enrich metadata components in your DX project. |
| experts-validation | Tools to validate and score LWC components for production readiness across accessibility, security, and best practices. |
| lwc-experts | Tools to assist with Lightning Web Component (LWC) development, testing, optimization, and best practices. |
| metadata | Tools to deploy and retrieve metadata to and from your org and your DX project. |
| mobile | Tools for mobile development and capabilities. |
| mobile-core | A subset of tools from the mobile toolset focused on essential mobile capabilities. |
{
"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"]
}
}
}Configuration as documented by the project. Restart the client after saving.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.