What it does
The Salesforce DX MCP Server integrates Salesforce org access into Claude and other LLMs through the Model Context Protocol. It exposes Salesforce DX tools for reading metadata, querying data, running Apex tests, managing users, and deploying code. Configuration is granular — you select which toolsets (orgs, metadata, data, users) to enable and specify individual tools to expose, all configured via command-line flags at startup. The server reads and writes the filesystem to support code retrieval and deployment workflows.
Who it's for
Salesforce developers and admins using Salesforce DX who want to bring LLM assistance into their development workflows. Particularly useful for teams where developers want Claude to help validate code changes, analyze metadata, or run tests directly against a Salesforce org.
Common use cases
- Run Apex unit tests and review results with LLM analysis
- Retrieve and examine org metadata for schema validation
- Deploy code with pre-flight LLM review of changes
- Audit org users and permission sets
- Generate documentation from org metadata
Setup pitfalls
- Beta service — governed by Salesforce's Beta Services Terms
- Requires Salesforce CLI (
sf) installed and authenticated against target orgs beforehand - Reads and writes the filesystem for code operations — validate sandboxing for untrusted LLM workflows
- Configuration is startup-only via flags (
--orgs,--toolsets,--tools) — adding orgs later requires restarting