Salesforce MCP Server
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 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/BaNburger/salesfoce-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server