Skip to main content
Glama
NeverEndingCode

Salesforce MCP Server

Salesforce CLI MCP Server

Monorepo with two packages, both built on top of the local sf CLI:

  • packages/sf-core — shared engine that shells out to sf. No state, no auth handling of its own — sf already owns org authorization locally (sf org login web). Includes the Production write-block guard (see below).

  • packages/mcp-server — MCP server (stdio transport) exposing read-only tools: list_orgs, get_org_info, run_soql, describe_sobject, list_metadata, get_field_dependencies, find_field_in_reports.

Production safety

Production orgs can be connected and read from, but writes/deploys to Production are structurally blocked, not just discouraged. sf-core classifies every target org via SELECT IsSandbox FROM Organization (the authoritative source, not CLI alias metadata) and gates any raw/write-capable command with a default-deny allowlist of read-only sf subcommands when the org is Production. This guard lives in sf-core, so every caller — current and future MCP tools alike — inherits it automatically. See packages/sf-core/src/rawCommand.ts and classify.ts.

Related MCP server: Salesforce MCP Server

Prerequisites

  • Node.js 18+ and npm

  • Salesforce CLI (sf) installed and at least one org authorized: sf org login web --alias my-org

Setup

npm install
npm run build

Running the MCP server

node packages/mcp-server/dist/index.js

Point your MCP client (e.g. Claude Desktop's claude_desktop_config.json) at this command with an absolute path, or publish the package and run it via npx. Example claude_desktop_config.json entry:

{
  "mcpServers": {
    "salesforce": {
      "command": "node",
      "args": ["/absolute/path/to/salesforce-mcp/packages/mcp-server/dist/index.js"]
    }
  }
}
A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    A
    maintenance
    Enables secure interaction with Salesforce orgs through LLMs, providing tools for managing orgs, querying data, deploying metadata, running tests, and performing code analysis. Features granular access control and uses encrypted auth files to avoid exposing secrets in plain text.
    Last updated
    452
    Apache 2.0
  • F
    license
    -
    quality
    D
    maintenance
    Provides a unified, read-only interface for executing SQL queries across multiple database engines including SQL Server, MySQL, and PostgreSQL via CLI tools. It features automatic project configuration detection and strict query validation to ensure safe AI-driven data interactions.
    Last updated
  • F
    license
    -
    quality
    B
    maintenance
    Provides read-only access to Salesforce orgs via MCP, enabling SOQL queries, sObject descriptions, and object listing using OAuth 2.0 Client Credentials.
    Last updated

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NeverEndingCode/salesforce-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server