Sfmc MCP Server

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

Local serverstdio

What is the Sfmc MCP server?

Sfmc MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MCP Server para Salesforce Marketing Cloud: valida queries do Automation Studio antes de rodar.

What you get

Quem opera SFMC conhece a rotina: você escreve uma Query Activity, salva, roda a automação — e 30 minutos depois descobre que digitou EmailAdress em vez de EmailAddress. Ou que usou um ORDER BY, que o dialeto do Automation Studio não suporta. Ou que a coluna de saída não existe na DE de destino.

Setting it up

sfmc-mcp-server on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

What the assistant can call

Once Sfmc is connected, these are the calls the assistant has available:

  • Automations — Read
  • validate_sql — Valida uma Query Activity antes de executar: regras do dialeto restrito do SFMC + checagem de que as DEs e colunas realmente existem
  • list_data_extensions — Lista DEs com metadados, filtro por nome, paginação e schema completo
  • query_data_extension — Consulta registros com filtro, ordenação e paginação

Configuration and credentials

You will need 5 environment variables: SFMC_SUBDOMAIN, SFMC_CLIENT_ID, SFMC_CLIENT_SECRET, SFMC_MODE, SFMC_ACCOUNT_ID. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the sfmc mcp server does with a few real requests.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Sfmc's toolset — Automations, validate_sql, list_data_extensions and 1 more — is a fair guide to whether it matches your workflow. It is maintained by Inefavel; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
AutomationsRead
validate_sqlValida uma Query Activity **antes** de executar: regras do dialeto restrito do SFMC + checagem de que as DEs e colunas realmente existem
list_data_extensionsLista DEs com metadados, filtro por nome, paginação e schema completo
query_data_extensionConsulta registros com filtro, ordenação e paginação

How to install the Sfmc MCP server

{
  "mcpServers": {
    "sfmc": {
      "command": "npx",
      "args": ["-y", "sfmc-mcp-server"],
      "env": {
        "SFMC_SUBDOMAIN": "mcXXXXXXXXXXXXXXXXXXXXXX",
        "SFMC_CLIENT_ID": "seu_client_id",
        "SFMC_CLIENT_SECRET": "seu_client_secret",
        "SFMC_MODE": "read"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
SFMC_SUBDOMAINConfiguration value read at startup.Optional
SFMC_CLIENT_IDConfiguration value read at startup.Optional
SFMC_CLIENT_SECRETCredential the server authenticates with.Yes
SFMC_MODEConfiguration value read at startup.Optional
SFMC_ACCOUNT_IDConfiguration value read at startup.Optional

Example prompts to try

  • Use Sfmc to Automations.
  • Use Sfmc to validate sql.
  • Use Sfmc to list data extensions.

Frequently asked questions

It connects Sfmc to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (Automations, validate_sql, list_data_extensions, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Sfmc directly.