Salesforce DX MCP Server

MCP server by Salesforce

OfficialLocal
Official page

Salesforce DX MCP Server at a glance

Salesforce DX MCP Server is an official MCP server from Salesforce. It lets AI coding assistants query, deploy and test Salesforce orgs through Salesforce CLI.

Connects to
Sales, CRM and support
Hosting
Local · stdio
Sign-in
Salesforce CLI org login
Price
Free (needs a Salesforce account)
Works with
Claude Code, Cline, Cursor, VS Code, Windsurf, Zed
Best for
Salesforce developers and admins using AI editors
Checked
October 3, 2026 on official sources

How to install Salesforce DX MCP Server

Add the command below as a new MCP server in your AI app’s settings or MCP config file. Sign-in: Salesforce CLI org login.

Install or connect
npx -y @salesforce/mcp --orgs DEFAULT_TARGET_ORG

What Salesforce DX MCP Server can do

It runs locally on top of Salesforce CLI and gives an AI assistant tools to work with your authorized Salesforce orgs. Toolsets cover data queries, metadata deploy and retrieve, Apex testing, code analysis and Lightning Web Components help.

Tools it exposes include
Run SOQL queriesDeploy and retrieve metadataRun Apex testsCode analysisLWC expert guidanceManage orgs and users

Best for: salesforce developers and admins using AI editors

Pros

  • Official and open source
  • Fifteen toggleable toolsets
  • Limits access to orgs you list

Cons

  • Developer-focused rather than for sales reps
  • Needs Salesforce CLI and authorized orgs

Salesforce DX MCP Server FAQ

Is Salesforce DX MCP Server free?

Yes. It is open source under Apache-2.0 but you need a Salesforce org to use it.

How do I connect Salesforce DX MCP Server?

Log in to your org with Salesforce CLI then add npx -y @salesforce/mcp –orgs DEFAULT_TARGET_ORG to your MCP client config.

What can Salesforce DX MCP Server do?

It can query data, deploy and retrieve metadata, run Apex tests, analyze code and help build Lightning Web Components.