Atlas / MCP servers / salesforcecli / Salesforce

SalesforceBLOCK

mcp/salesforcecli/salesforce-12

MCP Server for interacting with Salesforce instances

Verdict
BLOCK
Grade
D
Trust score
60 /100
Exposed tools
15 15r · 0w · 0d
Transport
stdio
License
Apache-2.0
Stars
483
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

MCP Server for Interacting with Salesforce Orgs

[](https://www.npmjs.com/package/@salesforce/mcp) [](https://opensource.org/license/apache-2-0)

Feedback

Report bugs and issues here. For feature requests and other related topics, start a Discussion here.

Documentation

For general documentation about the Salesforce DX MCP Server, see this section in the Salesforce DX Developer Guide. The docs include:

  • Comprehensive overview, including details about the security features.
  • Quick start guide.
  • Multiple examples of configuring the server in your MCP client.
  • Sample prompts for invoking the core DX MCP tools.

Here are the release notes.

Overview of the Salesforce DX MCP Server

The Salesforce DX MCP Server is a specialized Model Context Protocol (MCP) implementation designed to facilitate seamless interaction between large language models (LLMs) and Salesforce orgs. This MCP server provides a robust set of tools and capabilities that enable LLMs to read, manage, and operate Salesforce resources securely.

Configure the DX MCP Server

Configure the Salesforce DX MCP Server for your MCP client by updating its associated MCP JSON file; each client is slightly different, so check your MCP client documentation for details. See MCP Client Configurations for more examples.

Here's an example for VS Code with Copilot in which you create and update a .vscode/mcp.json file in your project:

{
"servers": {
"Salesforce DX": {
"command": "npx",
"args": ["-y", "@salesforce/mcp",
"--orgs", "D
Read from source at commit f6f55474dbcdOBSERVED · 2026-09-30
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add mcp -- npx -y @salesforce/[email protected]
claude-desktop
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@salesforce/[email protected]"
      ]
    }
  }
}
03

Exposed tools (15)

15 read · 0 write · 0 destructive.

ToolRiskDescription
ApexPagereadRoot element of a Visualforce page
BooleanLiteralreadBoolean literal
ClassDeclarationreadRepresents a class declaration
ElementreadHTML element
FunctionDeclarationreadJavaScript function
HtmlDocumentreadHTML document root
IfStatementreadRepresents an if statement
IntegerLiteralreadInteger literal
MethodCallExpressionreadRepresents a method call
MethodDeclarationreadRepresents a method declaration
OutputTextreadDisplay text content
StringLiteralreadString literal
test-toolreadTest tool description
test-tool-2readTest tool description
test-tool-3readTest tool description
04

Trust audit

BLOCKgrade D · trust 60/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (2 observation(s))
Network
none-observed
Shell
declared (9 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (23)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
packages/mcp-provider-code-analyzer/src/actions/create-regex-custom-rule.ts:29
exec(input: CreateRegexCustomRuleInput): Promise<CreateRegexCustomRuleOutput>;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
packages/mcp-provider-code-analyzer/src/actions/create-xpath-custom-rule.ts:26
exec(input: CreateXpathCustomRuleInput): Promise<CreateXpathCustomRuleOutput>;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
packages/mcp-provider-code-analyzer/src/actions/describe-rule.ts:38
exec(input: DescribeRuleInput): Promise<DescribeRuleOutput>;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
packages/mcp-provider-code-analyzer/src/actions/get-ast-nodes.ts:18
exec(input: GetAstNodesInput): Promise<GetAstNodesOutput>;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
packages/mcp-provider-code-analyzer/src/actions/list-rules.ts:49
exec(input: ListRulesInput): Promise<ListRulesOutput>;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWInventory / provenance · inv.hidden_file · CWE-1104
.commitlintrc.json
.commitlintrc.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
packages/mcp-provider-api/.prettierrc.json
.prettierrc.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
packages/mcp-provider-dx-core/.eslintrc.cjs
.eslintrc.cjs
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
packages/mcp-provider-dx-core/.mocharc.json
.mocharc.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
packages/mcp-provider-dx-core/.nycrc
.nycrc
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.symlink · CWE-1104
packages/mcp/README.md
packages/mcp/README.md
Why it matters. link not followed
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
.github/workflows/publish-mcp-server.yml:93
cd ../../
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
.github/workflows/publish-mcp-server.yml:206
# Use -L flag to dereference symlinks (e.g., README.md -> ../../README.md)
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
.github/workflows/publish-providers.yml:188
cd ../../
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/EXAMPLE-MCP-PROVIDER/test/tools/sf-example-tool.test.ts:2
import { ExampleMcpTool } from "../../src/tools/example_tool.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/mcp-provider-code-analyzer/src/ast/metadata/pmd-ast-reference.ts:40
const fileUrl = new URL(`../../data/pmd/${normalizedLanguage}-ast-reference.json`, import.meta.url);
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
packages/mcp/DEVELOPING.md:82
3. If successful, open the specified localhost URL in your browser. In this example it's `http://127.0.0.1:6274`:
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
packages/mcp/DEVELOPING.md:85
MCP Inspector is up and running at http://127.0.0.1:6274
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@commitlint/cli, @commitlint/config-conventional, @modelcontextprotocol/inspector, rimraf
Why it matters. 4 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/EXAMPLE-MCP-PROVIDER/package.json
@modelcontextprotocol/sdk, @salesforce/mcp-provider-api, zod, @eslint/js, @types/node, @vitest/coverage-istanbul, eslint, rimraf
Why it matters. 12 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/mcp-provider-api/package.json
@modelcontextprotocol/sdk, @salesforce/core, @salesforce/ts-types, @types/semver, semver, zod, @eslint/js, @types/node
Why it matters. 12 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/mcp-provider-code-analyzer/package.json
@modelcontextprotocol/sdk, @salesforce/code-analyzer-core, @salesforce/code-analyzer-engine-api, @salesforce/code-analyzer-eslint-engine, @salesforce/code-analyzer-pmd-engine, @salesforce/code-analyze
Why it matters. 19 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/mcp-provider-devops/package.json
@modelcontextprotocol/sdk, @salesforce/mcp-provider-api, @salesforce/core, @salesforce/source-deploy-retrieve, @salesforce/ts-types, zod, @eslint/js, @types/node
Why it matters. 15 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-09-30 · audit v0.4.1 · source sha f6f55474dbcdfull audit observations/trust-audit/mcp-server/salesforcecli__salesforce-12.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-30f6f55474dbcdBLOCKD60first audit
06

Questions

What is the Salesforce MCP server?

MCP Server for interacting with Salesforce instances

What tools does Salesforce expose?

15 in total: 15 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Salesforce safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (60/100) and found 5 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does Salesforce need?

No credential environment variables were found in its source, so it appears to need none.

How does Salesforce run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as @salesforce/mcp at 0.30.15.

How current is this page?

The grade is for one exact copy of the source (f6f55474dbcd), read on 2026-09-30. The repository is watched and re-audited when it changes.

Advertisement