Salesforce MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Salesforce MCP Server
An MCP (Model Context Protocol) server that lets Claude query, create, update, and delete Salesforce records directly — using the Simple Salesforce Python package.
Quickstart
1. Install dependencies
pip3 install mcp simple-salesforce2. Get your Salesforce credentials
See .env.example for the required variables. The server reads these from environment variables passed via the Claude config below.
Variable | Where to find it |
| Your Salesforce login email |
| Your Salesforce password |
| Salesforce > Settings > Reset My Security Token (docs) |
| Your My Domain prefix, e.g. |
3. Add to Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"salesforce": {
"command": "python3",
"args": ["/absolute/path/to/salesforce-mcp-server/server.py"],
"env": {
"SF_USERNAME": "your.name@company.com",
"SF_PASSWORD": "your-password",
"SF_SECURITY_TOKEN": "your-token",
"SF_DOMAIN": "your-org.my"
}
}
}
}Restart Claude Desktop. The Salesforce tools should appear in the tool picker.
3b. Add to Claude Code (alternative)
Add to ~/.claude.json or a project-level .mcp.json:
{
"mcpServers": {
"salesforce": {
"command": "python3",
"args": ["/absolute/path/to/salesforce-mcp-server/server.py"],
"env": {
"SF_USERNAME": "your.name@company.com",
"SF_PASSWORD": "your-password",
"SF_SECURITY_TOKEN": "your-token",
"SF_DOMAIN": "your-org.my"
}
}
}
}Related MCP server: Salesforce MCP Server
Available Tools
Metadata
Tool | Parameters | Description |
| — | List all queryable objects in the org |
|
| Get all fields, types, and labels for an object |
Query
Tool | Parameters | Description |
|
| Run a SOQL query (up to 2000 records) |
|
| Run a SOQL query with auto-pagination (up to 10k records) |
|
| Run a SOSL search across multiple objects |
|
| Quick record count |
Create / Update / Delete
Tool | Parameters | Description |
|
| Create a new record |
|
| Update a record |
|
| Delete a record |
|
| Upsert by external ID |
Example prompts
Once connected, you can ask Claude things like:
"How many Accounts do we have?"
"Show me all Contacts created this month"
"What fields does the Opportunity object have?"
"Create a new Contact with name Jane Doe and email jane@example.com"
"Find all Accounts in the Technology industry with revenue over 1M"
Troubleshooting
ModuleNotFoundError: No module named 'mcp'
Run pip3 install mcp simple-salesforce (you may need --break-system-packages on macOS with Homebrew Python).
Authentication failed
Double-check your security token — it resets whenever you change your password. Get a new one from Salesforce Settings > Reset My Security Token.
SF_DOMAIN format
Use just the My Domain prefix without .salesforce.com. For https://mycompany.my.salesforce.com, use mycompany.my.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Solk CRM for Claude: accounts, pipeline, visits, quotes, orders and tickets with your permissions.
Read and write NetSuite and run SuiteQL from Claude or ChatGPT. Write tools flagged for approval.
Read and write Sage Intacct from Claude or ChatGPT. Write tools are flagged for approval.
Create contacts, move deals, send proposals and invoices, read your inbox, from Claude or ChatGPT.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates Claude with Salesforce to enable natural language querying, modification, and management of Salesforce records and metadata. It supports comprehensive operations including object/field management, SOSL searches, and Apex code execution.1MIT
- AlicenseAqualityDmaintenanceIntegrates Claude with Salesforce for natural language interactions with Salesforce data and metadata, enabling querying, modifying, and managing objects and records.2021 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables querying and managing Salesforce records using SOQL, CRUD operations, and schema exploration through natural language or direct tool calls.106 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to interact with Salesforce for querying, modifying, and managing objects and records, with automatic integration setup for external services like WhatsApp, Slack, email, and webhooks.MIT