SubscriberAPI MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SubscriberAPI MCP Server Check the health of the SubscriberAPI log endpoint"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SubscriberAPI MCP Server
An MCP (Model Context Protocol) server that lets GitHub Copilot CLI query SFMC SubscriberAPI execution logs — health checks, email lookups, execution traces, and recent errors.
Who is this for?
SFMC developers and engineers who want to troubleshoot SubscriberViaAPI issues from the terminal using natural language, for example:
"Is the SubscriberAPI log endpoint healthy?"
"Find recent errors for source
MyForm.""Get the execution trace for FormRequestID
abc-123."
Related MCP server: copilot-mcp-server
Prerequisites
Node.js 18 or later
SFMC log API endpoint URL and API key (from your team's CloudPage / API setup)
Quick start
1. Clone the repo
git clone https://github.com/YOUR-ORG/subscriberapi-mcp.git
cd subscriberapi-mcpTip: Clone to a folder without spaces in the path (e.g.
C:\dev\subscriberapi-mcp) to avoid Windows path issues.
2. Install and build
npm run setup3. Add your credentials
cp .env.example .envEdit .env and set:
SFMC_LOG_ENDPOINT— your SFMC execution log API URLSFMC_LOG_API_KEY— your API key
Never commit .env. It is already in .gitignore.
4. Use with GitHub Copilot CLI
This repo includes a project-level MCP config (.mcp.json) with a relative path — no machine-specific paths required.
From the cloned repo folder, start Copilot:
copilotCopilot auto-loads .mcp.json when you work in this project. You should see subscriberapi with a green checkmark under MCP Servers.
5. Test it
Inside Copilot:
Use subscriberapi health_check and tell me the result.Or from the shell (one-shot):
copilot -p "Call subscriberapi health_check" --allow-all-toolsMCP tools
Tool | Description |
| Check if the SFMC log endpoint is available |
| Find executions by email (optional source, date range, limit) |
| Get full trace for a |
| List recent errors (optional filters) |
How configuration works
File | Purpose |
| Shared Copilot MCP config (relative |
| Private API credentials (each developer creates their own) |
| Optional global Copilot MCP config (user-specific) |
Recommended: Rely on .mcp.json in the repo. Each developer only needs their own .env.
If you previously added subscriberapi to your global ~/.copilot/mcp-config.json with an absolute path, remove it to avoid duplicates:
copilot mcp remove subscriberapiOptional: global install (any folder)
If you want subscriberapi available outside this repo, register it once from the cloned folder:
Windows (PowerShell):
.\scripts\register-copilot-mcp.ps1macOS / Linux:
./scripts/register-copilot-mcp.shThese scripts read credentials from your .env and register an absolute path on your machine only.
Development
npm run dev # run TypeScript directly (tsx)
npm run build # compile to dist/
npm start # run compiled serverTroubleshooting
Issue | Fix |
Red X on | Run |
| Create |
Path split at space (Windows) | Clone to a path without spaces, or use the register script |
Permission denied in | Add |
Duplicate | Run |
License
ISC
Available Tools
4 toolsget_executions_by_emailB
Find SubscriberViaAPI executions by email address, optionally filtered by source and date range.
Inputs: emailAddress (required), source, startDate, endDate, +2 more.
get_execution_traceB
Get the execution trace for one FormRequestID.
Inputs: formRequestId (required), includeFullTrace.
get_recent_errorsC
Find recent SubscriberViaAPI errors, optionally filtered by source and date range. Returns summaries by default.
Inputs: source, startDate, endDate, limit, +1 more.
health_checkA
Check whether the SFMC SubscriberAPI execution log endpoint is available.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct operation: lookup by email, trace retrieval, error fetching, and health check. There is no overlap, and the descriptions clearly differentiate them.
All tool names follow a consistent verb_noun pattern using snake_case, such as get_executions_by_email, get_execution_trace, get_recent_errors, and health_check.
With 4 tools, the set is well-scoped for a focused log viewer API. Each tool serves a clear purpose without being sparse or overwhelming.
The set covers key operations for querying executions, traces, and errors, plus health check. A minor gap is the lack of an unfiltered execution list, but the core workflow is functional.
Maintenance
Related MCP Connectors
Query your app's logs, metrics and incidents from your AI assistant.
Plan Salesforce deploys, open pull requests and trigger pipelines from your AI client.
Run SOQL queries to explore and retrieve Salesforce data. Access accounts, contacts, opportunities…
Run SOQL queries against your Salesforce org to retrieve records and insights. Explore objects, fi…
Related MCP Servers
- AlicenseAqualityDmaintenanceExposes Salesforce CLI functionality to LLM tools like Claude Desktop, allowing AI agents to execute Salesforce commands, manage orgs, deploy code, and query data through natural language.562 npm36ISC
- AlicenseCqualityDmaintenanceConnects MCP-enabled editors to GitHub Copilot CLI for non-interactive code analysis, batch processing, and code review.1031 npm5MIT
- AlicenseAqualityDmaintenanceEnables searching and analyzing GitHub Copilot's conversation history stored locally, providing tools for full-text search, session listing, statistics, and file-based retrieval.64MIT
- AlicenseAqualityDmaintenanceConnect Claude (or any MCP client) to Salesforce Marketing Cloud. Explore Data Extensions, query records, and validate Automation Studio queries before running them.347 npmMIT