simple-salesforce-mcp
Provides tools for interacting with the Salesforce REST API, including running SOQL queries, searching records, getting/creating/updating/deleting records, describing objects, listing objects, and fetching org information. Update and delete operations require explicit confirmation.
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., "@simple-salesforce-mcpRun a SOQL query to get the 10 most recent accounts"
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.
simple-salesforce-mcp
A lightweight Salesforce MCP server. Talks straight to the
Salesforce REST API over stdio with two runtime dependencies (mcp, httpx) — built as a
fast-cold-start replacement for the official @salesforce/mcp DX server, whose dependency
tree is too heavy for sandboxed environments.
Tools
Tool | Writes? | Notes |
| no | Raw SOQL escape hatch with pagination ( |
| no | Cross-object full-text search (parameterized search API) |
| no | Fetch one record by Id, optional field list |
| yes | Create a record |
| yes, confirm-gated | Requires literal |
| yes, confirm-gated | Requires literal |
| no | Trimmed object metadata (fields, types, required, picklists) |
| no | Org objects, system noise filtered by default |
| no | Current user, org, instance URL, API version |
Every tool carries MCP annotations (readOnlyHint / destructiveHint / idempotentHint).
update_record and delete_record refuse to act unless the call includes confirm: true,
and the refusal message instructs the model to present the exact change to the user and get
approval first. SOQL itself cannot modify data, so the escape hatch stays read-only.
Related MCP server: Salesforce MCP Server
Authentication
The server performs no OAuth flow itself; it consumes an existing access token, resolved on every tool call (so an external process may rotate the token at any time):
Salesforce CLI auth store under
$HOME:~/.sf/config.json→{"target-org": "<username>"}(or legacy~/.sfdx/sfdx-config.json→{"defaultusername": ...})~/.sfdx/<username>.json→{"accessToken": "...", "instanceUrl": "https://..."}
This is the shape written by
sf org login, and the shape the JustParent platform materialises into sandboxes (with the platform refreshing the access token before each call). Refresh tokens and client secrets in these files are ignored — never read into memory, stored, or logged.Environment variables (fallback, for local/standalone use):
SALESFORCE_ACCESS_TOKENandSALESFORCE_INSTANCE_URL.
On a rejected token (HTTP 401 / INVALID_SESSION_ID) the server re-reads the auth store
once and retries, then reports that the connection needs to be re-established.
The REST API version defaults to 62.0; override with SALESFORCE_API_VERSION.
Running
# Standalone with env vars (get a token via: sf org display --json)
SALESFORCE_ACCESS_TOKEN=... \
SALESFORCE_INSTANCE_URL=https://yourorg.my.salesforce.com \
uvx --from git+https://github.com/JustParent/simple-salesforce-mcp simple-salesforce-mcpClaude Desktop / generic MCP client config:
{
"mcpServers": {
"salesforce": {
"command": "uvx",
"args": ["--from", "git+https://github.com/JustParent/simple-salesforce-mcp", "simple-salesforce-mcp"],
"env": {
"SALESFORCE_ACCESS_TOKEN": "...",
"SALESFORCE_INSTANCE_URL": "https://yourorg.my.salesforce.com"
}
}
}
}Smoke test (no network, prints version, credential status, and tools; exits 0):
uvx --from . simple-salesforce-mcp --testDevelopment
uv run pytest # unit tests, no network needed
uv run ruff check . # lint
uv run ruff format . # format (--check to verify only)
uv run mypy # type check (src and tests)
uv run simple-salesforce-mcp --test
npx @modelcontextprotocol/inspector uv run simple-salesforce-mcp # interactiveCI (.github/workflows/tests.yml) runs on every push and pull request: the test
suite on Python 3.10–3.13, ruff lint and format checks plus mypy, and a packaging
job that installs the package the way sandboxes do (uvx --from .) to catch
packaging breakage.
Security notes
Access-token only: the server never requests, reads, or persists refresh tokens.
Destructive operations (update/delete) are gated behind an explicit
confirm=trueargument with model-facing guidance to obtain user approval first.SOQL pagination cursors (
next_url) are validated to be/services/data/...paths, and object/record identifiers are validated before being placed in URLs.Responses are size-capped with explicit truncation notices.
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
- AlicenseNot gradedqualityAmaintenanceA focused MCP server for Salesforce CRM that exposes read/write access to standard CRM objects via six tools, designed for multi-tenant gateway deployments.19MIT
- FlicenseBqualityDmaintenanceA customizable MCP server for integrating Salesforce APIs with GenAI applications, supporting SOQL queries, record CRUD, metadata access, and more.137
- AlicenseAqualityAmaintenanceEnables SOQL queries, SOSL search, and record CRUD operations on a single Salesforce org via MCP, with optional read-only mode.953MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with Salesforce through MCP, supporting queries, records, metadata, and bulk operations with flexible OAuth authentication.MIT
Related MCP Connectors
Run SOQL queries to explore and retrieve Salesforce data. Access accounts, contacts, opportunities…
Search, document and execute authenticated API calls across 700+ apps via one MCP server
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
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/JustParent/simple-salesforce-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server