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.
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.
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"]}}}