Best for
- Developers already using the Salesforce CLI and a DX project
- Teams that want an AI coding assistant to operate directly on Salesforce metadata, Apex, and LWC
- Projects migrating Aura to LWC or adopting DevOps Center workflows
An official, broad-coverage Salesforce developer MCP server with a large tool catalog, but it requires local CLI authorization and careful scoping of org access.
Strongest · Documentation 16/20 Weakest · Reliability 9/20
Static review · not runListed 2026-08-26
Read the FMRS scoring method →Runtime:Node.js
sf org login web or the 'SFDX: Authorize an Org' command in your IDE).npx and args -y @salesforce/mcp plus flags such as --orgs (required, e.g. DEFAULT_TARGET_ORG) and --toolsets (e.g. orgs,metadata,data,users).--tools for specific extra tools, or --allow-non-ga-tools to enable preview tools.--debug for debug logs (not all clients surface MCP logs).{"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"]}}}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"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"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add 'Salesforce DX' -- npx -y @salesforce/mcp --orgs DEFAULT_TARGET_ORG --toolsets orgs,metadata,data,users --tools run_apex_test --allow-non-ga-tools
Run it in a terminal; replace any <…> placeholders with your own values first.
After connecting, tools such as run_soql_query and run_apex_test should appear in the client's tool list; asking "What is the username of my default org?" and getting the correct username confirms the connection.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
The Salesforce DX MCP Server is maintained by the official salesforcecli GitHub organization and implements the Model Context Protocol so LLMs can securely interact with Salesforce orgs already authorized on your machine. Launched via npx @salesforce/mcp, it's configured with --orgs to scope which orgs are accessible and --toolsets/--tools to enable specific tool groups, spanning metadata deploy/retrieve, SOQL queries, Apex/agent testing, user and permission set management, scratch org lifecycle, DevOps Center work items, static code analysis (Code Analyzer), Aura-to-LWC migration experts, and mobile LWC capability documentation across more than sixty tools. Only generally-available (GA) tools are enabled by default; the --allow-non-ga-tools flag is required to use tools still in preview.
Upstash's official server providing up-to-date third-party library docs for AI coding assistants
AI-powered NPM package analysis MCP server
An independent control layer that gives AI coding agents budgets, brakes, and receipts
GitHub's official MCP server for managing repos, issues, PRs, and workflows via natural language
Source revision 9bc98ba22f0e Data synced 2026-10-12 Read the FMRS scoring method