Back to Home
salesforcecli icon

mcp

Verified Safe

by salesforcecli

Overview

Facilitating LLM interaction with Salesforce orgs to read, manage, and operate Salesforce resources, including specialized tasks like detecting and fixing Apex performance antipatterns, managing DevOps workflows, and performing code analysis.

Installation

Run Command
npx -y @salesforce/mcp --orgs DEFAULT_TARGET_ORG --toolsets orgs,metadata,data,users --tools run_apex_test --allow-non-ga-tools

Environment Variables

  • SF_USE_GENERIC_UNIX_KEYCHAIN
  • SF_MCP_SERVER_BIN
  • MCP_SERVER_REQUEST_TIMEOUT
  • DEFAULT_TARGET_ORG
  • DEFAULT_TARGET_DEV_HUB

Security Notes

The server employs extensive input validation using Zod schemas and robust path sanitization to prevent directory traversal attacks. Salesforce authentication is handled securely via the `@salesforce/core` library. Git commands are executed using `execSync` but with controlled arguments and specified working directories, mitigating some, though not all, inherent risks of `execSync`. Telemetry is disabled by default for test runs, enhancing privacy. No hardcoded secrets were identified.

Similar Servers

Stats

Interest Score70
Security Score8
Cost ClassMedium
Avg Tokens1500
Stars228
Forks62
Last Update2025-12-05

Tags

SalesforceMCPLLMApexCode AnalysisPerformanceStatic AnalysisGitCI/CDDevOpsMetadataDataUsersTestingMobile Development