@kieksme/listmonk-mcp
@kieksme/listmonk-mcp
MCP-сервер (Model Context Protocol), открывающий полный REST API Listmonk (72 инструмента в 14 категориях) для MCP-совместимых LLM-клиентов — как локальный процесс stdio, который ваш клиент запускает сам, или как удалённое развёртывание Streamable HTTP, к которому может подключиться любое количество клиентов.
Создан на основе спецификации OpenAPI Listmonk.
Быстрый старт
Локально: позвольте вашему MCP-клиенту запустить сервер самостоятельно через stdio — ничего не нужно запускать вручную, не нужно открывать порт. Добавьте его в конфигурацию вашего клиента (здесь показан Claude Code; см. Подключение вашего MCP-клиента ниже для Cursor, VS Code, Claude Desktop, OpenCode, LM Studio и 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 --stdioУдалённо: запустите сервер один раз — он будет доступен по HTTP для любого количества клиентов:
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/mcpПодробнее об обоих режимах, включая Docker, см. в разделе Запуск сервера.
Related MCP server: listmonk-mcp-bridge
Подключение вашего MCP-клиента
Каждый клиент ниже поддерживает два варианта настройки — выберите один:
Локально (stdio): клиент сам запускает
npx @kieksme/listmonk-mcp --stdioкак подпроцесс и общается по MCP через его stdin/stdout. Не нужно держать сервер запущенным, не нужен порт, нет проблем с доступностью — как правило, это более простой вариант по умолчанию для одного локального клиента.Удалённо (HTTP): вы сами запускаете сервер (см. Запуск сервера), и клиент подключается к его URL. Требуется, когда несколько клиентов используют один экземпляр сервера или сервер работает не на вашей машине.
Использование pnpm вместо npx для локальной настройки (stdio): каждый локальный пример (stdio) ниже использует command: "npx" с args: ["-y", "@kieksme/listmonk-mcp", "--stdio"]. Если вы предпочитаете pnpm, замените на command: "pnpm" с args: ["dlx", "@kieksme/listmonk-mcp", "--stdio"] — и уберите -y. -y — это флаг npx «пропустить запрос подтверждения установки»; у pnpm dlx такого запроса изначально нет, поэтому он вообще не принимает -y и сразу завершается с ERROR Unknown option: 'y' (что проявляется для клиента как общее «Connection closed», поскольку процесс умирает, так и не начав общение по MCP). Та же замена применима к любой форме CLI ниже, которая начинается с npx -y — замените её на pnpm dlx (без -y).
Примечание о доступности для удалённой настройки (HTTP): клиенту нужен http://localhost:3000 только если он работает на той же машине, что и сервер. Claude Code, Cursor, VS Code, OpenCode и LM Studio — это локальные инструменты, поэтому localhost работает напрямую. Claude Desktop — локальное приложение и обычно тоже может обратиться к localhost. ChatGPT и Claude.ai (веб-приложения) работают в облаке и не могут обратиться к вашему localhost — чтобы использовать этот сервер с ними, вам нужно развернуть его где-то, доступном из интернета (или пробросить туннель, например, с помощью ngrok http 3000), и использовать этот публичный URL. Коннекторы ChatGPT работают только по HTTP, поэтому для него ниже нет локального варианта (stdio).
Claude Code
Локально (stdio), в рамках проекта через .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"
}
}
}
}Или из 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 --stdioУдалённо (HTTP), когда сервер уже запущен (см. Запуск сервера):
{
"mcpServers": {
"listmonk": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}claude mcp add --transport http listmonk http://localhost:3000/mcpЕсли вы задали MCP_SERVER_AUTH_TOKEN на сервере, добавьте заголовок: claude mcp add --transport http listmonk http://localhost:3000/mcp --header "Authorization: Bearer <token>".
Cursor
Установка в один клик (локально/stdio, с заготовками учётных данных, которые вам нужно будет заполнить позже в настройках MCP в Cursor):
Или настройте вручную — локально (stdio), через .cursor/mcp.json в корне репозитория (или глобально в ~/.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"
}
}
}
}Удалённо (HTTP), когда сервер уже запущен:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp"
}
}
}Если вы задали MCP_SERVER_AUTH_TOKEN на сервере, передайте его как заголовок:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}Вы также можете добавить любой из вариантов через Cursor Settings → MCP → Add new MCP server.
VS Code
Установка в один клик (локально/stdio, с заготовками учётных данных, которые вам нужно будет заполнить позже в настройках MCP в VS Code):
Или настройте вручную — локально (stdio), через .vscode/mcp.json в корне репозитория:
{
"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"
}
}
}
}Удалённо (HTTP), когда сервер уже запущен (здесь обязателен type, поскольку нет command, из которого его можно было бы определить):
{
"servers": {
"listmonk": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}Claude Desktop
Локально (stdio), в 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"
}
}
}
}Удалённо (HTTP): Settings → Connectors → Add custom connector, и вставьте http://localhost:3000/mcp как URL (сервер уже должен быть запущен). Если конфигурационный файл вашей версии Claude Desktop поддерживает удалённые серверы напрямую, эквивалентная запись выглядит так:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp"
}
}
}OpenCode
Локально (stdio), в opencode.json (конфигурация проекта или глобальная):
{
"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
}
}
}Удалённо (HTTP), когда сервер уже запущен:
{
"mcp": {
"listmonk": {
"type": "remote",
"url": "http://localhost:3000/mcp",
"enabled": true
}
}
}Примечание о enabled: этот флаг — собственный клиентский переключатель OpenCode; он просто включает/выключает всё подключение к серверу для данного клиента и никак не связан с тем, какие инструменты/категории listmonk доступны. В удалённой настройке (HTTP), чтобы ограничить какие инструменты видит этот конкретный клиент (без перезапуска сервера или изменения LISTMONK_ENABLED_TOOLS), добавьте параметр запроса tools к самому url:
{
"mcp": {
"listmonk": {
"type": "remote",
"url": "http://localhost:3000/mcp?tools=subscribers,campaigns",
"enabled": true
}
}
}В локальной настройке (stdio) вместо этого задайте LISTMONK_ENABLED_TOOLS в environment — полный синтаксис селектора см. в разделе Выбор доступных инструментов.
LM Studio
Установка в один клик (локально/stdio, с заготовками учётных данных, которые вам нужно будет заполнить позже в настройках MCP в LM Studio):
Или настройте вручную через ~/.lmstudio/mcp.json (вкладка Program → Install → Edit mcp.json) — локально (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"
}
}
}
}Удалённо (HTTP), когда сервер уже запущен:
{
"mcpServers": {
"listmonk": {
"url": "http://localhost:3000/mcp"
}
}
}ChatGPT
Коннекторы ChatGPT (Settings → Connectors → Create, доступны на платных тарифах, поддерживающих MCP) принимают только публично доступный HTTP URL — ChatGPT работает в облаке и не может запустить локальный процесс stdio, так что удалённая настройка — единственный вариант. Разверните сервер (см. Docker) на хосте с публичным URL или пробросьте туннель к вашему локальному экземпляру (например, ngrok http 3000), затем укажите https://<your-host>/mcp как URL коннектора. Если вы задали MCP_SERVER_AUTH_TOKEN, настройка коннектора ChatGPT позволяет указать bearer-токен вместе с URL.
Возможности
Полное покрытие API: подписчики, кампании, списки, шаблоны, медиа, отказы, импорт, настройки, обслуживание, транзакционные сообщения, публичная подписка, журналы, администрирование и конечные точки панели управления/прочие.
Выборочная загрузка инструментов — включайте только те категории/инструменты, которые вам действительно нужны, чтобы контекст LLM не был переполнен всеми 72 определениями инструментов сразу.
Два транспорта в одном пакете: stdio для локального процесса, запускаемого клиентом, и stateless Streamable HTTP для удалённого развёртывания (без состояния сессии, легко масштабируется горизонтально за балансировщиком нагрузки).
Опциональная защита
/mcpbearer-токеном (только для HTTP-транспорта — у stdio нет сетевого слушателя, который нужно защищать).
Запуск сервера
Локально (stdio)
Обычно вам не нужно запускать это вручную — ваш MCP-клиент запускает его согласно конфигурации из раздела Подключение вашего MCP-клиента выше. Чтобы запустить вручную (например, для быстрой проверки вне клиента), передайте --stdio или задайте MCP_TRANSPORT=stdio:
LISTMONK_URL=https://newsletter.example.com \
LISTMONK_API_USER=my-api-user \
LISTMONK_API_TOKEN=xxxxxxxx \
npx @kieksme/listmonk-mcp --stdioПроцесс общается по MCP JSON-RPC через stdout и пишет логи в stderr — он завершается, когда закрывается его stdin (то есть когда родительский клиент отключается). LISTMONK_ENABLED_TOOLS по-прежнему определяет, какие инструменты регистрируются, но в этом режиме нет переопределения на каждый запрос: один клиентский процесс — один фиксированный набор инструментов на всё время его жизни.
Удалённо (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-mcpКонечная точка MCP — POST http://localhost:3000/mcp (streamable HTTP, без состояния — согласование сессии не требуется).
Docker
Опубликованный образ (ghcr.io/kieksme/mcp-listmonk:latest) поддерживает оба транспорта — это та же точка входа, что и у npx, поэтому указанные выше флаги работают так же.
Удалённо (HTTP) — опубликуйте порт:
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:latestЛокально (stdio) — оставьте stdin подключённым (-i) вместо публикации порта; именно это вы поместите в command/args клиента (например, docker как команду), если предпочитаете запускать контейнер, а не получать пакет через npx:
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 --stdioКонфигурация
Задайте эти переменные окружения при запуске сервера:
Variable | Required | Description |
| Да | Базовый URL вашего экземпляра Listmonk, например |
| Да | Имя пользователя API (Listmonk Admin → Users) |
| Да | API-токен для этого пользователя |
| Нет |
|
| Нет | HTTP-порт для прослушивания (по умолчанию |
| Нет | JSON-массив (или список через запятую) селекторов инструментов/категорий — см. ниже. Пусто/не задано = все 72 инструмента. |
| Нет | Если задан, |
Примечание по безопасности: LISTMONK_API_USER/LISTMONK_API_TOKEN аутентифицируют этот сервер перед Listmonk, а не MCP-клиентов перед этим сервером. Без MCP_SERVER_AUTH_TOKEN любой, кто может получить доступ к порту, получает полный доступ к Listmonk в том объёме, который доступен настроенному API-пользователю. Предпочтительнее создать в Listmonk API-пользователя с минимальными привилегиями, ограниченного только теми категориями, которые вы собираетесь включить.
Выбор доступных инструментов
LISTMONK_ENABLED_TOOLS принимает JSON-массив (или строку через запятую), элементы которого, без учёта регистра, являются либо:
названием категории:
subscribers,campaigns,templates,lists,media,import,bounces,settings,maintenance,public,transactional,logs,admin,miscellaneous— включает все инструменты этой категории, илиточным названием инструмента: например
listmonk_get_subscriber— включает только этот один инструмент.
# 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,campaignsОставьте переменную незаданной (или []), чтобы открыть все 72 инструмента.
Переопределение для отдельного запроса (только remote/HTTP): один развёрнутый экземпляр может также обслуживать разные наборы инструментов для разных клиентов без перезапуска — через заголовок X-Listmonk-Enabled-Tools или строку запроса ?tools= в запросе POST /mcp — синтаксис селекторов тот же, что и выше. Это переопределяет LISTMONK_ENABLED_TOOLS только для этого одного запроса. Для локального/stdio транспорта эквивалента нет: каждый stdio-процесс порождается заново для каждого клиента, поэтому просто задайте LISTMONK_ENABLED_TOOLS в конфигурации env/environment самого клиента.
Поскольку строка запроса — это просто часть URL, это самый простой способ выдать одному конкретному клиенту (например, одной записи в opencode.json, .mcp.json или .cursor/mcp.json) урезанный набор инструментов, пока другие клиенты продолжают обращаться к тому же серверу с полным (или другим) набором — просто укажите в url этого клиента http://localhost:3000/mcp?tools=subscribers,campaigns вместо добавления общесерверных переменных окружения или развёртывания второго экземпляра. Клиенты, поддерживающие пользовательские заголовки, могут вместо этого использовать X-Listmonk-Enabled-Tools, что сохраняет сам URL чистым.
Каталог инструментов (72 инструмента)
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
Примечания о некоторых неочевидных инструментах
Массовые операции с подписчиками по запросу (
listmonk_delete_subscribers_by_query,listmonk_blocklist_subscribers_by_query,listmonk_manage_subscriber_lists_by_query) выполняются на основе SQL-выражения фильтра Listmonk и действуют на каждого подходящего подписчика без этапа предпросмотра. Всегда сначала вызывайтеlistmonk_list_subscribersс тем жеquery, чтобы проверить количество совпадений.Инструменты предпросмотра и контента кампаний намеренно разделены на четыре отдельных инструмента, потому что Listmonk предоставляет для них четыре отдельных эндпоинта:
listmonk_get_campaign_previewотображает кампанию в текущем сохранённом виде;listmonk_preview_campaign_draftиlistmonk_preview_campaign_textотображают несохранённое тело без сохранения чего-либо;listmonk_convert_campaign_contentвыполняет и сохраняет конвертацию формата (например, markdown → HTML) — это не предпросмотр, несмотря на похожую область применения.listmonk_send_campaign_testсначала получает текущее сохранённое состояние кампании и переопределяет только те поля, которые вы явно передаёте, чтобы случайно не обнулить поля, которые собственный API Listmonk в противном случае молча перезаписал бы пустыми значениями.
Участие в разработке
Хотите собрать проект из исходников, запустить набор тестов или разобраться в процессе выпуска? Смотрите CONTRIBUTING.md.
Лицензия
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