Salesforce MCP Server
Provides read-only tools for interacting with Salesforce orgs, including listing orgs, retrieving org info, running SOQL queries, describing sObjects, listing metadata, getting field dependencies, and finding fields in reports. Writes to production orgs are structurally blocked.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Salesforce MCP Serverrun SOQL: SELECT Name FROM Account LIMIT 10"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 tosf. No state, no auth handling of its own —sfalready 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 buildRunning the MCP server
node packages/mcp-server/dist/index.jsPoint 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"]
}
}
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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