SalesforceBLOCK
MCP server that enables AI assistants to interact with Salesforce orgs through the Salesforce CLI, providing tools for Apex execution, SOQL queries, metadata management, code analysis, and development automation.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://www.npmjs.com/package/@advanced-communities/salesforce-mcp-server) [](https://www.npmjs.com/package/@advanced-communities/salesforce-mcp-server) [](https://github.com/advancedcommunities/salesforce-mcp-server/releases) [](https://github.com/advancedcommunities/salesforce-mcp-server/blob/main/LICENSE)
What is it
Salesforce MCP Server is a Model Context Protocol (MCP) server that enables AI assistants to interact with Salesforce organizations. It provides a set of tools that allow AI models to execute Apex code, query data, describe objects, and manage Salesforce org connections through the Salesforce CLI.
NPM Package: @advanced-communities/salesforce-mcp-server
Installation
Prerequisites
- Node.js (v22 or higher)
- Salesforce CLI (`sf`) installed and configured
- At least one authenticated Salesforce org
Option 1: NPM Installation (Recommended)
The easiest way to install Salesforce MCP Server is directly from NPM using npx:
npx @advanced-communities/salesforce-mcp-server
This command will:
- Download the latest version from NPM
- Run the server directly without manual installation
- Automatically handle all dependencies
Benefits of NPM Installation:
- ✅ No manual building required
- ✅ Always get the latest stable version
- ✅ Automatic dependency management
- ✅ Easy updates with
npm update - ✅ No need to clone the repository
Option 2: MCP Bundle
41e571bc9836OBSERVED · 2026-10-08Connect
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. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add salesforce-mcp-server -- npx -y @advanced-communities/[email protected]
Exposed tools (40)
23 read · 14 write · 3 destructive. Blast radius: 3 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
apex_get_log | read | |
apex_log_list | read | |
assign_permission_set | write | |
assign_permission_set_license | write | |
clear_default_org | destructive | |
create_record | write | |
delete_record | destructive | |
deploy_start | write | |
display_user | read | |
execute_anonymous_apex | write | |
generate_class | read | |
generate_component | read | |
generate_trigger | write | |
get_apex_code_coverage | read | |
get_apex_test_results | read | |
get_default_org | read | |
get_server_permissions | read | |
install_skill | write | |
list_code_analyzer_rules | read | |
list_connected_salesforce_orgs | read | |
list_metadata | read | |
list_metadata_types | read | |
login_into_org | read | |
logout | read | |
open | read | |
open_record | read | |
package_install | write | |
package_uninstall | destructive | |
query_records | read | |
query_records_to_file | read | |
run_apex_tests | write | |
run_code_analyzer | write | |
scanner_run | write | |
scanner_run_dfa | write | |
schema_generate_tab | read | |
search_records | read | |
set_default_org | write | |
sobject_describe | read | |
sobject_list | read | |
update_record | write |
Trust audit
BLOCKgrade D · trust 64/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (3 observation(s))
- Network
- declared (1 observation(s))
- Shell
- declared (4 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (11)
exec(command, (error, stdout, stderr) =>
exec(command, (error, stdout, stderr) => {exec(
exec(
"/usr/local/bin/sf",
"/usr/local/bin/sf",
clear_default_org, delete_record, package_uninstall
"posixQuote: exec() (the sfCommand.ts path) does not run injected commands",
@modelcontextprotocol/sdk, @salesforce/apex-node, @salesforce/core, zod, @anthropic-ai/mcpb, @types/node, typescript
**Full access to specific orgs only:**
- Users migrating from `generate_frontdoor_url` should use `open` with `USE_CLIENT_BROWSER=true` environment variable
Gates applied: no_behavioural_pass.
41e571bc9836full audit observations/trust-audit/mcp-server/advancedcommunities__salesforce-11.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 41e571bc9836 | BLOCK | D | 64 | first audit |
Questions
What is the Salesforce MCP server?
MCP server that enables AI assistants to interact with Salesforce orgs through the Salesforce CLI, providing tools for Apex execution, SOQL queries, metadata management, code analysis, and development automation.
What tools does Salesforce expose?
40 in total: 23 read-only, 14 that write, and 3 that can delete or overwrite (clear_default_org, delete_record, package_uninstall). 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 (64/100) and found 4 critical or high issues in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 3 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Salesforce need?
It reads SFMCP_TEST_SECRET from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Salesforce run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @advanced-communities/salesforce-mcp-server at 1.7.0.
How current is this page?
The grade is for one exact copy of the source (41e571bc9836), read on 2026-10-08. The repository is watched and re-audited when it changes.