Skip to content
VS Code

sfmc mcp server for VS Code

io.github.inefavel/sfmc-mcp-server

MCP Server para Salesforce Marketing Cloud: valida queries do Automation Studio antes de rodar.

client:VS Code transport:stdio runtime:npm

Install sfmc mcp server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "sfmc-subdomain",
      "description": "SFMC_SUBDOMAIN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "sfmc-client-id",
      "description": "SFMC_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "sfmc-client-secret",
      "description": "SFMC_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "sfmc-account-id",
      "description": "SFMC_ACCOUNT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "sfmc-mode",
      "description": "SFMC_MODE",
      "password": true
    }
  ],
  "servers": {
    "sfmc-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sfmc-mcp-server"
      ],
      "env": {
        "SFMC_SUBDOMAIN": "${input:sfmc-subdomain}",
        "SFMC_CLIENT_ID": "${input:sfmc-client-id}",
        "SFMC_CLIENT_SECRET": "${input:sfmc-client-secret}",
        "SFMC_ACCOUNT_ID": "${input:sfmc-account-id}",
        "SFMC_MODE": "${input:sfmc-mode}"
      }
    }
  }
}

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

sfmc mcp server in other clients