@kieksme/listmonk-mcp
@kieksme/listmonk-mcp
Un servidor MCP (Model Context Protocol) que expone la API REST completa de Listmonk (72 herramientas en 14 categorías) a clientes LLM compatibles con MCP — como un proceso local stdio que tu cliente lanza por sí mismo, o como un despliegue remoto Streamable HTTP al que cualquier número de clientes puede conectarse.
Construido contra la especificación OpenAPI de Listmonk.
Quickstart
Local: deja que tu cliente MCP lance el servidor por sí mismo a través de stdio — nada que ejecutar a mano, ningún puerto que abrir. Añádelo a la configuración de tu cliente (Claude Code se muestra aquí; consulta Conectando tu cliente MCP más abajo para Cursor, VS Code, Claude Desktop, OpenCode, LM Studio y 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 --stdioRemoto: inicia el servidor una vez, accesible por HTTP para cualquier número de clientes:
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/mcpConsulta Ejecutar el servidor para más detalle sobre ambos modos, incluido Docker.
Related MCP server: listmonk-mcp-bridge
Conectando tu cliente MCP
Cada cliente de abajo admite dos configuraciones — elige una:
Local (stdio): el cliente lanza
npx @kieksme/listmonk-mcp --stdiocomo subproceso y habla MCP a través de su stdin/stdout. No hay que mantener un servidor en ejecución, ni puerto, ni problemas de accesibilidad — esta suele ser la opción más sencilla para un único cliente local.Remoto (HTTP): tú mismo ejecutas el servidor (consulta Ejecutar el servidor) y el cliente se conecta a su URL. Necesario cuando varios clientes comparten una instancia del servidor, o cuando el servidor se ejecuta en un lugar distinto de tu máquina.
Usar pnpm en lugar de npx para la configuración local/stdio: todos los ejemplos locales (stdio) de abajo usan command: "npx" con args: ["-y", "@kieksme/listmonk-mcp", "--stdio"]. Si prefieres pnpm, cambia a command: "pnpm" con args: ["dlx", "@kieksme/listmonk-mcp", "--stdio"] — y elimina el -y. -y es la opción de npx para "omitir el mensaje de confirmación de instalación"; pnpm dlx no tiene tal mensaje, así que no acepta -y en absoluto y sale inmediatamente con ERROR Unknown option: 'y' (apareciendo ante el cliente como un genérico "Connection closed", ya que el proceso muere antes de hablar MCP). El mismo cambio aplica a cualquier forma de CLI de abajo que empiece con npx -y — reemplázala con pnpm dlx (sin -y).
Nota de accesibilidad para la configuración remota/HTTP: un cliente solo necesita http://localhost:3000 si se ejecuta en la misma máquina que el servidor. Claude Code, Cursor, VS Code, OpenCode y LM Studio son herramientas locales, así que localhost funciona directamente. Claude Desktop es una aplicación local y normalmente también puede alcanzar localhost. ChatGPT y Claude.ai (las aplicaciones web) se ejecutan en la nube y no pueden alcanzar tu localhost — para usar este servidor con ellos tendrías que desplegarlo en algún lugar accesible desde internet (o tunelizarlo, p. ej. con ngrok http 3000) y usar esa URL pública. Los conectores de ChatGPT son solo HTTP, por lo que no tiene opción local/stdio más abajo.
Claude Code
Local (stdio), a nivel de proyecto mediante .mcp.json en la raíz de tu repositorio:
{
"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"
}
}
}
}O desde la 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 --stdioRemoto (HTTP), una vez que el servidor esté en ejecución (consulta Ejecutar el servidor):
{
"mcpServers": {
"listmonk": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}claude mcp add --transport http listmonk http://localhost:3000/mcpSi configuras MCP_SERVER_AUTH_TOKEN en el servidor, añade la cabecera: claude mcp add --transport http listmonk http://localhost:3000/mcp --header "Authorization: Bearer <token>".
Cursor
Instalación con un clic (local/stdio, con credenciales de ejemplo que tendrás que rellenar después en los ajustes de MCP de Cursor):
O configúralo manualmente — local (stdio), mediante .cursor/mcp.json en la raíz de tu repositorio (o globalmente en ~/.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"
}
}
}
}Remoto (HTTP), una vez que el servidor esté en ejecución:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp"
}
}
}Si configuras MCP_SERVER_AUTH_TOKEN en el servidor, pásalo como cabecera:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}También puedes añadir cualquiera de las dos configuraciones mediante Cursor Settings → MCP → Add new MCP server.
VS Code
Instalación con un clic (local/stdio, con credenciales de ejemplo que tendrás que rellenar después en los ajustes de MCP de VS Code):
O configúralo manualmente — local (stdio), mediante .vscode/mcp.json en la raíz de tu repositorio:
{
"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"
}
}
}
}Remoto (HTTP), una vez que el servidor esté en ejecución (type es obligatorio aquí, ya que no hay command del que inferirlo):
{
"servers": {
"listmonk": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}Claude Desktop
Local (stdio), en 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"
}
}
}
}Remoto (HTTP): Settings → Connectors → Add custom connector, y pega http://localhost:3000/mcp como URL (el servidor ya debe estar en ejecución). Si el archivo de configuración de tu versión de Claude Desktop admite servidores remotos directamente, la entrada equivalente es:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp"
}
}
}OpenCode
Local (stdio), en opencode.json (configuración de proyecto o global):
{
"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
}
}
}Remoto (HTTP), una vez que el servidor esté en ejecución:
{
"mcp": {
"listmonk": {
"type": "remote",
"url": "http://localhost:3000/mcp",
"enabled": true
}
}
}Nota sobre enabled: esta opción es el interruptor propio de OpenCode en el lado del cliente — simplemente activa o desactiva toda la conexión al servidor para ese cliente y no tiene nada que ver con qué herramientas/categorías de listmonk se exponen. En la configuración remota (HTTP), para limitar qué herramientas ve este cliente en particular (sin reiniciar el servidor ni tocar LISTMONK_ENABLED_TOOLS), añade el parámetro de consulta tools a la propia url:
{
"mcp": {
"listmonk": {
"type": "remote",
"url": "http://localhost:3000/mcp?tools=subscribers,campaigns",
"enabled": true
}
}
}En la configuración local (stdio), establece LISTMONK_ENABLED_TOOLS en environment en su lugar — consulta Seleccionar qué herramientas están disponibles para conocer la sintaxis completa del selector.
LM Studio
Instalación con un clic (local/stdio, con credenciales de ejemplo que tendrás que rellenar después en los ajustes de MCP de LM Studio):
O configúralo manualmente, mediante ~/.lmstudio/mcp.json (Program tab → Install → Edit mcp.json) — local (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"
}
}
}
}Remoto (HTTP), una vez que el servidor esté en ejecución:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp"
}
}
}ChatGPT
Los conectores de ChatGPT (Settings → Connectors → Create, disponibles en los planes de pago que admiten MCP) solo aceptan una URL HTTP accesible públicamente — ChatGPT se ejecuta en la nube y no puede lanzar un proceso stdio local, así que la configuración remota es la única opción. Despliega el servidor (consulta Docker) en un host con URL pública, o tuneliza tu instancia local (p. ej. ngrok http 3000), y luego registra https://<your-host>/mcp como URL del conector. Si configuras MCP_SERVER_AUTH_TOKEN, la configuración de conectores de ChatGPT te permite proporcionar un token de portador junto con la URL.
Características
Cobertura completa de la API: suscriptores, campañas, listas, plantillas, medios, rebotes, importación, ajustes, mantenimiento, mensajes transaccionales, suscripción pública, registros, administración y endpoints de panel/misceláneos.
Carga selectiva de herramientas — habilita solo las categorías/herramientas que realmente necesitas, para que el contexto del LLM no se inunde con las 72 definiciones de herramientas a la vez.
Dos transportes, un solo paquete: stdio para un proceso local lanzado por el cliente, Streamable HTTP sin estado para un despliegue remoto (sin estado de sesión, fácil de escalar horizontalmente detrás de un balanceador de carga).
Puerta opcional de token de portador delante de
/mcp(solo transporte HTTP — stdio no tiene listener de red que proteger).
Ejecutar el servidor
Local (stdio)
Normalmente no lo inicias a mano — tu cliente MCP lo lanza según la configuración en Conectando tu cliente MCP más arriba. Para ejecutarlo manualmente (p. ej. para comprobarlo fuera de un cliente), pasa --stdio o establece MCP_TRANSPORT=stdio:
LISTMONK_URL=https://newsletter.example.com \
LISTMONK_API_USER=my-api-user \
LISTMONK_API_TOKEN=xxxxxxxx \
npx @kieksme/listmonk-mcp --stdioEl proceso habla MCP JSON-RPC por stdout y registra en stderr — sale cuando su stdin se cierra (es decir, cuando el cliente padre se desconecta). LISTMONK_ENABLED_TOOLS sigue seleccionando qué herramientas se registran, pero no hay anulación por solicitud en este modo: un proceso de cliente, un conjunto fijo de herramientas durante toda su vida.
Remoto (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-mcpEl endpoint de MCP es POST http://localhost:3000/mcp (HTTP streamable, sin estado — no se necesita negociación de sesión).
Docker
La imagen publicada (ghcr.io/kieksme/mcp-listmonk:latest) admite ambos transportes — es el mismo entrypoint que npx, así que las opciones de arriba se aplican de la misma manera.
Remoto (HTTP) — publica el puerto:
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:latestLocal (stdio) — mantén stdin conectado (-i) en lugar de publicar un puerto; esto es lo que pondrías detrás de command/args de un cliente (p. ej. docker como comando) si prefieres ejecutar el contenedor en lugar de que npx descargue el paquete:
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 --stdioConfiguración
Establece estas variables de entorno al iniciar el servidor:
Variable | Requerido | Descripción |
| Sí | URL base de tu instancia de Listmonk, p. ej. |
| Sí | Nombre de usuario de API (Listmonk Admin → Usuarios) |
| Sí | Token de API para ese usuario |
| No |
|
| No | Puerto HTTP en el que escuchar (predeterminado |
| No | Matriz JSON (o lista separada por comas) de selectores de herramienta/categoría; consulte a continuación. Vacío/sin definir = las 72 herramientas. |
| No | Si se define, |
Nota de seguridad: LISTMONK_API_USER/LISTMONK_API_TOKEN autentican este servidor ante Listmonk, no a los clientes MCP ante este servidor. Sin MCP_SERVER_AUTH_TOKEN, cualquiera que pueda alcanzar el puerto obtiene acceso completo a Listmonk con el alcance que tenga el usuario de API configurado. Prefiera crear un usuario de API con privilegios mínimos en Listmonk limitado solo a las categorías que pretenda habilitar.
Selección de las herramientas disponibles
LISTMONK_ENABLED_TOOLS acepta una matriz JSON (o cadena separada por comas) cuyas entradas son, sin distinción de mayúsculas y minúsculas, o bien:
un nombre de categoría:
subscribers,campaigns,templates,lists,media,import,bounces,settings,maintenance,public,transactional,logs,admin,miscellaneous— habilita todas las herramientas de esa categoría, oun nombre de herramienta exacto: p. ej.
listmonk_get_subscriber— habilita solo esa herramienta.
# 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,campaignsDéjelo sin definir (o []) para exponer las 72 herramientas.
Anulación por solicitud (solo remoto/HTTP): una única instancia desplegada también puede servir diferentes conjuntos de herramientas a diferentes clientes sin reiniciar, mediante la cabecera X-Listmonk-Enabled-Tools o la cadena de consulta ?tools= en la solicitud POST /mcp — la misma sintaxis de selectores que arriba. Esto anula LISTMONK_ENABLED_TOOLS solo para esa solicitud. No hay equivalente para el transporte local/stdio: cada proceso stdio se crea de nuevo por cliente, así que simplemente establezca LISTMONK_ENABLED_TOOLS en la configuración env/environment de ese cliente.
Dado que la cadena de consulta es solo parte de la URL, esta es la forma más sencilla de dar a un cliente concreto (p. ej. una entrada en opencode.json, .mcp.json o .cursor/mcp.json) un conjunto de herramientas reducido mientras otros clientes siguen usando el mismo servidor con el conjunto completo (o uno diferente) — basta con establecer la url de ese cliente en http://localhost:3000/mcp?tools=subscribers,campaigns en lugar de añadir variables de entorno para todo el servidor o levantar una segunda instancia. Los clientes que admiten cabeceras personalizadas pueden usar X-Listmonk-Enabled-Tools en su lugar, lo que mantiene limpia la propia URL.
Catálogo de herramientas (72 herramientas)
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
Notas sobre algunas herramientas poco evidentes
Operaciones masivas/por consulta sobre suscriptores (
listmonk_delete_subscribers_by_query,listmonk_blocklist_subscribers_by_query,listmonk_manage_subscriber_lists_by_query) se ejecutan contra una expresión de filtro SQL de Listmonk y actúan sobre todos los suscriptores que coincidan sin paso de vista previa. Llame siempre primero alistmonk_list_subscriberscon la mismaquerypara comprobar el número de coincidencias.Las herramientas de vista previa/contenido de campañas están divididas intencionadamente en cuatro herramientas distintas porque Listmonk expone cuatro endpoints distintos para ellas:
listmonk_get_campaign_previewrenderiza la campaña tal como está guardada actualmente;listmonk_preview_campaign_draftylistmonk_preview_campaign_textrenderizan un cuerpo no guardado sin persistir nada;listmonk_convert_campaign_contentrealiza y persiste una conversión de formato (p. ej. markdown → HTML) — no es una vista previa a pesar de la similitud.listmonk_send_campaign_testobtiene primero el estado guardado actual de la campaña y solo anula los campos que usted pasa explícitamente, para evitar vaciar accidentalmente campos que la propia API de Listmonk sobrescribiría silenciosamente con valores vacíos.
Contribuciones
¿Quiere compilar desde el código fuente, ejecutar la suite de pruebas o entender el proceso de publicación? Consulte CONTRIBUTING.md.
Licencia
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