salesforce-mcp
Provides tools for reading and safely writing to a Salesforce pipeline, including listing open opportunities, searching, pipeline summaries, account/contact access, plus narrowly-scoped writes to log activities and update specific opportunity fields.
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-mcpwhat's the total value of my open pipeline?"
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-mcp
A small MCP server that lets an AI agent read a Salesforce pipeline and write back to it — safely.
What it does
Give an LLM tool access to your Salesforce org and it can answer "what's in my pipeline," "what's gone quiet," or "log that I called Acme today" directly from a chat interface, instead of you tabbing over to Salesforce. This server is the bridge: it exposes a handful of MCP tools that wrap the Salesforce REST API.
Read tools — open-ended, SOQL-backed:
Tool | What it returns |
| Open deals, earliest close first |
| One Opportunity by Id |
| Fuzzy match by deal or account name |
| Total value, deal count, stage breakdown |
| Accessible Accounts |
| Contacts, optionally scoped to an Account |
| Confirms the connection and identity |
Write tools — deliberately narrow:
Tool | What it can do | What it structurally cannot do |
| Create a | Create anything else |
| Set | Touch any other field or object |
Related MCP server: @dormon/salesforce-mcp
Why the write surface is this narrow
Handing an LLM a Salesforce API key is handing it delete access to a company's revenue data. The usual mitigation is a system prompt telling the model to "only update these fields" — which is a suggestion, not a boundary, and every prompt-injection writeup of the last two years is a demonstration of what happens to suggestions.
This server draws the boundary in code instead. update_opportunity
takes a fields dict, diffs its keys against a four-item allowlist,
and refuses the entire call — before a single HTTP request is
built — if anything outside that set is present. log_activity calls
the client's create() with a hardcoded sobject name; there is no
tool exposed to the model that takes an arbitrary sobject and payload
and creates it. An LLM driving this server cannot delete a record,
cannot create an Account or Contact, and cannot write an
unauthorized field — not because it was told not to, but because
those code paths don't exist. See tests/test_server_write_guards.py
for the guardrail tests, including the mixed-payload case (one bad
field in an otherwise-valid update refuses the whole write, so a
partial-apply can never silently drop part of the caller's intent).
SOQL injection gets the same treatment as the write surface: every
Salesforce Id that reaches a query is validated against Salesforce's
own 15/18-character Id format first (guards.validate_record_id),
and every piece of free text is escaped per SOQL's quoted-string
rules (guards.escape_soql_literal / escape_soql_like) rather than
trusted. See tests/test_guards.py, including an explicit
' OR '1'='1 injection-attempt case.
Setup
Create a Connected App in your Salesforce org (Setup → App Manager → New Connected App), enable OAuth, and note the consumer key/secret.
Get a refresh token once, via the standard OAuth web-server flow against that Connected App — Salesforce's own Connected App walkthrough covers this in a few steps. You only do this once; the server exchanges the refresh token for short-lived access tokens on every run.
Configure: copy
.env.exampleto.envand fill inSF_CLIENT_ID,SF_CLIENT_SECRET,SF_REFRESH_TOKEN(andSF_LOGIN_BASE_URLif you're pointed at a sandbox).Install and run:
pip install -e ".[dev]" python -m salesforce_mcp.serverOr point any MCP client (Claude Desktop, etc.) at
salesforce-mcpas the command.
Testing
pip install -e ".[dev]"
pytestTests run entirely offline — test_salesforce_client.py uses
httpx.MockTransport to simulate the Salesforce REST API (auth,
pagination, rate limits, error responses), and
test_server_write_guards.py substitutes a fake client to verify the
allowlist logic fires before any request would be built. No live org
or network access is required to run the suite.
What this deliberately is not
This is a clean-room extraction of one capability — read/write access to a Salesforce pipeline — built to be a self-contained, readable example of that pattern. It is not a general-purpose Salesforce SDK, does not implement the Bulk or Streaming APIs, and does not include any of the agent orchestration, evaluation harness, or product logic it was extracted alongside. What you're looking at is the whole repo.
License
MIT — see LICENSE.
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.
Related MCP Servers
- Alicense-qualityAmaintenanceMCP server for Salesforce that exposes CLI, REST, Connect, Data 360, Bulk 2.0, and Einstein Models APIs as tools for any MCP-compatible client to manage orgs, data, and metadata.Apache 2.0
- Alicense-qualityAmaintenanceEnhanced MCP server for interacting with Salesforce orgs, featuring concurrency safety, error recovery guidance, structured output, smart schema caching, and MCP Resources for AI agents.Apache 2.0
- Alicense-qualityDmaintenanceA Model Context Protocol server that connects AI assistants to Salesforce orgs, enabling querying, searching, creating, updating, and managing Salesforce data through natural language via any MCP-compatible client.45MIT
- Flicense-qualityCmaintenanceExposes Salesforce as tools for MCP clients, allowing AI to run SOQL queries, describe objects, create contacts, and check org limits directly from natural language, with least-privilege guardrails.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/hughrobertson19/shayke-public'
If you have feedback or need assistance with the MCP directory API, please join our Discord server