Back to Servers

Salesforce DX MCP Server

Official

by salesforcecli

The official Salesforce DX MCP Server gives AI agents direct access to Salesforce orgs through over 60 structured tools covering metadata deployment, data management, Apex testing, Lightning Web Component development, and org administration. Built and maintained by Salesforce CLI team, it's the canonical way to connect Claude Code, Cursor, Cline, or any MCP-compatible AI assistant to production Salesforce environments. The toolset is organized into logical groups: orgs (authentication and org management), metadata (deploy/retrieve), data (SOQL queries and DML operations), users (permissions and profiles), testing (Apex test execution and coverage), code-analysis (Salesforce Code Analyzer integration), and framework-specific toolsets for LWC and Aura components. An experimental dynamic tool discovery feature reduces context window usage by loading only relevant tools for the current task. For Salesforce developers, this changes the workflow significantly. Instead of context-switching between VS Code, Salesforce CLI, and the org UI, an AI agent can query data, inspect metadata, run tests, and deploy changes through natural language. The server supports both classic Personal Access Tokens and OAuth for enterprise teams, with optional HTTP server mode that lets companies run a shared MCP instance with token forwarding.

databasesalesforcecrmenterpriseapexlwcmetadatasoqldeployment

Installation

npx @salesforce/mcp

Key Features

  • 60+ tools covering metadata deployment, SOQL queries, Apex testing, and org management
  • Lightning Web Component (LWC) and Aura component development tools
  • Dynamic tool discovery to reduce context window usage
  • OAuth and Personal Access Token authentication for enterprise teams
  • HTTP server mode for shared team MCP deployment
  • Salesforce Code Analyzer integration for automated code quality

Use Cases

  • Query Salesforce data with SOQL through natural language commands
  • Deploy and retrieve metadata without leaving your AI coding assistant
  • Run Apex tests and check coverage during development
  • Automate Aura-to-LWC migration with AI assistance
  • Manage Salesforce users, profiles, and permission sets through AI agents

FAQ

Server Stats

GitHub Stars
312
Updated
3/15/2026
NPM Package
@salesforce/mcp

Category

Related Resources

Weekly AI Digest