@kieksme/listmonk-mcp
@kieksme/listmonk-mcp
Ein MCP-Server (Model Context Protocol), der die vollständige Listmonk REST-API (72 Tools in 14 Kategorien) für MCP-kompatible LLM-Clients bereitstellt — als lokalen stdio-Prozess, den Ihr Client selbst startet, oder als Remote-Streamable-HTTP-Bereitstellung, mit der sich beliebig viele Clients verbinden können.
Entwickelt auf Basis der Listmonk-OpenAPI-Spezifikation.
Quickstart
Lokal: Lassen Sie Ihren MCP-Client den Server selbst per stdio starten — nichts muss von Hand ausgeführt werden, kein Port muss geöffnet werden. Fügen Sie ihn zur Konfiguration Ihres Clients hinzu (hier gezeigt für Claude Code; siehe Verbinden Ihres MCP-Clients weiter unten für Cursor, VS Code, Claude Desktop, OpenCode, LM Studio und ChatGPT):
claude mcp add listmonk \
-e LISTMONK_URL=https://newsletter.example.com \
-e LISTMONK_API_USER=my-api-user \
-e LISTMONK_API_TOKEN=xxxxxxxx \
-- npx -y @kieksme/listmonk-mcp --stdioRemote: Starten Sie den Server einmal; er ist dann über HTTP für beliebig viele Clients erreichbar:
LISTMONK_URL=https://newsletter.example.com \
LISTMONK_API_USER=my-api-user \
LISTMONK_API_TOKEN=xxxxxxxx \
npx @kieksme/listmonk-mcpclaude mcp add --transport http listmonk http://localhost:3000/mcpWeitere Details zu beiden Modi, einschließlich Docker, finden Sie unter Server ausführen.
Related MCP server: listmonk-mcp-bridge
Verbinden Ihres MCP-Clients
Jeder der folgenden Clients unterstützt zwei Einrichtungsarten — wählen Sie eine:
Lokal (stdio): Der Client startet
npx @kieksme/listmonk-mcp --stdioselbst als Unterprozess und kommuniziert über dessen stdin/stdout per MCP. Kein Server, der laufen muss, kein Port, keine Erreichbarkeitsprobleme — das ist in der Regel die einfachere Standardwahl für einen einzelnen lokalen Client.Remote (HTTP): Sie betreiben den Server selbst (siehe Server ausführen) und der Client verbindet sich mit dessen URL. Erforderlich, wenn mehrere Clients eine Serverinstanz gemeinsam nutzen oder der Server nicht auf Ihrem Rechner läuft.
pnpm statt npx für die lokale/stdio-Einrichtung verwenden: Jedes lokale (stdio) Beispiel unten verwendet command: "npx" mit args: ["-y", "@kieksme/listmonk-mcp", "--stdio"]. Wenn Sie pnpm bevorzugen, tauschen Sie es gegen command: "pnpm" mit args: ["dlx", "@kieksme/listmonk-mcp", "--stdio"] aus — und lassen Sie das -y weg. -y ist npx' Flag für „Installationsbestätigung überspringen"; pnpm dlx zeigt eine solche Aufforderung von vornherein nicht an, akzeptiert -y also gar nicht und beendet sich sofort mit ERROR Unknown option: 'y' (was beim Client als generisches „Verbindung geschlossen" erscheint, da der Prozess stirbt, bevor er überhaupt MCP spricht). Derselbe Tausch gilt für jede CLI-Form unten, die mit npx -y beginnt — ersetzen Sie sie durch pnpm dlx (ohne -y).
Hinweis zur Erreichbarkeit für die Remote/HTTP-Einrichtung: Ein Client benötigt http://localhost:3000 nur, wenn er auf demselben Rechner wie der Server läuft. Claude Code, Cursor, VS Code, OpenCode und LM Studio sind allesamt lokale Tools, daher funktioniert localhost direkt. Claude Desktop ist eine lokale App und kann normalerweise ebenfalls auf localhost zugreifen. ChatGPT und Claude.ai (die Web-Apps) laufen in der Cloud und können Ihr localhost nicht erreichen — um diesen Server mit ihnen zu nutzen, müssten Sie ihn irgendwo bereitstellen, das aus dem Internet erreichbar ist (oder ihn tunneln, z. B. mit ngrok http 3000), und stattdessen diese öffentliche URL verwenden. Die Connectors von ChatGPT unterstützen nur HTTP, daher gibt es dort weiter unten keine lokale/stdio-Option.
Claude Code
Lokal (stdio), projektspezifisch über .mcp.json im Repository-Stammverzeichnis:
{
"mcpServers": {
"listmonk": {
"command": "npx",
"args": ["-y", "@kieksme/listmonk-mcp", "--stdio"],
"env": {
"LISTMONK_URL": "https://newsletter.example.com",
"LISTMONK_API_USER": "my-api-user",
"LISTMONK_API_TOKEN": "xxxxxxxx"
}
}
}
}Oder über die CLI:
claude mcp add listmonk \
-e LISTMONK_URL=https://newsletter.example.com \
-e LISTMONK_API_USER=my-api-user \
-e LISTMONK_API_TOKEN=xxxxxxxx \
-- npx -y @kieksme/listmonk-mcp --stdioRemote (HTTP), sobald der Server läuft (siehe Server ausführen):
{
"mcpServers": {
"listmonk": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}claude mcp add --transport http listmonk http://localhost:3000/mcpWenn Sie auf dem Server MCP_SERVER_AUTH_TOKEN gesetzt haben, fügen Sie den Header hinzu: claude mcp add --transport http listmonk http://localhost:3000/mcp --header "Authorization: Bearer <token>".
Cursor
Installation mit einem Klick (lokal/stdio, mit Platzhalter-Zugangsdaten, die Sie anschließend in den MCP-Einstellungen von Cursor ausfüllen müssen):
Oder konfigurieren Sie es manuell — lokal (stdio) über .cursor/mcp.json im Repository-Stammverzeichnis (oder global in ~/.cursor/mcp.json):
{
"mcpServers": {
"listmonk": {
"command": "npx",
"args": ["-y", "@kieksme/listmonk-mcp", "--stdio"],
"env": {
"LISTMONK_URL": "https://newsletter.example.com",
"LISTMONK_API_USER": "my-api-user",
"LISTMONK_API_TOKEN": "xxxxxxxx"
}
}
}
}Remote (HTTP), sobald der Server läuft:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp"
}
}
}Wenn Sie auf dem Server MCP_SERVER_AUTH_TOKEN gesetzt haben, übergeben Sie ihn als Header:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}Sie können beide Einrichtungsarten auch über Cursor-Einstellungen → MCP → Neuen MCP-Server hinzufügen ergänzen.
VS Code
Installation mit einem Klick (lokal/stdio, mit Platzhalter-Zugangsdaten, die Sie anschließend in den MCP-Einstellungen von VS Code ausfüllen müssen):
Oder konfigurieren Sie es manuell — lokal (stdio) über .vscode/mcp.json im Repository-Stammverzeichnis:
{
"servers": {
"listmonk": {
"command": "npx",
"args": ["-y", "@kieksme/listmonk-mcp", "--stdio"],
"env": {
"LISTMONK_URL": "https://newsletter.example.com",
"LISTMONK_API_USER": "my-api-user",
"LISTMONK_API_TOKEN": "xxxxxxxx"
}
}
}
}Remote (HTTP), sobald der Server läuft (type ist hier erforderlich, da es kein command gibt, aus dem es abgeleitet werden könnte):
{
"servers": {
"listmonk": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}Claude Desktop
Lokal (stdio), in claude_desktop_config.json:
{
"mcpServers": {
"listmonk": {
"command": "npx",
"args": ["-y", "@kieksme/listmonk-mcp", "--stdio"],
"env": {
"LISTMONK_URL": "https://newsletter.example.com",
"LISTMONK_API_USER": "my-api-user",
"LISTMONK_API_TOKEN": "xxxxxxxx"
}
}
}
}Remote (HTTP): Einstellungen → Connectors → Benutzerdefinierten Connector hinzufügen, und fügen Sie http://localhost:3000/mcp als URL ein (der Server muss bereits laufen). Wenn die Konfigurationsdatei Ihrer Claude-Desktop-Version Remote-Server direkt unterstützt, lautet der entsprechende Eintrag:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp"
}
}
}OpenCode
Lokal (stdio), in opencode.json (Projekt- oder globale Konfiguration):
{
"mcp": {
"listmonk": {
"type": "local",
"command": ["npx", "-y", "@kieksme/listmonk-mcp", "--stdio"],
"environment": {
"LISTMONK_URL": "https://newsletter.example.com",
"LISTMONK_API_USER": "my-api-user",
"LISTMONK_API_TOKEN": "xxxxxxxx"
},
"enabled": true
}
}
}Remote (HTTP), sobald der Server läuft:
{
"mcp": {
"listmonk": {
"type": "remote",
"url": "http://localhost:3000/mcp",
"enabled": true
}
}
}Hinweis zu enabled: Dieses Flag ist der eigene clientseitige Schalter von OpenCode — es aktiviert/deaktiviert lediglich die gesamte Serververbindung für diesen Client und hat nichts damit zu tun, welche listmonk-Tools/-Kategorien verfügbar gemacht werden. Bei der Remote-Einrichtung (HTTP) können Sie, um einzuschränken, welche Tools dieser bestimmte Client sieht (ohne den Server neu zu starten oder LISTMONK_ENABLED_TOOLS anzufassen), den Abfrageparameter tools an die url selbst anhängen:
{
"mcp": {
"listmonk": {
"type": "remote",
"url": "http://localhost:3000/mcp?tools=subscribers,campaigns",
"enabled": true
}
}
}Bei der lokalen Einrichtung (stdio) setzen Sie stattdessen LISTMONK_ENABLED_TOOLS in environment — die vollständige Selektor-Syntax finden Sie unter Auswählen, welche Tools verfügbar sind.
LM Studio
Installation mit einem Klick (lokal/stdio, mit Platzhalter-Zugangsdaten, die Sie anschließend in den MCP-Einstellungen von LM Studio ausfüllen müssen):
Oder konfigurieren Sie es manuell über ~/.lmstudio/mcp.json (Registerkarte „Program" → „Install" → „mcp.json bearbeiten") — lokal (stdio):
{
"mcpServers": {
"listmonk": {
"command": "npx",
"args": ["-y", "@kieksme/listmonk-mcp", "--stdio"],
"env": {
"LISTMONK_URL": "https://newsletter.example.com",
"LISTMONK_API_USER": "my-api-user",
"LISTMONK_API_TOKEN": "xxxxxxxx"
}
}
}
}Remote (HTTP), sobald der Server läuft:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp"
}
}
}ChatGPT
Die Connectors von ChatGPT (Einstellungen → Connectors → Erstellen, verfügbar in kostenpflichtigen Tarifen, die MCP unterstützen) akzeptieren nur eine öffentlich erreichbare HTTP-URL — ChatGPT läuft in der Cloud und kann keinen lokalen stdio-Prozess starten, daher ist die Remote-Einrichtung die einzige Option. Stellen Sie den Server (siehe Docker) auf einem Host mit öffentlicher URL bereit oder tunneln Sie Ihre lokale Instanz (z. B. ngrok http 3000), und registrieren Sie dann https://<your-host>/mcp als Connector-URL. Wenn Sie MCP_SERVER_AUTH_TOKEN gesetzt haben, können Sie in der Connector-Einrichtung von ChatGPT zusammen mit der URL ein Bearer-Token angeben.
Features
Vollständige API-Abdeckung: Abonnenten, Kampagnen, Listen, Vorlagen, Medien, Bounces, Import, Einstellungen, Wartung, transaktionale Nachrichten, öffentliches Abonnement, Logs, Admin sowie Dashboard-/Sonstige-Endpunkte.
Selektives Tool-Laden — aktivieren Sie nur die Kategorien/Tools, die Sie tatsächlich benötigen, damit der Kontext des LLM nicht auf einmal mit allen 72 Tool-Definitionen überflutet wird.
Zwei Transports, ein Paket: stdio für einen vom Client gestarteten lokalen Prozess, zustandsloses Streamable HTTP für eine Remote-Bereitstellung (kein Sitzungsstatus, einfach horizontal hinter einem Load Balancer skalierbar).
Optionaler Bearer-Token-Schutz vor
/mcp(nur HTTP-Transport — stdio hat keinen Netzwerk-Listener, der geschützt werden könnte).
Server ausführen
Lokal (stdio)
Normalerweise starten Sie das nicht von Hand — Ihr MCP-Client startet es gemäß der Konfiguration unter Verbinden Ihres MCP-Clients weiter oben. Um es manuell auszuführen (z. B. um es außerhalb eines Clients zu testen), übergeben Sie --stdio oder setzen Sie MCP_TRANSPORT=stdio:
LISTMONK_URL=https://newsletter.example.com \
LISTMONK_API_USER=my-api-user \
LISTMONK_API_TOKEN=xxxxxxxx \
npx @kieksme/listmonk-mcp --stdioDer Prozess spricht MCP-JSON-RPC auf stdout und protokolliert auf stderr — er beendet sich, wenn sein stdin geschlossen wird (d. h. wenn der übergeordnete Client die Verbindung trennt). LISTMONK_ENABLED_TOOLS wählt weiterhin aus, welche Tools registriert werden, aber in diesem Modus gibt es keine Überschreibung pro Anfrage: ein Client-Prozess, ein fester Tool-Satz für dessen Lebensdauer.
Remote (HTTP)
LISTMONK_URL=https://newsletter.example.com \
LISTMONK_API_USER=my-api-user \
LISTMONK_API_TOKEN=xxxxxxxx \
npx @kieksme/listmonk-mcp
# or
pnpm dlx @kieksme/listmonk-mcpDer MCP-Endpunkt ist POST http://localhost:3000/mcp (streamable HTTP, zustandslos — keine Sitzungsaushandlung erforderlich).
Docker
Das veröffentlichte Image (ghcr.io/kieksme/mcp-listmonk:latest) unterstützt beide Transports — es ist derselbe Einstiegspunkt wie bei npx, daher gelten die obigen Flags auf dieselbe Weise.
Remote (HTTP) — Port veröffentlichen:
docker run -p 3000:3000 \
-e LISTMONK_URL=https://newsletter.example.com \
-e LISTMONK_API_USER=my-api-user \
-e LISTMONK_API_TOKEN=xxxxxxxx \
-e LISTMONK_ENABLED_TOOLS='["subscribers","campaigns"]' \
ghcr.io/kieksme/mcp-listmonk:latestLokal (stdio) — stdin angehängt lassen (-i) statt einen Port zu veröffentlichen; das ist das, was Sie hinter command/args eines Clients setzen würden (z. B. docker als Befehl), wenn Sie den Container lieber ausführen möchten, als npx das Paket holen zu lassen:
docker run -i --rm \
-e LISTMONK_URL=https://newsletter.example.com \
-e LISTMONK_API_USER=my-api-user \
-e LISTMONK_API_TOKEN=xxxxxxxx \
ghcr.io/kieksme/mcp-listmonk:latest --stdioKonfiguration
Setzen Sie diese Umgebungsvariablen beim Starten des Servers:
Variable | Erforderlich | Beschreibung |
| Ja | Basis-URL Ihrer Listmonk-Instanz, z. B. |
| Ja | API-Benutzername (Listmonk Admin → Users) |
| Ja | API-Token für diesen Benutzer |
| Nein |
|
| Nein | HTTP-Port, auf dem gelauscht wird (Standard |
| Nein | JSON-Array (oder kommagetrennte Liste) von Tool-/Kategorie-Selektoren — siehe unten. Leer/nicht gesetzt = alle 72 Tools. |
| Nein | Wenn gesetzt, erfordert |
Sicherheitshinweis: LISTMONK_API_USER/LISTMONK_API_TOKEN authentifizieren diesen Server gegenüber Listmonk, nicht MCP-Clients gegenüber diesem Server. Ohne MCP_SERVER_AUTH_TOKEN erhält jeder, der den Port erreichen kann, vollen Listmonk-Zugriff im Umfang des konfigurierten API-Benutzers. Erstellen Sie vorzugsweise einen API-Benutzer mit minimalen Rechten in Listmonk, der nur auf die Kategorien beschränkt ist, die Sie aktivieren möchten.
Auswahl der verfügbaren Tools
LISTMONK_ENABLED_TOOLS akzeptiert ein JSON-Array (oder eine kommagetrennte Zeichenkette), dessen Einträge (Groß-/Kleinschreibung wird ignoriert) entweder sind:
ein Kategoriename:
subscribers,campaigns,templates,lists,media,import,bounces,settings,maintenance,public,transactional,logs,admin,miscellaneous— aktiviert jedes Tool in dieser Kategorie, oderein exakter Toolname: z. B.
listmonk_get_subscriber— aktiviert nur genau dieses eine Tool.
# Only subscriber management tools
LISTMONK_ENABLED_TOOLS='["subscribers"]'
# A mix of a whole category plus one extra tool
LISTMONK_ENABLED_TOOLS='["campaigns","listmonk_get_health"]'
# Comma-separated form also works
LISTMONK_ENABLED_TOOLS=subscribers,campaignsLassen Sie es ungesetzt (oder []), um alle 72 Tools verfügbar zu machen.
Pro-Anfrage-Überschreibung (nur Remote/HTTP): Eine einzelne bereitgestellte Instanz kann auch verschiedenen Clients ohne Neustart unterschiedliche Tool-Sets bereitstellen, über den Header X-Listmonk-Enabled-Tools oder die Query-String ?tools= bei der POST /mcp-Anfrage — gleiche Selektorsyntax wie oben. Dies überschreibt LISTMONK_ENABLED_TOOLS nur für diese eine Anfrage. Es gibt kein Äquivalent für den lokalen/stdio-Transport: Jeder stdio-Prozess wird pro Client frisch erzeugt. Setzen Sie stattdessen einfach LISTMONK_ENABLED_TOOLS in der eigenen env/environment-Konfiguration des jeweiligen Clients.
Da die Query-String nur ein Teil der URL ist, ist dies der einfachste Weg, einem bestimmten Client (z. B. einem Eintrag in einer opencode.json, .mcp.json oder .cursor/mcp.json) ein reduziertes Tool-Set zu geben, während andere Clients weiterhin denselben Server mit dem vollständigen (oder einem anderen) Set ansprechen — setzen Sie einfach die url dieses Clients auf http://localhost:3000/mcp?tools=subscribers,campaigns, anstatt serverweite Umgebungsvariablen hinzuzufügen oder eine zweite Instanz aufzusetzen. Clients, die benutzerdefinierte Header unterstützen, können stattdessen X-Listmonk-Enabled-Tools verwenden, wodurch die URL selbst sauber bleibt.
Tool-Katalog (72 Tools)
subscribers (17)
listmonk_list_subscribers, listmonk_create_subscriber, listmonk_get_subscriber, listmonk_update_subscriber, listmonk_delete_subscriber, listmonk_delete_subscribers_by_ids, listmonk_manage_subscriber_lists_bulk, listmonk_manage_subscriber_list_membership, listmonk_blocklist_subscribers_bulk, listmonk_blocklist_subscriber, listmonk_export_subscriber, listmonk_get_subscriber_bounces, listmonk_delete_subscriber_bounces, listmonk_send_subscriber_optin, listmonk_delete_subscribers_by_query, listmonk_blocklist_subscribers_by_query, listmonk_manage_subscriber_lists_by_query
campaigns (14)
listmonk_list_campaigns, listmonk_create_campaign, listmonk_get_campaign, listmonk_update_campaign, listmonk_delete_campaign, listmonk_get_running_campaign_stats, listmonk_get_campaign_analytics, listmonk_get_campaign_preview, listmonk_preview_campaign_draft, listmonk_preview_campaign_text, listmonk_update_campaign_status, listmonk_update_campaign_archive, listmonk_convert_campaign_content, listmonk_send_campaign_test
templates (8)
listmonk_list_templates, listmonk_create_template, listmonk_get_template, listmonk_update_template, listmonk_delete_template, listmonk_preview_template_draft, listmonk_preview_template, listmonk_set_default_template
lists (5)
listmonk_list_lists, listmonk_create_list, listmonk_get_list, listmonk_update_list, listmonk_delete_list
media (4)
listmonk_list_media, listmonk_upload_media, listmonk_get_media, listmonk_delete_media
import (4)
listmonk_get_import_status, listmonk_import_subscribers, listmonk_stop_import_subscribers, listmonk_get_import_logs
bounces (4)
listmonk_list_bounces, listmonk_delete_bounces, listmonk_get_bounce, listmonk_delete_bounce
settings (3)
listmonk_get_settings, listmonk_update_settings, listmonk_test_smtp_settings
maintenance (3)
listmonk_delete_gc_subscribers, listmonk_delete_gc_campaign_analytics, listmonk_delete_unconfirmed_subscriptions
public (2)
listmonk_get_public_lists, listmonk_create_public_subscription
transactional (1)
listmonk_send_transactional_message
logs (1)
listmonk_get_logs
admin (1)
listmonk_reload_app
miscellaneous (5)
listmonk_get_health, listmonk_get_server_config, listmonk_get_i18n_lang, listmonk_get_dashboard_charts, listmonk_get_dashboard_counts
Hinweise zu einigen nicht offensichtlichen Tools
Massen-/Query-Abonnentenoperationen (
listmonk_delete_subscribers_by_query,listmonk_blocklist_subscribers_by_query,listmonk_manage_subscriber_lists_by_query) werden gegen einen Listmonk-SQL-Filterausdruck ausgeführt und wirken auf jeden passenden Abonnenten ohne Vorschauschritt. Rufen Sie zuerst immerlistmonk_list_subscribersmit derselbenqueryauf, um die Anzahl der Treffer zu prüfen.Kampagnen-Vorschau-/Inhalts-Tools sind absichtlich in vier verschiedene Tools aufgeteilt, weil Listmonk vier verschiedene Endpunkte dafür bereitstellt:
listmonk_get_campaign_previewrendert die Kampagne im aktuell gespeicherten Zustand;listmonk_preview_campaign_draftundlistmonk_preview_campaign_textrendern einen nicht gespeicherten Inhalt, ohne etwas zu persistieren;listmonk_convert_campaign_contentführt eine Formatkonvertierung durch und persistiert sie (z. B. Markdown → HTML) — es ist trotz des ähnlichen Bereichs keine Vorschau.listmonk_send_campaign_testruft zuerst den aktuell gespeicherten Zustand der Kampagne ab und überschreibt nur die Felder, die Sie explizit übergeben, um zu vermeiden, dass versehentlich Felder geleert werden, die Listmonks eigene API sonst stillschweigend mit leeren Werten überschreiben würde.
Mitwirken
Möchten Sie aus dem Quellcode bauen, die Testsuite ausführen oder den Release-Prozess verstehen? Siehe CONTRIBUTING.md.
Lizenz
MIT © kieksme GbR
Available Tools
72 toolslistmonk_blocklist_subscriberBlocklist SubscriberADestructiveIdempotent
Blocklists a single subscriber by id, preventing further campaign sends to them.
Inputs: id (required).
listmonk_blocklist_subscribers_bulkBlocklist Subscribers (Bulk By Ids)BDestructiveIdempotent
Blocklists an explicit set of subscribers by id, preventing further campaign sends to them.
Inputs: ids (required).
listmonk_blocklist_subscribers_by_queryBlocklist Subscribers By QueryADestructive
BULK, NO-PREVIEW: blocklists every subscriber matching a Listmonk SQL query expression. Always call listmonk_list_subscribers with the same query first to confirm the match count.
Inputs: query (required).
listmonk_convert_campaign_contentConvert Campaign Content FormatAIdempotent
Converts a campaign body between content formats (e.g. markdown to HTML) and returns the converted body. This does NOT read or write the campaign's stored body — pass the body text explicitly and, if you want to keep the result, save it yourself via listmonk_update_campaign.
Inputs: id (required), to (required), body (required), from (required).
listmonk_create_campaignCreate CampaignB
Creates a new campaign as a draft. Drafts must be explicitly scheduled/started via listmonk_update_campaign_status.
Inputs: name (required), lists (required), subject (required), body, +9 more.
listmonk_create_listCreate Mailing ListC
Creates a new mailing list.
Inputs: name (required), type (required), optin (required), tags, +2 more.
listmonk_create_public_subscriptionCreate Public SubscriptionA
Submits a subscription request via Listmonk's public (unauthenticated) subscription endpoint, as if a visitor filled out the public sign-up form. Triggers double opt-in e-mails for lists that require them.
Inputs: email (required), list_uuids (required), name.
listmonk_create_subscriberCreate SubscriberC
Creates a new subscriber, optionally subscribing them to one or more lists immediately.
Inputs: name (required), email (required), lists, status, +4 more.
listmonk_create_templateCreate TemplateC
Creates a new campaign or transactional template.
Inputs: body (required), name (required), type (required), subject, +2 more.
listmonk_delete_bounceDelete BounceBDestructiveIdempotent
Deletes a single bounce record by id.
Inputs: id (required).
listmonk_delete_bouncesDelete BouncesADestructiveIdempotent
Deletes bounce records in bulk — either all of them (all: true) or a specific set of ids.
Inputs: all, ids.
listmonk_delete_campaignDelete CampaignADestructiveIdempotent
Permanently deletes a campaign by id. Only campaigns that have not started sending can be deleted.
Inputs: id (required).
listmonk_delete_gc_campaign_analyticsGarbage-Collect Campaign AnalyticsADestructive
PERMANENTLY DELETES campaign analytics records (views/clicks/all) older than a given date. Irreversible; confirm with the user before calling.
Inputs: type (required), before_date (required).
listmonk_delete_gc_subscribersGarbage-Collect SubscribersADestructive
PERMANENTLY DELETES subscribers matching a maintenance class ('blocklisted' or 'orphan' — subscribers with no list memberships). Irreversible; confirm with the user before calling.
Inputs: type (required).
listmonk_delete_listDelete Mailing ListADestructiveIdempotent
Permanently deletes a mailing list by id. Subscribers themselves are not deleted, only their membership in this list.
Inputs: list_id (required).
listmonk_delete_mediaDelete MediaADestructiveIdempotent
Permanently deletes an uploaded media file by id.
Inputs: id (required).
listmonk_delete_subscriberDelete SubscriberBDestructiveIdempotent
Permanently deletes a single subscriber by id.
Inputs: id (required).
listmonk_delete_subscriber_bouncesDelete Subscriber BouncesADestructiveIdempotent
Deletes all bounce records for a single subscriber.
Inputs: id (required).
listmonk_delete_subscribers_by_idsDelete Subscribers By IdsADestructiveIdempotent
Permanently deletes multiple subscribers given an explicit list of ids.
Inputs: ids (required).
listmonk_delete_subscribers_by_queryDelete Subscribers By QueryADestructive
BULK, IRREVERSIBLE, NO-PREVIEW: permanently deletes every subscriber matching a Listmonk SQL query expression. Always call listmonk_list_subscribers with the same query first to confirm the match count before using this tool.
Inputs: query (required).
listmonk_delete_templateDelete TemplateADestructiveIdempotent
Permanently deletes a template by id. The default template cannot be deleted.
Inputs: id (required).
listmonk_delete_unconfirmed_subscriptionsDelete Unconfirmed SubscriptionsADestructive
PERMANENTLY DELETES pending (unconfirmed double opt-in) subscriptions older than a given date. Irreversible; confirm with the user before calling.
Inputs: before_date (required).
listmonk_export_subscriberExport Subscriber DataARead-onlyIdempotent
Exports a subscriber's full profile (personal data, list memberships, campaign views) as a JSON object, e.g. for GDPR data-subject access requests.
Inputs: id (required).
listmonk_get_bounceGet BounceCRead-onlyIdempotent
Retrieves a single bounce record by id.
Inputs: id (required), response_format.
listmonk_get_campaignGet CampaignCRead-onlyIdempotent
Retrieves a single campaign by id.
Inputs: id (required), no_body, response_format.
listmonk_get_campaign_analyticsGet Campaign AnalyticsBRead-onlyIdempotent
Returns view/click/link/bounce analytics for one or more campaigns over a date range (from/to as ISO 8601 timestamps).
Inputs: to (required), from (required), type (required), campaign_ids (required), +1 more.
listmonk_get_campaign_previewGet Campaign PreviewARead-onlyIdempotent
Renders an HTML (or plain-text) preview of a campaign exactly as currently saved in Listmonk.
Inputs: id (required).
listmonk_get_dashboard_chartsGet Dashboard ChartsARead-onlyIdempotent
Returns time-series chart data (subscriber growth, campaign views) shown on the Listmonk dashboard.
Inputs: response_format.
listmonk_get_dashboard_countsGet Dashboard CountsBRead-onlyIdempotent
Returns summary counts (total subscribers, lists, campaigns, etc) shown on the Listmonk dashboard.
Inputs: response_format.
listmonk_get_healthGet Health CheckARead-onlyIdempotent
Checks whether the Listmonk API is reachable and healthy. Use this first to verify connectivity.
Inputs: no named parameters.
listmonk_get_i18n_langGet I18n Language PackBRead-onlyIdempotent
Returns the UI translation strings for a given language code.
Inputs: lang (required), response_format.
listmonk_get_import_logsGet Import LogsARead-onlyIdempotent
Returns the log output of the current/last subscriber import job.
Inputs: no named parameters.
listmonk_get_import_statusGet Import StatusBRead-onlyIdempotent
Returns the status of the current/last subscriber import job.
Inputs: response_format.
listmonk_get_listGet Mailing ListARead-onlyIdempotent
Retrieves a single mailing list by id, including its subscriber count.
Inputs: list_id (required), response_format.
listmonk_get_logsGet Server LogsBRead-onlyIdempotent
Returns Listmonk's recent in-memory application log entries.
Inputs: no named parameters.
listmonk_get_mediaGet MediaARead-onlyIdempotent
Retrieves metadata for a single uploaded media file by id.
Inputs: id (required), response_format.
listmonk_get_public_listsGet Public ListsARead-onlyIdempotent
Returns the public-facing list of subscribable mailing lists (uuid + name only), as seen by the public subscription page.
Inputs: response_format.
listmonk_get_running_campaign_statsGet Running Campaign StatsARead-onlyIdempotent
Returns live send-rate statistics for all currently running campaigns.
Inputs: response_format.
listmonk_get_server_configGet Server ConfigBRead-onlyIdempotent
Returns Listmonk's general server configuration (site name, languages, permissions, etc).
Inputs: response_format.
listmonk_get_settingsGet SettingsBRead-onlyIdempotent
Returns Listmonk's full server settings object (SMTP, app config, privacy, security, etc).
Inputs: response_format.
listmonk_get_subscriberGet SubscriberBRead-onlyIdempotent
Retrieves a single subscriber by numeric id, including their list memberships.
Inputs: id (required), response_format.
listmonk_get_subscriber_bouncesGet Subscriber BouncesBRead-onlyIdempotent
Lists bounce records recorded for a single subscriber.
Inputs: id (required), response_format.
listmonk_get_templateGet TemplateARead-onlyIdempotent
Retrieves a single template by id, including its full HTML body.
Inputs: id (required), response_format.
listmonk_import_subscribersImport SubscribersA
Bulk-imports subscribers from a ZIP archive of one or more CSV files into the given target lists. Runs asynchronously — poll listmonk_get_import_status afterwards to track progress.
Inputs: list_ids (required), file_name (required), file_content_base64 (required), mode, +3 more.
listmonk_list_bouncesList BouncesBRead-onlyIdempotent
Lists e-mail bounce records, optionally filtered by campaign or bounce source.
Inputs: page, order, source, order_by, +3 more.
listmonk_list_campaignsList CampaignsARead-onlyIdempotent
Lists/searches campaigns with pagination, status/tag filters, and sorting.
Inputs: page, tags, order, query, +5 more.
listmonk_list_listsList Mailing ListsARead-onlyIdempotent
Lists all mailing lists with subscriber counts, optionally filtered by name.
Inputs: page, query, per_page, response_format.
listmonk_list_mediaList MediaBRead-onlyIdempotent
Lists all uploaded media files (images used in campaigns/templates).
Inputs: page, query, per_page, response_format.
listmonk_list_subscribersList SubscribersARead-onlyIdempotent
Lists/searches subscribers with pagination, sorting, and an optional Listmonk SQL filter expression (query) or list membership filter. Use this to find subscriber ids before calling other subscriber tools, and to preview the match count of a query before running a bulk query-based operation (delete/blocklist/list-membership).
Inputs: page, order, query, list_id, +4 more.
listmonk_list_templatesList TemplatesBRead-onlyIdempotent
Lists all campaign and transactional templates.
Inputs: no_body, response_format.
listmonk_manage_subscriber_list_membershipManage Subscriber List MembershipADestructive
Adds, removes, or unsubscribes subscribers from a single specific list (list_id). Select the subscribers with either an explicit ids array or a Listmonk SQL query (provide exactly one).
Inputs: action (required), list_id (required), ids, query, +1 more.
listmonk_manage_subscriber_lists_bulkManage Subscriber Lists (Bulk By Ids)CDestructive
Adds, removes, or unsubscribes an explicit set of subscribers (by id) from one or more target lists.
Inputs: ids (required), action (required), target_list_ids (required), status.
listmonk_manage_subscriber_lists_by_queryManage Subscriber Lists By QueryADestructive
BULK, NO-PREVIEW: adds, removes, or unsubscribes every subscriber matching a Listmonk SQL query expression from one or more target lists. Always call listmonk_list_subscribers with the same query first to confirm the match count.
Inputs: query (required), action (required), target_list_ids (required), status.
listmonk_preview_campaign_draftPreview Unsaved Campaign ContentARead-onlyIdempotent
Renders an HTML/text preview of an UNSAVED body/content_type combination for campaign id, using the campaign's other saved fields (subject, lists), without persisting anything. Use before listmonk_update_campaign to check formatting.
Inputs: id (required), body (required), template_id, content_type.
listmonk_preview_campaign_textPreview Campaign As Plain TextARead-onlyIdempotent
Renders the plain-text version of a campaign (defaults content_type to 'plain'), useful for checking the text-fallback rendering or for spam-score review. Does not persist anything.
Inputs: id (required), body, template_id, content_type.
listmonk_preview_templatePreview Saved TemplateARead-onlyIdempotent
Renders an HTML preview of an existing saved template by id, exactly as currently stored.
Inputs: id (required).
listmonk_preview_template_draftPreview Unsaved TemplateARead-onlyIdempotent
Renders an HTML preview of an UNSAVED template body/type combination, without creating or modifying anything. Use before listmonk_create_template to check formatting.
Inputs: body (required), template_type (required).
listmonk_reload_appReload Listmonk AppADestructive
Restarts Listmonk's background workers/app process (used after certain settings changes). Briefly interrupts campaign sending and API availability. Confirm with the user before calling.
Inputs: no named parameters.
listmonk_send_campaign_testSend Campaign Test EmailA
Sends a one-off test copy of a campaign to specific subscriber e-mail addresses (they must exist as subscribers). Uses the campaign's currently saved fields; pass overrides only for fields you want to test differently for this send.
Inputs: id (required), subscriber_emails (required), body, name, +5 more.
listmonk_send_subscriber_optinSend Subscriber Opt-in EmailA
Sends a double opt-in confirmation e-mail to a subscriber for their pending list subscriptions.
Inputs: id (required).
listmonk_send_transactional_messageSend Transactional MessageA
Sends a one-off transactional e-mail to a subscriber by rendering a 'tx'-type template with the given data. Requires either subscriber_email or subscriber_id. The subscriber must already exist.
Inputs: template_id (required), data, headers, messenger, +4 more.
listmonk_set_default_templateSet Default TemplateADestructiveIdempotent
Marks a template as the default template used for new campaigns.
Inputs: id (required), response_format.
listmonk_stop_import_subscribersStop Subscriber ImportBDestructiveIdempotent
Sends a stop signal to the currently running subscriber import job.
Inputs: no named parameters.
listmonk_test_smtp_settingsTest SMTP SettingsARead-onlyIdempotent
Tests connectivity to an SMTP server configuration without saving it, by sending a test e-mail.
Inputs: email (required), smtp_settings (required).
listmonk_update_campaignUpdate CampaignADestructiveIdempotent
Updates fields on an existing campaign by id. Only provided fields are changed. Does not change campaign status/schedule — use listmonk_update_campaign_status for that.
Inputs: id (required), body, name, tags, +9 more.
listmonk_update_campaign_archiveUpdate Campaign Archive SettingsCDestructiveIdempotent
Publishes or unpublishes a campaign to Listmonk's public campaign archive page.
Inputs: id (required), archive (required), archive_meta, archive_slug, +1 more.
listmonk_update_campaign_statusUpdate Campaign StatusADestructive
Changes a campaign's lifecycle status, e.g. set to 'running' to start sending, 'paused' or 'cancelled' to stop an in-flight send. This is how campaigns are actually launched — creating a campaign alone leaves it as a 'draft'.
Inputs: id (required), status (required).
listmonk_update_listUpdate Mailing ListBDestructiveIdempotent
Updates fields on an existing mailing list by id. Only provided fields are changed.
Inputs: list_id (required), name, tags, type, +3 more.
listmonk_update_settingsUpdate SettingsADestructiveIdempotent
Updates Listmonk server settings. THIS CAN AFFECT MAIL DELIVERY AND SERVER BEHAVIOR SERVER-WIDE — confirm the exact keys/values with the user before calling. Fetch current values with listmonk_get_settings first.
Inputs: settings (required).
listmonk_update_subscriberUpdate SubscriberCDestructiveIdempotent
Updates fields on an existing subscriber by id. Only provided fields are changed.
Inputs: id (required), name, email, lists, +5 more.
listmonk_update_templateUpdate TemplateBDestructiveIdempotent
Updates fields on an existing template by id. Only provided fields are changed.
Inputs: id (required), body, name, type, +3 more.
listmonk_upload_mediaUpload MediaB
Uploads an image file to the media library for use in campaigns/templates.
Inputs: file_name (required), file_content_base64 (required), content_type, response_format.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 72 tools
Most tools are clearly separated by resource and action, and descriptions explicitly clarify tricky boundaries such as single vs bulk vs query-based operations and saved vs draft previews. A few closely related tools remain, especially campaign preview variants and subscriber-specific vs global bounce deletion, which could cause occasional misselection in such a large set.
Tool names consistently use the listmonk_ prefix, snake_case, and a verb_resource pattern such as listmonk_create_subscriber, listmonk_update_campaign, and listmonk_delete_template. Variations like get/list and manage are semantically motivated and do not break the predictable convention.
The server exposes 72 tools, far above a practical 3-15 range, and many are narrow variants for previews, bulk/query operations, maintenance deletion, and diagnostics. While Listmonk is a broad product, much of this surface could be consolidated to reduce agent overload.
Coverage is extensive across subscribers, campaigns, templates, lists, media, imports, bounces, settings, public subscription endpoints, transactional sending, logs, maintenance, health, and dashboard data. CRUD and lifecycle operations are present throughout, with only negligible possible gaps such as media metadata updates.
Maintenance
Related MCP Connectors
Official remote MCP server of MailSenpai, the EU-hosted email marketing platform. Connect Claude, ChatGPT, Cursor or another MCP client with OAuth 2.1 and PKCE. 74 tools manage lists, subscribers, segments, templates, draft campaigns and stats, and check email DNS, blacklists and spam. Sends and deletions require explicit confirmation; every call is logged. The same team also offers SMTP Senpai, an SMTP relay and email API for transactional sending: https://en.mailsenpai.com/smtp-senpai/.
AgentiSend is a transactional email API: send through verified domains with a message log, budgets, a preflight and refusals that name the fix; built so AI agents can send on your behalf. The hosted MCP server at https://api.agentisend.com/mcp exposes 82 tools (44 on tools/list; the rest via list_more_tools). A send is one message or a batch of up to 500 items with per-item results. preflight_email runs every gate a real send runs, sends nothing, and costs nothing. Every 4xx returns code, message, and fix. There is no tool for unsolicited mail. Auth is a bearer API key or OAuth 2.1 with dynamic client registration. Starter prompts: "Send this receipt to the customer." "Preflight this send and tell me what would stop it." "What can I spend today?"
Hosted Mailchimp MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Connect AI agents to Emitd email sending, message tracking, templates, and automations. Emitd hosts a Model Context Protocol server for integrating supported email operations into AI-agent workflows. Connect a compatible client to the hosted endpoint (https://mcp.emitd.com/mcp) and authenticate with an Emitd API key. Available tools depend on the key's permissions and enabled features. Emitd's capability areas include sending email, message activity, templates, contacts, audiences, segments, domains, analytics, inbound email, broadcasts, automations, webhooks, and suppressions. Use restricted keys, sending guardrails, and approval settings appropriate to each workflow. For more information check https://emitd.com
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAn MCP server implementation that enables AI assistants to interact with Listmonk instances, providing programmatic access to newsletter and mailing list management functionality including subscriber, list, and campaign operations.60 PyPI45MIT
- FlicenseDqualityBmaintenanceEnables AI agents to manage Listmonk email campaigns, subscribers, lists, and analytics through typed MCP tools with production safety features.38188 PyPI2-
- AlicenseBqualityCmaintenanceEnables AI assistants to manage a self-hosted Listmonk instance, covering subscribers, lists, campaigns, templates, bounces, system diagnostics, and transactional email sending. Ships with an optional read-only mode that registers only the read tools.32MIT
- AlicenseAqualityBmaintenanceMCP server for self-hosted Listmonk newsletters: manage subscribers, lists, campaigns, templates (including from local files), media and transactional email. File access is sandboxed to a configured directory.3672 npm1MIT