Salesforce MCP Server logo

Salesforce MCP Server

by @advanced-communities

Connects AI assistants to Salesforce orgs for Apex execution, data queries, object inspection, and CLI-managed org access.

Install Salesforce MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "advanced-communities-salesforce-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@advanced-communities/salesforce-mcp-server"
      ],
      "env": {
        "READ_ONLY": "YOUR_VALUE_HERE",
        "ALLOWED_ORGS": "YOUR_VALUE_HERE",
        "USE_CLIENT_BROWSER": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 47 tools correctly (2d ago).

Overview

@advanced-communities/salesforce-mcp-server connects MCP-compatible AI assistants to Salesforce organizations through the Salesforce CLI. Its tools let models execute Apex, query Salesforce data, inspect object metadata, and work with authenticated org connections. Reach for it when an agent needs controlled Salesforce access from a local development environment. Read-only mode and an organization allowlist provide configuration options for limiting access.

Use cases

  • Execute Apex code from an AI coding assistant
  • Query Salesforce records through natural-language requests
  • Inspect Salesforce object metadata
  • Restrict an assistant to selected authenticated orgs

Key features

  • Apex execution
  • Salesforce data queries
  • Object description and metadata inspection
  • Salesforce CLI-based org connections
  • Read-only mode
  • Authenticated-org allowlisting

Tools47

What Salesforce MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~14.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

What it can do

From the 47 tools this server returned when we ran it; 47 declare their own safety hints.

Runs commands · 7Can delete or modify data · 26Handles credentials · 3Makes network requests · 47Read-only tools · 16
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age455 days
Maintainers2

Observed 2026-11-05 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @advanced-communities/salesforce-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars37Stargazers on the source repository.
npm downloads2.2kPackage downloads in the last 30 days.
Last commit24d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed47Callable tools this server registers over MCP.

How Salesforce MCP Server works

What @advanced-communities/salesforce-mcp-server does

@advanced-communities/salesforce-mcp-server exposes Salesforce operations to MCP-compatible AI clients. It uses the Salesforce CLI as the connection layer, allowing an assistant to work with authenticated Salesforce organizations without implementing a separate Salesforce authentication flow in the MCP server.

The available capabilities cover four main areas: running Apex code, querying Salesforce data, describing Salesforce objects, and managing connections to Salesforce orgs. This makes the server suitable for development, troubleshooting, metadata inspection, and controlled data-access workflows where an AI assistant needs to interact with a Salesforce environment.

How it works

The server runs as a local command-based MCP process. Clients start it with npx @advanced-communities/salesforce-mcp-server, and the process communicates with the client through the MCP stdio configuration. Salesforce CLI must be installed and configured on the same machine, with at least one authenticated org available for use.

Salesforce CLI handles the underlying org access. The MCP client supplies the assistant interface, while the server translates supported requests into Salesforce operations exposed through the CLI. Multiple authenticated orgs can be restricted with an allowlist, and read-only mode can be enabled when write-capable behavior should be disabled.

Setup and configuration

The runtime prerequisites are Node.js 22 or newer, the Salesforce CLI (sf), and at least one authenticated Salesforce org. The simplest installation starts the package directly with npx:

Terminal
npx @advanced-communities/salesforce-mcp-server

The package can also be installed through an MCP bundle, built from source with npm install && npm run build, or configured directly in an MCP client. A source build produces build/index.js.

The documented client setup uses a command of npx and an argument containing @advanced-communities/salesforce-mcp-server. Supported setup examples cover Claude Desktop, Claude Code, Codex CLI, VS Code, and Cursor. An MCP bundle can be installed by downloading the latest .mcpb release and opening it with the client.

Optional environment variables include:

  • READ_ONLY=true to enable read-only operation.
  • ALLOWED_ORGS=dev,qa,staging to limit access to named orgs.
  • USE_CLIENT_BROWSER=true to open orgs and records in the client's built-in browser where supported.

Tools and capabilities

The server provides tools for:

  • Executing Apex code in a Salesforce org.
  • Querying Salesforce data.
  • Describing Salesforce objects and their metadata.
  • Managing Salesforce org connections through the Salesforce CLI.
  • Restricting operation to read-only access or selected authenticated orgs through configuration.

Limitations and notes

The Salesforce CLI is a required dependency, and the CLI must already have access to at least one authenticated Salesforce org. The server is intended for MCP clients that can launch a local command process. Access boundaries depend on the authenticated Salesforce CLI state and the configured restrictions, so production use should be paired with appropriate org authentication and READ_ONLY or ALLOWED_ORGS settings where needed.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Salesforce MCP Server

@advanced-communities/salesforce-mcp-server is an MCP server that connects AI assistants to Salesforce organizations through the Salesforce CLI. Its main tools execute Apex code, query Salesforce data, describe objects, and manage org connections. It requires Node.js 22+, the Salesforce CLI, and at least one authenticated Salesforce org.

Install it by running `npx @advanced-communities/salesforce-mcp-server` after installing Node.js 22+, Salesforce CLI, and authenticating a Salesforce org. You can also install the latest MCP bundle or clone the repository and build it with `npm install && npm run build`.

Yes, it works with Cursor through a local MCP command configuration. Add `npx` as the command and `@advanced-communities/salesforce-mcp-server` as its argument in Cursor's MCP settings, then optionally provide variables such as `READ_ONLY` or `ALLOWED_ORGS`.

Set `READ_ONLY=true` in the MCP server environment configuration. The setting can be added in clients such as Claude Desktop, Claude Code, Codex CLI, VS Code, or Cursor, depending on the client's configuration format.

Set `ALLOWED_ORGS` to a comma-separated list of permitted org names, such as `dev,qa,staging`. The server uses that setting to restrict access to the selected authenticated Salesforce orgs.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSalesforce MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/advanced-communities-salesforce-mcp-server?style=directory)](https://allmcps.com/mcp/advanced-communities-salesforce-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/advanced-communities-salesforce-mcp-server"><img src="https://allmcps.com/api/badge/advanced-communities-salesforce-mcp-server?style=directory" alt="Salesforce MCP Server on AllMCPs" /></a>