listmonk-mcp-bridge
Enables AI agents to manage Listmonk email campaigns, subscribers, lists, and analytics through typed MCP tools with production safety features.
README
Listmonk MCP Bridge
Connect Listmonk to AI agents so they can safely manage email lists, subscribers, campaigns, test sends, transactional emails, and performance reports.
Documentation: https://mnbro.github.io/listmonk-mcp-bridge/
- Tool list: https://mnbro.github.io/listmonk-mcp-bridge/tools/
- Docker: https://mnbro.github.io/listmonk-mcp-bridge/docker/
- Configuration: https://mnbro.github.io/listmonk-mcp-bridge/configuration/
- MCP clients: https://mnbro.github.io/listmonk-mcp-bridge/mcp-clients/
- API coverage: https://mnbro.github.io/listmonk-mcp-bridge/api-coverage/
- Safeguards: https://mnbro.github.io/listmonk-mcp-bridge/safeguards/
What it does
listmonk-mcp-bridge lets MCP clients work with the Listmonk API through typed tools for subscribers, lists, campaigns, templates, media, analytics, imports, bounces and transactional messages.
It includes runtime confirmations for destructive actions, real email sends and sensitive reads.
Recommended tools for LLM agents / orchestrators
This MCP remains a generic Listmonk domain MCP. It does not orchestrate external systems, call other MCP servers, or hardcode external workflows. For full tool behavior and schemas, use the tool documentation and safeguards documentation.
Recommended for autonomous LLM/orchestrator use:
check_listmonk_healthget_mailing_listsget_list_subscribers_toolget_subscriber_contextaudience_summarypersonalization_fields_reportvalidate_message_personalizationcampaign_risk_checksafe_test_campaignsafe_send_campaignsafe_schedule_campaignsafe_send_transactional_emailcampaign_performance_summaryexport_campaign_markdownexport_campaign_postmortem_markdownexport_engagement_eventsexport_subscriber_communication_summaryupsert_subscriber_profileswithdryRun=truebefore any non-dry-run execution
These tools are LLM-friendly because they return compact summaries, warnings and blockers; use guardrails for confirmations, risk checks, approvals and idempotency where relevant; avoid accidental sends; and are suitable building blocks for external business orchestrators.
Supervised / low-level only:
send_campaigntest_campaignschedule_campaignsend_transactional_emailadd_subscriberupdate_subscriberchange_subscriber_statusmanage_subscriber_listsmanage_subscriber_lists_by_querydelete_subscribers_by_queryblocklist_subscriberblocklist_subscribersblocklist_subscribers_by_queryremove_subscriberremove_subscriberscreate_campaignupdate_campaignupdate_campaign_statusarchive_campaignconvert_campaign_contentreplace_in_campaign_bodyregex_replace_in_campaign_bodybatch_replace_in_campaign_bodycreate_templateupdate_templatedelete_templateset_default_templatecreate_mailing_listupdate_mailing_listdelete_mailing_listdelete_mailing_listsimport_subscribersupload_media_filerename_mediadelete_media_fileupdate_settingsreload_app
Some low-level tools have confirmation guards, but they are still closer to the raw Listmonk API. Prefer safe_* wrappers for LLM workflows. For content changes, preview and risk-check before mutating operations.
Recommended workflows
Campaign flow: check_listmonk_health -> audience_summary -> personalization_fields_report -> validate_message_personalization -> campaign_risk_check -> get_campaign_html_preview or export_campaign_markdown -> safe_test_campaign -> external approval if required -> safe_schedule_campaign or safe_send_campaign -> campaign_performance_summary -> export_campaign_postmortem_markdown.
Do not use send_campaign directly in an orchestrator. Do not use schedule_campaign directly unless there is an explicit low-level reason. Prefer safe_test_campaign before safe_send_campaign; when safe_send_campaign uses requireTestSend=true, provide testRecipients.
Transactional email flow: get_subscriber_context -> validate_message_personalization if subject/body are generated -> safe_send_transactional_email with confirmSend=false for a safety check -> safe_send_transactional_email with confirmSend=true only after an explicit decision. Use an idempotencyKey for recurring events, for example birthday-email:{subscriberId}:{year}.
Transactional data accepts object | null and may contain nested JSON. Some connector renderers show only example fields such as name and customMessage, but the schema keeps additionalProperties=true, so arbitrary template variables are allowed.
Subscriber sync flow: get_subscriber_context by email -> upsert_subscriber_profiles with dryRun=true -> inspect plannedCreated, plannedUpdated and errors -> run upsert_subscriber_profiles with dryRun=false only after external confirmation.
upsert_subscriber_profiles looks up subscribers by email. It needs the relevant Listmonk subscriber permissions, including subscribers:sql_query if SQL lookup is used. Email literals are quoted safely, including apostrophes. In production, use dryRun=true before any write.
Production safety model
- Sensitive read tools require
confirm_read. - Send tools require
confirm_send. - Destructive tools require
confirm. - Scheduling tools require
confirm_sendorconfirmSchedule. safe_*wrappers are preferred for LLM agents.- Approval metadata can block send/schedule even when confirmation is true.
idempotencyKeyprevents duplicate transactional email sends.- Safe confirmed operations return an
auditId.
License
This project is licensed under the PolyForm Internal Use License 1.0.0.
You may use and modify it for your own internal business operations, including commercial internal use. You may not redistribute it, resell it, sublicense it, or offer it as a productized service to third parties.
Install
Run directly with uvx:
uvx listmonk-mcp-bridge
Or install with pip:
pip install listmonk-mcp-bridge
listmonk-mcp-bridge
Configure
Required environment variables:
export LISTMONK_MCP_URL=https://listmonk.example.com
export LISTMONK_MCP_USERNAME=api-user
export LISTMONK_MCP_PASSWORD=your-api-token
Use a dedicated Listmonk API user and token. Do not use the default admin account in production.
MCP client config
{
"mcpServers": {
"listmonk-mcp-bridge": {
"command": "uvx",
"args": ["listmonk-mcp-bridge"],
"env": {
"LISTMONK_MCP_URL": "https://listmonk.example.com",
"LISTMONK_MCP_USERNAME": "api-user",
"LISTMONK_MCP_PASSWORD": "your-api-token"
}
}
}
}
Docker
The Debian slim based container image is published to GitHub Container Registry:
docker run --rm -i \
--env LISTMONK_MCP_URL=https://listmonk.example.com \
--env LISTMONK_MCP_USERNAME \
--env LISTMONK_MCP_PASSWORD \
ghcr.io/mnbro/listmonk-mcp-bridge:latest
See the Docker documentation for MCP client configuration.
Development
uv sync --all-extras
uv run ruff check .
uv run pytest
uv run python -m mypy src tests
uv run mkdocs build --strict
Full setup, tool behavior, API coverage, client-specific configuration and security notes are in the documentation site.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。