Salesforce MCP Server
Click on "Deploy 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 ServerHow many Accounts do we have?"
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 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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Run UX research from Claude — create card sort studies, list studies, pull headline stats.
Live SEO workflow tools for Claude Code, Codex, and AI agents.
Your professional network in Claude — search contacts, log notes, and send warm intros.
One workspace of tools for Claude and ChatGPT: connect 600+ apps, generate media, build tools.
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.1,3601MIT
- AlicenseAqualityDmaintenanceIntegrates Claude with Salesforce for natural language interactions with Salesforce data and metadata, enabling querying, modifying, and managing objects and records.2018MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying and managing Salesforce records using SOQL, CRUD operations, and schema exploration through natural language or direct tool calls.5MIT
- FlicenseNot 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.-