sfmc-mcp-server
v0.2.1MCP Server para Salesforce Marketing Cloud: valida queries do Automation Studio antes de rodar.
Values you need
| Variable | What it is | |
|---|---|---|
SFMC_SUBDOMAIN | required | Subdomínio da instância SFMC (a parte antes de .auth.marketingcloudapis.com) |
SFMC_CLIENT_ID | required | Client ID do Installed Package (API Integration Server-to-Server) |
SFMC_CLIENT_SECRET | required secret | Client Secret do Installed Package |
SFMC_ACCOUNT_ID | optional | MID da Business Unit alvo (opcional; usa a BU padrão do package se omitido) |
SFMC_MODE | optional | Modo de operação: "read" (padrão) ou "write" |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add sfmc-mcp-server -e 'SFMC_CLIENT_ID=<SFMC_CLIENT_ID>' -e 'SFMC_CLIENT_SECRET=<SFMC_CLIENT_SECRET>' -e 'SFMC_SUBDOMAIN=<SFMC_SUBDOMAIN>' -- npx -y sfmc-mcp-server@0.2.1Add to
claude_desktop_config.json{
"mcpServers": {
"sfmc-mcp-server": {
"args": [
"-y",
"sfmc-mcp-server@0.2.1"
],
"command": "npx",
"env": {
"SFMC_CLIENT_ID": "<SFMC_CLIENT_ID>",
"SFMC_CLIENT_SECRET": "<SFMC_CLIENT_SECRET>",
"SFMC_SUBDOMAIN": "<SFMC_SUBDOMAIN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"sfmc-mcp-server": {
"args": [
"-y",
"sfmc-mcp-server@0.2.1"
],
"command": "npx",
"env": {
"SFMC_CLIENT_ID": "<SFMC_CLIENT_ID>",
"SFMC_CLIENT_SECRET": "<SFMC_CLIENT_SECRET>",
"SFMC_SUBDOMAIN": "<SFMC_SUBDOMAIN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "SFMC_CLIENT_ID",
"id": "sfmc-client-id",
"password": true,
"type": "promptString"
},
{
"description": "SFMC_CLIENT_SECRET",
"id": "sfmc-client-secret",
"password": true,
"type": "promptString"
},
{
"description": "SFMC_SUBDOMAIN",
"id": "sfmc-subdomain",
"password": true,
"type": "promptString"
}
],
"servers": {
"sfmc-mcp-server": {
"args": [
"-y",
"sfmc-mcp-server@0.2.1"
],
"command": "npx",
"env": {
"SFMC_CLIENT_ID": "${input:sfmc-client-id}",
"SFMC_CLIENT_SECRET": "${input:sfmc-client-secret}",
"SFMC_SUBDOMAIN": "${input:sfmc-subdomain}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.sfmc-mcp-server]
command = "npx"
args = ["-y", "sfmc-mcp-server@0.2.1"]
env = { "SFMC_CLIENT_ID" = "<SFMC_CLIENT_ID>", "SFMC_CLIENT_SECRET" = "<SFMC_CLIENT_SECRET>", "SFMC_SUBDOMAIN" = "<SFMC_SUBDOMAIN>" }For AI agents
- Ask the user for: SFMC_SUBDOMAIN, SFMC_CLIENT_ID, SFMC_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: list_data_extensions, query_data_extension, validate_sql.
- 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