Salesforce

v0.4.0
io.github.mindstone/mcp-server-salesforce Checked 2 days ago Published 1 day ago

Salesforce CRM MCP server: accounts, contacts, opportunities, leads, tasks, and custom objects

Values you need

VariableWhat it is
SALESFORCE_CLIENT_IDrequired Salesforce Connected App client ID (recommended path)
SALESFORCE_CLIENT_SECRETrequired secret Salesforce Connected App client secret (recommended path)
SALESFORCE_SANDBOXoptional Set to true for sandbox environments
SALESFORCE_ACCESS_TOKENoptional secret Static access token (alternative to OAuth)
SALESFORCE_INSTANCE_URLoptional Salesforce instance URL (required for manual token mode)
SALESFORCE_CONFIG_DIRoptional Custom config directory Default: ~/.mcp/salesforce
SALESFORCE_OAUTH_PORToptional OAuth callback port (0 = OS-assigned) Default: 0
SALESFORCE_OAUTH_SCOPESoptional 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.0
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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