Skip to main content

Listmonk MCP Bridge

PyPI version Python versions License CI Docs Container Ruff mypy GitHub release Downloads

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/

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.

Each bridge release is linked to a content-addressed Listmonk API contract in the compatibility matrix.

It includes runtime confirmations for destructive actions, real email sends and sensitive reads.

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_health
  • get_mailing_lists
  • get_list_subscribers_tool
  • get_subscriber_context
  • audience_summary
  • personalization_fields_report
  • validate_message_personalization
  • campaign_risk_check
  • safe_test_campaign
  • safe_send_campaign
  • safe_schedule_campaign
  • safe_send_transactional_email
  • campaign_performance_summary
  • export_campaign_markdown
  • export_campaign_postmortem_markdown
  • export_engagement_events
  • export_subscriber_communication_summary
  • upsert_subscriber_profiles with dryRun=true before 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_campaign
  • test_campaign
  • schedule_campaign
  • send_transactional_email
  • add_subscriber
  • update_subscriber
  • change_subscriber_status
  • manage_subscriber_lists
  • manage_subscriber_lists_by_query
  • delete_subscribers_by_query
  • blocklist_subscriber
  • blocklist_subscribers
  • blocklist_subscribers_by_query
  • remove_subscriber
  • remove_subscribers
  • create_campaign
  • update_campaign
  • update_campaign_status
  • archive_campaign
  • replace_in_campaign_body
  • regex_replace_in_campaign_body
  • batch_replace_in_campaign_body
  • create_template
  • update_template
  • delete_template
  • set_default_template
  • create_mailing_list
  • update_mailing_list
  • delete_mailing_list
  • delete_mailing_lists
  • import_subscribers
  • upload_media_file
  • delete_media_file
  • update_settings
  • reload_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.

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_send or confirmSchedule.
  • safe_* wrappers are preferred for LLM agents.
  • Approval metadata can block send/schedule even when confirmation is true.
  • idempotencyKey prevents 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.

Release files for listmonk-mcp-bridge 0.4.36

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for listmonk-mcp-bridge 0.4.36
File Size Uploaded
listmonk_mcp_bridge-0.4.36.tar.gz 186.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for listmonk-mcp-bridge 0.4.36
File Interpreter ABI Platform
listmonk_mcp_bridge-0.4.36-py3-none-any.whl Python 3 none any Details

Total release size: 229.8 kB

Release files / listmonk_mcp_bridge-0.4.36.tar.gz

Download URL listmonk_mcp_bridge-0.4.36.tar.gz
Size 186.1 kB
Tags Source
SHA-256 checksum
How to use checksums
307dfe4f8b6063d9c192f380f1ffcfbd5cae73599e47fd27a89328b14079ecb1
BLAKE2b-256 checksum
How to use checksums
907c9bcc076e6d584b6d93dfa1f7379b9b7306b182b7098128badcc055435f6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / listmonk_mcp_bridge-0.4.36-py3-none-any.whl

Download URL listmonk_mcp_bridge-0.4.36-py3-none-any.whl
Size 43.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
295340404b1e1fd7a79e91603fcd03034be4d0ca6633306f7d5773386369ccbf
BLAKE2b-256 checksum
How to use checksums
c4d99e108c75b82103436cc8ddc6bde9307ff941aa6820585252b77c3484d094
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.36 This release

2 release files

0.4.35

2 release files

0.4.34

2 release files

0.4.33

2 release files

0.4.32

2 release files

0.4.31

2 release files

0.4.30

2 release files

0.4.29

2 release files

0.4.28

2 release files

0.4.27

2 release files

0.4.26

2 release files

0.4.23

2 release files

0.4.22

2 release files

0.4.21

2 release files

0.4.20

2 release files

0.4.19

2 release files

0.4.17

2 release files

0.4.16

2 release files

0.4.15

2 release files

0.4.11

2 release files

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page