sparkpost-mcp
Enables sending transactional emails, managing templates, suppression lists, sending domains, webhooks, subaccounts, and retrieving account metrics via the SparkPost API.
README
sparkpost-mcp
MCP server exposing the SparkPost (EU) email API as 20 tools — account, templates, transactional sends, suppression, sending domains, webhooks, subaccounts, message events, deliverability metrics, and recipient lists.
Published on npm as @pcummings/sparkpost-mcp.
Install into an AI agent
You need a SPARKPOST_API_KEY (SparkPost EU dashboard → API Keys). For the US region, also set SPARKPOST_API_BASE=https://api.sparkpost.com/api/v1.
The commands below fetch the server from npm via
npx -y @pcummings/sparkpost-mcp. To run from a local clone instead, replacenpx -y @pcummings/sparkpost-mcpwithnpx tsx /absolute/path/to/index.ts.
Claude Code
claude mcp add sparkpost -e SPARKPOST_API_KEY=your-key -- npx -y @pcummings/sparkpost-mcp
Add --scope user to make it available in every project.
OpenAI Codex
codex mcp add sparkpost --env SPARKPOST_API_KEY=your-key -- npx -y @pcummings/sparkpost-mcp
Gemini CLI
gemini mcp add -e SPARKPOST_API_KEY=your-key sparkpost npx -y @pcummings/sparkpost-mcp
US region — append the base-URL env to any command above (-e for Claude/Gemini, --env for Codex):
SPARKPOST_API_BASE=https://api.sparkpost.com/api/v1
Any other MCP client (Claude Desktop, Cursor, Windsurf, VS Code, Cline, Zed …) — add this to the client's MCP config:
{
"mcpServers": {
"sparkpost": {
"command": "npx",
"args": ["-y", "@pcummings/sparkpost-mcp"],
"env": { "SPARKPOST_API_KEY": "your-key" }
}
}
}
For a local clone, use "args": ["tsx", "/absolute/path/to/index.ts"].
Run from source
npm install
export SPARKPOST_API_KEY=your-key # required; server exits if missing
export SPARKPOST_API_BASE=... # optional; defaults to EU. US: https://api.sparkpost.com/api/v1
npm start
Tools
| Tool | Description |
|---|---|
get_account |
Get SparkPost EU account info and usage |
list_templates |
List all email templates |
get_template |
Get a specific template by ID |
create_template |
Create a new email template |
update_template |
Update an existing template |
send_email |
Send a test/transactional email |
check_suppression |
Check if an address is suppressed |
list_sending_domains |
List all verified sending domains |
list_webhooks |
List all webhooks |
create_webhook |
Create a webhook (name, target URL, events) |
delete_webhook |
Delete a single webhook by id |
list_subaccounts |
List all subaccounts |
create_subaccount |
Create a subaccount with an API key (name, key_label, key_grants) |
search_message_events |
Search message events (one page; cursor + per_page for paging) |
get_deliverability_metrics |
Get deliverability metrics (from + metrics required; group_by selects a breakdown dimension) |
list_recipient_lists |
List all recipient lists |
get_recipient_list |
Get a recipient list by id (optionally with recipients) |
create_recipient_list |
Create a recipient list (recipients required; id/name auto-generated if omitted) |
add_suppression |
Add or update a suppression entry for one email |
remove_suppression |
Remove the suppression entry for one email |
Usage examples
Send an email:
Send a transactional email to alice@example.com from noreply@yourdomain.com with subject "Hello" and body "<p>Hi Alice</p>"
Create a template:
Create an email template with id "welcome", name "Welcome Email", subject "Welcome to {{company}}!", html "<p>Hi {{name}}</p>", from noreply@yourdomain.com
Search recent bounces:
Search message events for bounce events in the last 24 hours for recipient domain example.com
Dev
npm run typecheck # tsc --noEmit
npm test # node:test suite (44 tests)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.