Salesforce DX

v0.30.9Business Applicationsstable

Enables secure interaction with Salesforce orgs through LLMs, providing tools for managing orgs, querying data, deploying metadata, running tests, and performing code analysis. Features granular access control and uses encrypted auth files to avoid e

salesforce-dx-mcp-servermcpai-integration
Share:
408
Stars
0
Downloads
0
Weekly
0/5

What is Salesforce DX?

Salesforce DX is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables secure interaction with salesforce orgs through llms, providing tools for managing orgs, querying data, deploying metadata, running tests, and performing code analysis. features granular acces...

Enables secure interaction with Salesforce orgs through LLMs, providing tools for managing orgs, querying data, deploying metadata, running tests, and performing code analysis. Features granular access control and uses encrypted auth files to avoid e

This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables secure interaction with Salesforce orgs through LLMs

Use Cases

Manage Salesforce orgs, query data, and deploy metadata via AI.
Run tests and perform code analysis with granular access control.
salesforcecli

Maintainer

LicenseApache-2.0
Languagetypescript
Versionv0.30.9
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @salesforce/mcp

Manual Installation

npx -y @salesforce/mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Salesforce DX

The Salesforce DX MCP Server enables AI assistants to securely interact with Salesforce orgs through 60+ tools organized into toolsets covering org management, metadata deployment, SOQL data queries, Apex test execution, LWC development, code analysis, and DevOps Center workflows. It uses the Salesforce CLI's encrypted auth files for authentication, avoiding plaintext credential storage, and provides granular access control via the --toolsets and --orgs flags so AI only accesses explicitly authorized orgs and capabilities. Development teams use it to accelerate Salesforce development with natural language queries against real org data and automated metadata management.

Prerequisites

  • Node.js installed (for npx execution)
  • Salesforce CLI installed and configured (`sf` command available)
  • At least one Salesforce org authorized via `sf org login web` or IDE login
  • Claude Desktop, Cursor, Cline, Windsurf, or another MCP-compatible client
1

Authorize your Salesforce org with the CLI

The MCP server uses the Salesforce CLI's existing org authorization. Log in to your org before configuring the MCP server. This creates the encrypted auth file the server reads.

sf org login web --alias my-sandbox
# Or for production:
sf org login web --alias my-prod
2

Test the server runs correctly

Run the server directly with npx to verify it launches without errors and can see your authorized org. The --orgs flag must match an alias or username of an already-authorized org.

npx -y @salesforce/mcp --orgs my-sandbox --toolsets orgs,metadata,data
3

Configure your MCP client

Add the Salesforce DX MCP server to your client's configuration. The --orgs flag is required and must list authorized org aliases or usernames. The --toolsets flag controls which tool groups are enabled.

{
  "mcpServers": {
    "Salesforce DX": {
      "command": "npx",
      "args": [
        "-y",
        "@salesforce/mcp",
        "--orgs", "my-sandbox",
        "--toolsets", "orgs,metadata,data,apex"
      ]
    }
  }
}
4

Enable additional toolsets as needed

Available toolsets include: orgs, metadata, data, apex, users, lwc-experts, code-analyzer, devops-center, mobile, and aura-migration. Add only what your workflow requires to limit the AI's surface area.

{
  "mcpServers": {
    "Salesforce DX": {
      "command": "npx",
      "args": [
        "-y", "@salesforce/mcp",
        "--orgs", "my-sandbox,my-prod",
        "--toolsets", "orgs,metadata,data,apex,lwc-experts,code-analyzer",
        "--debug"
      ]
    }
  }
}
5

Restart your MCP client and verify the tools

Restart Claude Desktop or your MCP client after saving the config. The server exposes 60+ tools — ask your AI client to list available Salesforce tools to confirm the connection succeeded.

Salesforce DX Examples

Client configuration

Configure Claude Desktop with the @salesforce/mcp package, connecting to a sandbox org with core toolsets enabled.

{
  "mcpServers": {
    "Salesforce DX": {
      "command": "npx",
      "args": [
        "-y",
        "@salesforce/mcp",
        "--orgs", "my-sandbox",
        "--toolsets", "orgs,metadata,data"
      ]
    }
  }
}

Prompts to try

Once connected to your Salesforce org, try these prompts to query data, manage metadata, and run tests.

- "Run a SOQL query to find all open Cases created in the last 7 days"
- "List all custom objects in my sandbox org"
- "Deploy the Apex class CustomerService from my local metadata directory to the sandbox"
- "Run all Apex tests in the AccountTriggerTest class and show me the results"
- "Analyze my Apex code for security vulnerabilities using Code Analyzer"

Troubleshooting Salesforce DX

Error: No authorized org found matching the value provided to --orgs

Run `sf org list` to see all authorized orgs and their aliases/usernames. The value passed to --orgs must exactly match an alias or username shown in that list. Re-authorize with `sf org login web --alias <alias>` if needed.

npx -y @salesforce/mcp fails with network or permission errors

Ensure Node.js and npm are up to date. If behind a corporate proxy, set HTTP_PROXY and HTTPS_PROXY env vars in the MCP server config's env block. You can also pre-install globally with `npm install -g @salesforce/mcp` and use `@salesforce/mcp` as the command.

Certain tools are not available in the AI client

Tools are gated by the --toolsets flag. Add the required toolset name to --toolsets in your config. Non-GA tools additionally require the --allow-non-ga-tools flag. Run with --debug to see which toolsets and tools are registered at startup.

Frequently Asked Questions about Salesforce DX

What is Salesforce DX?

Salesforce DX is a Model Context Protocol (MCP) server that enables secure interaction with salesforce orgs through llms, providing tools for managing orgs, querying data, deploying metadata, running tests, and performing code analysis. features granular access control and uses encrypted auth files to avoid e It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Salesforce DX?

Install via npm with the command: npx -y @salesforce/mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Salesforce DX?

Salesforce DX works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Salesforce DX free to use?

Yes, Salesforce DX is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Salesforce DX Alternatives — Similar Business Applications Servers

Looking for alternatives to Salesforce DX? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.

n8n

189.1k

A comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou

LobeHub

77.5k

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

Jeecgboot

46.4k

AI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。

CowAgent

44.7k

CowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。

Minds Platform

39.2k

Platform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.

Astrbot

32.8k

AI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨

Browse More Business Applications MCP Servers

Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "salesforce-dx-mcp-server": { "command": "npx", "args": ["-y", "@salesforce/mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Salesforce DX?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides