Salesforce
v0.4.0Salesforce CRM MCP server: accounts, contacts, opportunities, leads, tasks, and custom objects
Values you need
| Variable | What it is | |
|---|---|---|
SALESFORCE_CLIENT_ID | required | Salesforce Connected App client ID (recommended path) |
SALESFORCE_CLIENT_SECRET | required secret | Salesforce Connected App client secret (recommended path) |
SALESFORCE_SANDBOX | optional | Set to true for sandbox environments |
SALESFORCE_ACCESS_TOKEN | optional secret | Static access token (alternative to OAuth) |
SALESFORCE_INSTANCE_URL | optional | Salesforce instance URL (required for manual token mode) |
SALESFORCE_CONFIG_DIR | optional | Custom config directory Default: ~/.mcp/salesforce |
SALESFORCE_OAUTH_PORT | optional | OAuth callback port (0 = OS-assigned) Default: 0 |
SALESFORCE_OAUTH_SCOPES | optional | Space-separated OAuth scopes |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add mcp-server-salesforce -e 'SALESFORCE_CLIENT_ID=<SALESFORCE_CLIENT_ID>' -e 'SALESFORCE_CLIENT_SECRET=<SALESFORCE_CLIENT_SECRET>' -- npx -y @mindstone/mcp-server-salesforce@0.3.0Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-server-salesforce": {
"args": [
"-y",
"@mindstone/mcp-server-salesforce@0.3.0"
],
"command": "npx",
"env": {
"SALESFORCE_CLIENT_ID": "<SALESFORCE_CLIENT_ID>",
"SALESFORCE_CLIENT_SECRET": "<SALESFORCE_CLIENT_SECRET>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-server-salesforce": {
"args": [
"-y",
"@mindstone/mcp-server-salesforce@0.3.0"
],
"command": "npx",
"env": {
"SALESFORCE_CLIENT_ID": "<SALESFORCE_CLIENT_ID>",
"SALESFORCE_CLIENT_SECRET": "<SALESFORCE_CLIENT_SECRET>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "SALESFORCE_CLIENT_ID",
"id": "salesforce-client-id",
"password": true,
"type": "promptString"
},
{
"description": "SALESFORCE_CLIENT_SECRET",
"id": "salesforce-client-secret",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp-server-salesforce": {
"args": [
"-y",
"@mindstone/mcp-server-salesforce@0.3.0"
],
"command": "npx",
"env": {
"SALESFORCE_CLIENT_ID": "${input:salesforce-client-id}",
"SALESFORCE_CLIENT_SECRET": "${input:salesforce-client-secret}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-server-salesforce]
command = "npx"
args = ["-y", "@mindstone/mcp-server-salesforce@0.3.0"]
env = { "SALESFORCE_CLIENT_ID" = "<SALESFORCE_CLIENT_ID>", "SALESFORCE_CLIENT_SECRET" = "<SALESFORCE_CLIENT_SECRET>" }For AI agents
- Ask the user for: SALESFORCE_CLIENT_ID, SALESFORCE_CLIENT_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: salesforce_connect_account, salesforce_list_connected_accounts, salesforce_disconnect_account, salesforce_get_accounts, salesforce_create_account, salesforce_update_account, salesforce_get_contacts, salesforce_create_contact, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json