Skip to content
VS Code

Salesforce for VS Code

io.github.wyre-technology/salesforce-mcp

MCP server for Salesforce CRM — Accounts, Contacts, Opportunities, Leads, Cases.

client:VS Code transport:stdio runtime:oci

Install Salesforce in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "auth-mode",
      "description": "AUTH_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "salesforce-auth-flow",
      "description": "SALESFORCE_AUTH_FLOW",
      "password": true
    },
    {
      "type": "promptString",
      "id": "salesforce-client-id",
      "description": "SALESFORCE_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "salesforce-client-secret",
      "description": "SALESFORCE_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "salesforce-instance-url",
      "description": "SALESFORCE_INSTANCE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "salesforce-username",
      "description": "SALESFORCE_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "salesforce-password",
      "description": "SALESFORCE_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "salesforce-token",
      "description": "SALESFORCE_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-transport",
      "description": "MCP_TRANSPORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "log-level",
      "description": "LOG_LEVEL",
      "password": true
    }
  ],
  "servers": {
    "salesforce-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/wyre-technology/salesforce-mcp:v1.0.3"
      ],
      "env": {
        "AUTH_MODE": "${input:auth-mode}",
        "SALESFORCE_AUTH_FLOW": "${input:salesforce-auth-flow}",
        "SALESFORCE_CLIENT_ID": "${input:salesforce-client-id}",
        "SALESFORCE_CLIENT_SECRET": "${input:salesforce-client-secret}",
        "SALESFORCE_INSTANCE_URL": "${input:salesforce-instance-url}",
        "SALESFORCE_USERNAME": "${input:salesforce-username}",
        "SALESFORCE_PASSWORD": "${input:salesforce-password}",
        "SALESFORCE_TOKEN": "${input:salesforce-token}",
        "MCP_TRANSPORT": "${input:mcp-transport}",
        "LOG_LEVEL": "${input:log-level}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Salesforce in other clients