SFMC AMPscript, SSJS, GTL: validation, lookup, review, and prompts via MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Server Sfmc.
validate_ampscriptValidate AMPscript code β unknown functions, arity, delimiter balance, comment syntax. `target: 'next'` flags MCN-incompatible functions.
validate_ssjsValidate SSJS β ES6+ usage, missing Platform.Load, wrong API calls. `target: 'next'` flags all SSJS as unsupported.
validate_sfmc_htmlValidate HTML with embedded AMPscript, SSJS, and GTL blocks. `target: 'next'` enables MCN validation.
lookup_ampscript_functionFull signature, parameters, return type, MCN compatibility badge (API version), behavioral notes for MCN, and examples
lookup_ssjs_functionFull signature and description for any SSJS Platform function or method
list_ampscript_functionsList all AMPscript functions, optionally filtered by `platform: 'next'` to return only MCN-supported functions
MCP server providing Salesforce Marketing Cloud language intelligence β AMPscript, SSJS, GTL, and Marketing Cloud Next (MCN) Handlebars β as Model Context Protocol tools, resources, and prompts for AI-assisted development and code review. Ships two searchable doc indexes: MCE help (Salesforce Help for Marketing Cloud Engagement administration and setup) and MCN developer docs (Marketing Cloud Next REST API and developer reference). Includes full Marketing Cloud Next (MCN) platform awareness: auto-detects whether a project targets MCE or MCN, restricts completions and validation to MCN-supported functions, flags SSJS as unsupported in MCN, surfaces MCN behavioral differences in hover and diagnostics, validates MCN Handlebars templates, and provides a migration toolkit to analyze and rewrite code for MCN β including AMPscript β Handlebars and SSJS β Handlebars conversion.
Built on sfmc-language-lsp, the same engine that powers the SFMC Language Service VS Code extension.
sfmc-language-lsp 4.0.0 changes shared validator codes to canonical sfmc/... IDs and preserves quick-fix variants and original payloads in a namespaced envelope. See the LSP migration and rule documentation. Documentation URLs are owned by the LSP version, not this MCP package.
Consumer regression coverage checks the canonical SSJS diagnostics, distinct polyfill/replacement payloads, and overlap suppression. This is not a new MCP tool or a promise that every tool response exposes raw LSP diagnostics.
Version 2.9.2 adopts sfmc-language-lsp: ^4.0.0 and ssjs-data: ^2.1.0 from npm. MCP validation and review output continues to format locations, severities, and messages rather than expose raw LSP codes or envelopes, so this compatibility update remains a patch release. The updated SSJS catalog also includes additional unsupported ECMAScript methods; support evidence is scoped to the documented Marketing Cloud Engagement contexts.
@mcp)This package is registered with the official MCP Registry as io.github.JoernBerkefeld/mcp-server-sfmc so it can appear in Visual Studio Code when you use the @mcp filter in the Extensions view (see the publish quickstart). Enable chat.mcp.gallery.enabled if the gallery does not show.
The registry only stores metadata; the server still runs locally via stdio (for example npx -y mcp-server-sfmc@latest). This is separate from @contribute:mcp, which lists VS Code extensions that contribute MCP definitions β use the SFMC Language Service for that path.
After publishing metadata (see Publish an MCP Server or the release workflow), you can confirm the entry with:
curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.JoernBerkefeld/mcp-server-sfmc"
If you use the SFMC Language Service extension (1.101+), it registers this MCP server for discovery in VS Code β you normally do not need to edit .vscode/mcp.json or run npm install for that path; VS Code still launches the published package via npx when the server starts.
For other editors, or if you prefer explicit configuration, use the npx or install options below.
You do not have to install the VS Code extension. Pick one way to run the server:
| Approach | When to use it |
|---|---|
npx (no install) | Default in the examples below. Runs the latest published version from npm on demand; first run may download the package. Requires Node.js and npm (which provides npx). |
npm install -g mcp-server-sfmc | Same CLI as npx, but the package stays on disk so startup is faster and you can set "command": "mcp-server-sfmc" with empty args in your MCP config. |
npm install mcp-server-sfmc in a project | Keeps a pinned version in that folder's node_modules β point your MCP config at npx mcp-server-sfmc with cwd set to the project, or run ./node_modules/.bin/mcp-server-sfmc directly. |
sfmc-review-diff (bundled CLI) | For CI: spawns this MCP server, calls review_change on a unified diff (stdin or file), exits non-zero on ERROR by default. Install the package in the job, then e.g. git diff base...HEAD | npx sfmc-review-diff. |
None of these replace the VS Code extension for editing (syntax, LSP, snippets); they only expose the MCP server to tools that speak the Model Context Protocol.
sfmc-review-diffReady-to-copy workflows (GitHub Actions, GitLab CI, Jenkins, Azure Pipelines, Bitbucket Pipelines) live under ci-templates/. They run eslint-plugin-sfmc on changed files and sfmc-review-diff on the PR/MR unified diff. See ci-templates/README.md for what each file does and how the two checks differ.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-server-sfmc)<a href="https://allmcps.com/mcp/mcp-server-sfmc"><img src="https://allmcps.com/api/badge/mcp-server-sfmc?style=directory" alt="MCP Server Sfmc on AllMCPs" /></a>