Salesforce CLI MCP Server

Salesforce org data and metadata management via Model Context Protocol tools.

Data last scanned today · Reviewed yesterday

453 dangerous tools89 tools444TypeScriptApache-2.0

Overview

The Salesforce CLI MCP Server bridges the gap between LLMs and Salesforce environments. By integrating through the Model Context Protocol, it allows AI models to interact directly with Salesforce resources including orgs, metadata, user configurations, and data objects. Users configure the server by adding it to their local MCP JSON files, specifying required toolsets and target orgs.

Our verdict

This server carries a high-risk rating with a security score of 30/100, primarily due to the lack of an authentication method, meaning any user with access to the configuration can execute commands against your org. Additionally, the tool lacks read-only mode constraints, granting full write access by default. It is recommended only for isolated development or testing environments where security exposure is strictly managed.

  • Zero direct dependencies reduce potential supply-chain vulnerabilities
  • Active development with frequent updates and commits
  • Supported by a community of 35 contributors
  • Lacks authentication, allowing unauthorized command execution
  • Defaults to full write access without read-only restrictions
  • Maintained by the community rather than official vendor channels

Setup

Claude Desktop
{
  "mcpServers": {
    "salesforcecli-mcp": {
      "args": [
        "-y",
        "monorepo-for-salesforce-mcp-server-and-providers"
      ],
      "command": "npx"
    }
  }
}

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.

  • No read-only mode — running this grants full read/write access.
  • No built-in authentication — anyone with access to this config can invoke every tool it exposes.

Tools

