simple-salesforce-mcp
simple-salesforce-mcp
Ein leichtgewichtiger Salesforce-MCP-Server. Er spricht direkt über stdio mit der Salesforce-REST-API und hat nur zwei Laufzeitabhängigkeiten (mcp, httpx) – gebaut als schneller Kaltstart-Ersatz für den offiziellen @salesforce/mcp-DX-Server, dessen Abhängigkeitsbaum für Sandbox-Umgebungen zu schwer ist.
Tools
Tool | Schreibend? | Hinweise |
| nein | Roher SOQL-Notausgang mit Paginierung ( |
| nein | Objektübergreifende Volltextsuche (parametrisierte Such-API) |
| nein | Einzelnen Datensatz per Id abrufen, optionale Feldliste |
| ja | Datensatz erstellen |
| ja, bestätigungspflichtig | Erfordert wörtlich |
| ja, bestätigungspflichtig | Erfordert wörtlich |
| nein | Gekürzte Objektmetadaten (Felder, Typen, Pflichtfelder, Auswahllisten) |
| nein | Organisationsobjekte, Systemrauschen standardmäßig gefiltert |
| nein | Aktueller Benutzer, Organisation, Instanz-URL, API-Version |
Jedes Tool trägt MCP-Annotationen (readOnlyHint / destructiveHint / idempotentHint).
update_record und delete_record verweigern die Aktion, es sei denn, der Aufruf enthält confirm: true,
und die Verweigerungsmeldung weist das Modell an, dem Benutzer die genaue Änderung zu präsentieren und zuerst
die Genehmigung einzuholen. SOQL selbst kann keine Daten ändern, daher bleibt der Notausgang schreibgeschützt.
Related MCP server: Salesforce MCP Server
Authentifizierung
Der Server führt selbst keinen OAuth-Flow durch; er konsumiert ein vorhandenes Zugriffstoken, das bei jedem Tool-Aufruf aufgelöst wird (so kann ein externer Prozess das Token jederzeit rotieren):
Salesforce-CLI-Authentifizierungsspeicher unter
$HOME:~/.sf/config.json→{"target-org": "<username>"}(oder veraltet~/.sfdx/sfdx-config.json→{"defaultusername": ...})~/.sfdx/<username>.json→{"accessToken": "...", "instanceUrl": "https://..."}
Dies ist die Form, die
sf org loginschreibt, und die Form, die die JustParent-Plattform in Sandboxes materialisiert (wobei die Plattform das Zugriffstoken vor jedem Aufruf aktualisiert). Refresh-Tokens und Client-Secrets in diesen Dateien werden ignoriert – nie in den Speicher gelesen, gespeichert oder protokolliert.Umgebungsvariablen (Fallback, für lokale/standalone Nutzung):
SALESFORCE_ACCESS_TOKENundSALESFORCE_INSTANCE_URL.
Bei einem abgelehnten Token (HTTP 401 / INVALID_SESSION_ID) liest der Server den Authentifizierungsspeicher
einmal neu und versucht es erneut, dann meldet er, dass die Verbindung neu hergestellt werden muss.
Die REST-API-Version ist standardmäßig 62.0; überschreibbar mit SALESFORCE_API_VERSION.
Ausführen
# 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-/generische-MCP-Client-Konfiguration:
{
"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 (ohne Netzwerk, gibt Version, Anmeldeinformationen-Status und Tools aus; beendet mit 0):
uvx --from . simple-salesforce-mcp --testEntwicklung
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) läuft bei jedem Push und Pull-Request: die Testsuite
auf Python 3.10–3.13, ruff-Lint- und Format-Checks plus mypy, sowie ein Packaging-Job,
der das Paket so installiert, wie es Sandboxes tun (uvx --from .), um
Packaging-Brüche zu erkennen.
Sicherheitshinweise
Nur Zugriffstoken: Der Server fordert, liest oder speichert niemals Refresh-Tokens.
Destruktive Operationen (update/delete) sind hinter einem expliziten
confirm=true-Argument mit modellseitiger Anleitung zur vorherigen Benutzerfreigabe abgesichert.SOQL-Paginierungs-Cursor (
next_url) werden als/services/data/...-Pfade validiert, und Objekt-/Datensatz-Identifikatoren werden validiert, bevor sie in URLs eingefügt werden.Antworten sind größenbegrenzt mit expliziten Kürzungshinweisen.
Available Tools
9 toolscreate_recordA
Create a new Salesforce record. Use describe_object first to find the required fields and valid picklist values.
Inputs: data (required), object_type (required).
delete_recordADestructiveIdempotent
Permanently delete a Salesforce record. Requires confirm=true: first present the deletion to the user and get their approval.
Inputs: confirm (required), record_id (required), object_type (required).
describe_objectARead-onlyIdempotent
Get a Salesforce object's fields: API names, types, required flags, and picklist values. Use before writing SOQL or creating/updating records.
Inputs: object_type (required), detail.
get_org_infoARead-onlyIdempotent
Current Salesforce user, org id/name/type, instance URL, and API version in use. Call this first to establish context.
Inputs: no named parameters.
get_recordARead-onlyIdempotent
Fetch a single Salesforce record by Id.
Inputs: record_id (required), object_type (required), fields.
list_objectsARead-onlyIdempotent
List the org's Salesforce objects (API name and label). System noise (Share/History/Feed/ChangeEvent tables, non-queryable objects) is excluded by default.
Inputs: filter, include_system.
run_soql_queryARead-onlyIdempotent
Run a raw SOQL query against the Salesforce org. Read-only — SOQL cannot modify data. Use this as the escape hatch for anything the other tools don't cover: filtering, joins via relationship fields, aggregates, ORDER BY. Always include a LIMIT for exploratory queries. If a field or object name errors, check the exact API names with describe_object.
Inputs: query, next_url.
search_recordsARead-onlyIdempotent
Full-text search across Salesforce records (name, email, phone, and other searchable fields). Good for 'find the record for X' when you don't know the object or Id. For precise filtering use run_soql_query instead.
Inputs: search_term (required), limit, fields, object_types.
update_recordADestructiveIdempotent
Update fields on an existing Salesforce record. Requires confirm=true: first present the exact change to the user and get their approval.
Inputs: data (required), confirm (required), record_id (required), object_type (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct operation: SOQL query, full-text search, record CRUD by Id, object metadata, and org context. The descriptions explicitly contrast run_soql_query with search_records, and get_record with run_soql_query, leaving no ambiguity.
All tool names follow a clear verb_noun pattern in snake_case: run_soql_query, search_records, get_record, create_record, update_record, delete_record, describe_object, list_objects, get_org_info. The naming is perfectly uniform and predictable.
Nine tools is a well-scoped size for a Salesforce MCP server, covering query, search, CRUD, schema introspection, and org context. Every tool has a clear purpose with no redundant or filler tools.
The set provides complete CRUD lifecycle coverage (create, get, update, delete), plus two read/search mechanisms, object metadata discovery, and org context. It covers the full range of common Salesforce interactions an agent would need, with no glaring dead ends.
Maintenance
Related MCP Connectors
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
One MCP URL for all your connectors — scoped writes, enforced constraints, and a full audit trail.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA focused MCP server for Salesforce CRM that exposes read/write access to standard CRM objects via six tools, designed for multi-tenant gateway deployments.Apache 2.0
- FlicenseBqualityDmaintenanceA customizable MCP server for integrating Salesforce APIs with GenAI applications, supporting SOQL queries, record CRUD, metadata access, and more.138-
- AlicenseAqualityCmaintenanceEnables SOQL queries, SOSL search, and record CRUD operations on a single Salesforce org via MCP, with optional read-only mode.9645 npm1MIT
- AlicenseAqualityDmaintenanceEnables AI agents to interact with Salesforce through MCP, supporting queries, records, metadata, and bulk operations with flexible OAuth authentication.16MIT