Skip to main content

Production-ready MCP server for Listmonk newsletter and mailing list management

Project description

Listmonk MCP Bridge

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

MCP server for Listmonk newsletter operations.

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.

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_profiles
  • get_subscriber_context
  • audience_summary
  • personalization_fields_report
  • validate_message_personalization
  • campaign_risk_check
  • safe_send_campaign
  • safe_schedule_campaign
  • safe_send_transactional_email
  • campaign_performance_summary
  • export_engagement_events
  • export_campaign_markdown
  • export_campaign_postmortem_markdown
  • export_subscriber_communication_summary

Example profile sync dry run:

{
  "profiles": [
    {
      "externalId": "abc-123",
      "source": "external-system",
      "email": "ana@example.com",
      "name": "Ana Popescu",
      "attributes": {
        "birthday": "1990-05-10",
        "customer_type": "vip"
      },
      "tags": ["vip"],
      "listIds": [1, 2],
      "status": "enabled"
    }
  ],
  "dryRun": true
}

Example personalization and send checks:

{
  "email": "ana@example.com"
}
{
  "listIds": [1, 2],
  "filters": {}
}
{
  "subject": "Salut {{name}}",
  "body": "Avem o ofertă pentru {{customer_type}}.",
  "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": "ana@example.com",
  "subject": "Mesaj pentru tine",
  "data": {
    "name": "Ana"
  },
  "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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

listmonk_mcp_bridge-0.4.0.tar.gz (117.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

listmonk_mcp_bridge-0.4.0-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file listmonk_mcp_bridge-0.4.0.tar.gz.

File metadata

  • Download URL: listmonk_mcp_bridge-0.4.0.tar.gz
  • Upload date:
  • Size: 117.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for listmonk_mcp_bridge-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9b3c6db5f2002aff6bfb45de789efaa0e7fe02d89c879b5ba93c900654ba7645
MD5 5b9ae0883c3e071220944747303ce456
BLAKE2b-256 8215c46b35471648deaf9cbcc28b458ee2b5c48065ffe2f120b5a592d7249e29

See more details on using hashes here.

File details

Details for the file listmonk_mcp_bridge-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for listmonk_mcp_bridge-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e13a82d984916f9b1d4fcf7b02c33341ffe84840eeaca7db80233f482068493c
MD5 bf649784013f1bb22052e0751c5aa5a0
BLAKE2b-256 bfe50ec9a3fc6a9de94c3f9d9661ec1b757d2f05fbb4315a10ca3c5630f4c9e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page