ToolDescriptionRisk
run_apex_testRuns Apex tests in a Salesforce org.high
create_aura_blueprint_draftCreates a comprehensive Product Requirements Document (PRD) blueprint for Aura component migration.medium
enhance_aura_blueprint_draftEnhances an existing draft PRD with expert analysis and unknown resolution.medium
orchestrate_aura_migrationOrchestrates the complete Aura to LWC migration workflow.low
transition_prd_to_lwcProvides migration bridge guidance for creating LWC components from Aura specifications.medium
create-custom-ruleCreates a custom XPath-based PMD rule from a provided Apex code sample.medium
describe_code_analyzer_ruleGets the description of a Code Analyzer rule.low
generate_xpath_promptBuilds the prompt that guides XPath authoring from AST context.low
list_code_analyzer_rulesSelects Code Analyzer rules based on a number of criteria.low
query_code_analyzer_resultsQueries a Code Analyzer results JSON file and returns filtered violations.low
run_code_analyzerPerforms a static analysis against code.low
get_usernameDetermines the appropriate username or alias for Salesforce operations, handling both default orgs and Dev Hubs.low
resume_tool_operationResumes a long-running operation that wasn't completed by another tool.medium
run_soql_queryRuns a SOQL query against a Salesforce org.low
check_devops_center_commit_statusCheck the current status of a work item committed to DevOps Center.low
checkout_devops_center_work_itemChecks out the branch associated with a selected work item by name.medium
commit_devops_center_work_itemCommit SFDX project changes and register the commit SHA in DevOps Center.medium
create_devops_center_pull_requestCommit local changes to a DevOps Center work item’s feature branch.medium
detect_devops_center_merge_conflictDetects merge conflicts for a selected work item or in a given source branch.low
list_devops_center_projectsList all DevOps Center projects in a specific org.low
list_devops_center_work_itemsList all the work items for a specific DevOps Center project.low
create_devops_center_work_itemCreates a new DevOps Center work item in the selected project.medium
update_devops_center_work_item_statusSets a work item’s status to In Progress or Ready to Promote.medium
promote_devops_center_work_itemPromote an approved work item to the next stage in the DevOps Center pipeline.medium
resolve_devops_center_deployment_failureDiagnose and resolve deployment failures.medium
resolve_devops_center_merge_conflictApply a selected resolution method to a merge conflict.medium
enrich_metadataEnrich metadata from your org in your DX project.medium
create_lwc_component_from_prdCreates complete LWC components from PRD specifications with proper structure. and best practicesmedium
create_lwc_jest_testsGenerates Jest test suites for LWC components with coverage and mocking.medium
review_lwc_jest_testsReviews and validates Jest test implementations for LWC components.low
create_lightning_typeProvides guidance for creating Custom Lightning Types (CLT) for Salesforce applications, agent actions, Lightning web components, and Lightning Platform integrations.medium
explore_slds_blueprintsRetrieves SLDS blueprint specifications by name, category, Lightning component, CSS class, or styling hook.low
guide_design_generalProvides SLDS guidelines and best practices for Lightning Web Components with accessibility, responsive design, and component usage patterns.low
guide_component_accessibilityProvides accessibility guidelines and testing instructions for LWC components.low
guide_lwc_best_practicesOffers LWC development best practices and coding standards guidance.low
guide_lwc_developmentProvides LWC development workflow and implementation guidelines.low
guide_lwc_rtl_supportProvides Right-to-Left (RTL) internationalization support and RTL development guidance.low
guide_lws_securityProvides security analysis in accordance with product security guidelines and Lightning Web Security guidelines.low
guide_slds_blueprintsProvides comprehensive SLDS blueprints guidelines, reference documentation, and a complete index of all available blueprints by category.low
guide_utam_generationProvides UI Test Automation Model (UTAM) Page Object generation guidelines and best practices.low
lwc-doc-errorRetrieves information about LWC error messages, including static guidance for resolving the issue based on the error code.low
reference_lwc_compilation_errorReferences LWC compilation errors by looking up error codes against a knowledge base of documented error patterns, causes, and fixes.low
guide_slds_stylingRetrieves SLDS styling hooks guidance and reference documentation.low
explore_slds_stylingSearch and explore SLDS styling hooks with support for exact lookup, fuzzy matching, prefix search, and wildcard patterns.low
guide_lbc_usageProvides an index of available Lightning Base Components with short descriptions, helping developers identify which components suit their use case.low
explore_lbc_componentsGiven a list of Lightning Base Component names, returns full API documentation from markdown knowledge files.low
create_lds_graphql_mutation_queryProvides guidance for creating GraphQL mutation queries.medium
create_lds_graphql_read_queryCreate GraphQL read queries for LDS.medium
explore_lds_uiapiExplores and documents Lightning Design System UI API capabilities.low
fetch_lds_graphql_schemaFetch GraphQL schema structure for LDS.low
guide_lds_data_consistencyProvides data consistency patterns and best practices for LDS components.low
guide_lds_developmentProvides LDS development guidelines and component integration.low
guide_lds_graphqlProvides LDS GraphQL usage patterns and guidelines.low
guide_lds_referential_integrityProvides referential integrity patterns for LDS data management.low
orchestrate_lds_data_requirementsProvides step-by-step guidance for analyzing and clarifying LDS data requirements to produce PRD-ready specifications.low
test_lds_graphql_queryTests a GraphQL query against a connected Salesforce org and returns the result.medium
guide_figma_to_lwc_conversionConverts Figma designs to LWC component specifications.medium
guide_lo_migrationProvides guidance to convert a Lightning Out (beta) app into a Lightning Out 2.0 app.medium
run_lwc_accessibility_jest_testsProvides accessibility testing utilities and Jest integration for LWC components.low
verify_aura_migration_completenessProvides Aura to LWC migration completeness checklist and validation.low
orchestrate_lwc_component_creationProvides guidance for the entire Aura-to-LWC migration process.low
orchestrate_lwc_component_optimizationProvides performance optimization and best practices for LWC components.low
orchestrate_lwc_component_testingProvides comprehensive testing workflow and test generation guidance.low
orchestrate_lwc_slds2_upliftProvides migration guidance for upgrading to SLDS 2.medium
validate_and_optimizeReturns a validation runbook that instructs the agent to run a suite of validators (accessibility, security, best practices, etc.), produce SARIF issues, and score resultslow
score_issuesComputes a readiness score (0-100) and quality grade (draft, prototype, review-for-production) from SARIF issueslow
deploy_metadataDeploys metadata from your DX project to an org.medium
retrieve_metadataRetrieves metadata from your org to your DX project.medium
create_mobile_lwc_app_reviewProvides TypeScript API documentation for Salesforce LWC App Review Service, offering expert guidance for implementing app review features in LWC components.low
create_mobile_lwc_ar_space_captureProvides TypeScript API documentation for Salesforce LWC AR Space Capture, offering expert guidance for implementing AR space capture features in LWC components.low
create_mobile_lwc_barcode_scannerProvides TypeScript API documentation for Salesforce LWC Barcode Scanner, offering expert guidance for implementing barcode scanning features in LWC components.low
create_mobile_lwc_biometricsProvides TypeScript API documentation for Salesforce LWC Biometrics Service, offering expert guidance for implementing biometric authentication features in LWC components.low
create_mobile_lwc_calendarProvides TypeScript API documentation for Salesforce LWC Calendar Service, offering expert guidance for implementing calendar integration features in LWC components.low
create_mobile_lwc_contactsProvides TypeScript API documentation for Salesforce LWC Contacts Service, offering expert guidance for implementing contacts management features in LWC components.low
create_mobile_lwc_document_scannerProvides TypeScript API documentation for Salesforce LWC Document Scanner, offering expert guidance for implementing document scanning features in LWC components.low
create_mobile_lwc_geofencingProvides TypeScript API documentation for Salesforce LWC Geofencing Service, offering expert guidance for implementing geofencing features in LWC components.low
create_mobile_lwc_locationProvides TypeScript API documentation for Salesforce LWC Location Service, offering expert guidance for implementing location services in LWC components.low
create_mobile_lwc_nfcProvides TypeScript API documentation for Salesforce LWC NFC Service, offering expert guidance for implementing NFC features in LWC components.low
create_mobile_lwc_paymentsProvides TypeScript API documentation for Salesforce LWC Payments Service, offering expert guidance for implementing payment processing features in LWC components.low
get_mobile_lwc_offline_analysisAnalyzes LWC components for mobile-specific issues and provides detailed recommendations for mobile offline compatibility and performance improvements.low
get_mobile_lwc_offline_guidanceProvides structured review instructions to detect and remediate mobile offline code violations in LWC components for Salesforce mobile apps.low
create_org_snapshotCreate a scratch org snapshot.medium
create_scratch_orgCreate a scratch org.medium
delete_orgDelete a locally-authorized Salesforce scratch org or sandbox.high
list_all_orgsList all configured Salesforce orgs, with optional connection status checking.low
open_orgOpen an org in a browser.low
scan_apex_class_for_antipatternsAnalyzes Apex class files for performance antipatterns and provides recommendations for fixing them.low
run_agent_testExecutes agent tests in your org.high
assign_permission_setAssigns a permission set to the user or on behalf of another user.medium

Compatibility

ClientLocalDockerRemoteRead-only
Claude Desktop
Cursor
VS Code
Windsurf
ChatGPT

Frequently asked questions

How do I install the Salesforce DX MCP Server?

The server is installed automatically via npx using the @salesforce/mcp package; ensure that you include the -y flag in your configuration to allow automatic installation.

Can I use tools that are not yet generally available?

Yes, you can enable tools that are not yet generally available by including the --allow-non-ga-tools flag in your server configuration arguments.

How do I restrict the server to specific toolsets?

You can use the --toolsets flag to specify only the categories you need, such as orgs, metadata, data, or users.

Where can I find detailed configuration guides for different MCP clients?

The official Salesforce DX Developer Guide includes a section dedicated to server configuration, including quick start guides and examples for various MCP clients.

Alternatives

Changelog

Badge

Salesforce CLI MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.