Production-ready MCP server for Listmonk newsletter and mailing list management
Project description
Listmonk MCP Bridge
MCP server for Listmonk newsletter operations.
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.
LLM-friendly helper tools
This MCP remains a generic Listmonk domain MCP. It does not orchestrate external systems, call other MCP servers, or hardcode external workflows.
The helper tools are built on top of the existing Listmonk API wrappers. They give LLM agents safer primitives for subscriber profile sync, audience inspection, personalization validation, campaign risk checks, guarded sends, generic exports and audit logs.
Recommended helper tools for agents:
upsert_subscriber_profilesget_subscriber_contextaudience_summarypersonalization_fields_reportvalidate_message_personalizationcampaign_risk_checksafe_send_campaignsafe_schedule_campaignsafe_send_transactional_emailcampaign_performance_summaryexport_engagement_eventsexport_campaign_markdownexport_campaign_postmortem_markdownexport_subscriber_communication_summary
Example profile sync dry run:
{
"profiles": [
{
"externalId": "abc-123",
"source": "external-system",
"email": "jane@example.com",
"name": "Jane Doe",
"attributes": {
"birthday": "1990-05-10",
"customer_type": "vip"
},
"tags": ["vip"],
"listIds": [1, 2],
"status": "enabled"
}
],
"dryRun": true
}
upsert_subscriber_profiles looks up existing subscribers by email before planning or
applying changes. In the current implementation that lookup uses Listmonk's subscriber
SQL query capability, so the MCP API key needs the subscribers:sql_query permission.
Without it, dry runs and upserts can return a Listmonk permission error.
Example personalization and send checks:
{
"email": "jane@example.com"
}
{
"listIds": [1, 2],
"filters": {}
}
{
"subject": "Hello {{name}}",
"body": "We have an update for {{customer_type}} subscribers.",
"listIds": [1],
"sampleSubscriberIds": [123, 456]
}
{
"campaignId": 123,
"requireTestSend": true,
"maxAudienceSize": 5000
}
{
"campaignId": 123,
"confirmSend": true,
"approval": {
"required": true,
"status": "approved",
"approvalId": "approval-123"
},
"requireTestSend": true,
"testRecipients": ["test@example.com"]
}
{
"templateId": 10,
"recipientEmail": "jane@example.com",
"subject": "A message for Jane",
"data": {
"name": "Jane",
"customMessage": "Happy birthday"
},
"contentType": "html",
"confirmSend": true,
"idempotencyKey": "unique-event-key-123"
}
Example generic exports:
{
"campaignId": 123,
"fromDate": "2026-04-01",
"toDate": "2026-04-30"
}
{
"campaignId": 123,
"eventTypes": ["email_viewed", "email_clicked"]
}
{
"campaignId": 123,
"includeBody": true,
"includeStats": true
}
{
"subscriberId": 123,
"fromDate": "2026-01-01",
"toDate": "2026-04-30"
}
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file listmonk_mcp_bridge-0.4.5.tar.gz.
File metadata
- Download URL: listmonk_mcp_bridge-0.4.5.tar.gz
- Upload date:
- Size: 120.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a601313667715bc98e54a5dab52c0110cf662b92129a75e30f3f82ec73243a2f
|
|
| MD5 |
95b274bdc69321c759a5544627e5e02b
|
|
| BLAKE2b-256 |
3ea19d2b74449e3ceb3747d5d9ab926912f0fea4249c9a2b036e93766a9e1011
|
Provenance
The following attestation bundles were made for listmonk_mcp_bridge-0.4.5.tar.gz:
Publisher:
publish.yml on mnbro/listmonk-mcp-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
listmonk_mcp_bridge-0.4.5.tar.gz -
Subject digest:
a601313667715bc98e54a5dab52c0110cf662b92129a75e30f3f82ec73243a2f - Sigstore transparency entry: 1411784803
- Sigstore integration time:
-
Permalink:
mnbro/listmonk-mcp-bridge@4a71204c98a556d78192114a9f948867aefce210 -
Branch / Tag:
refs/tags/v0.4.5 - Owner: https://github.com/mnbro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4a71204c98a556d78192114a9f948867aefce210 -
Trigger Event:
push
-
Statement type:
File details
Details for the file listmonk_mcp_bridge-0.4.5-py3-none-any.whl.
File metadata
- Download URL: listmonk_mcp_bridge-0.4.5-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82292884a49d6ead8fb14c004d79022016aa6fb96c1c13694906d94d0f2b8f19
|
|
| MD5 |
c64725812a3537b963e6c8561aac8263
|
|
| BLAKE2b-256 |
3a32e9f4c9499646cc5351a5fda4469ed975b2a43b12ee369ab7fadab3d1f4b7
|
Provenance
The following attestation bundles were made for listmonk_mcp_bridge-0.4.5-py3-none-any.whl:
Publisher:
publish.yml on mnbro/listmonk-mcp-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
listmonk_mcp_bridge-0.4.5-py3-none-any.whl -
Subject digest:
82292884a49d6ead8fb14c004d79022016aa6fb96c1c13694906d94d0f2b8f19 - Sigstore transparency entry: 1411784919
- Sigstore integration time:
-
Permalink:
mnbro/listmonk-mcp-bridge@4a71204c98a556d78192114a9f948867aefce210 -
Branch / Tag:
refs/tags/v0.4.5 - Owner: https://github.com/mnbro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4a71204c98a556d78192114a9f948867aefce210 -
Trigger Event:
push
-
Statement type: