Listmonk MCP
Connect MCP clients to your self-hosted Listmonk instance. Manage subscribers and mailing lists, prepare and test campaigns, work with templates and media, and inspect analytics through Listmonk's REST API.
Documentation · PyPI · Changelog
Quick start
Requires Python 3.11+ and a running Listmonk instance. Install uv, then add this configuration to an MCP client that supports stdio servers:
{
"mcpServers": {
"listmonk": {
"command": "uvx",
"args": ["listmonk-mcp@0.2.0"],
"env": {
"LISTMONK_MCP_URL": "https://listmonk.example.com",
"LISTMONK_MCP_USERNAME": "your-api-user",
"LISTMONK_MCP_PASSWORD": "your-api-token"
}
}
}
}
Create an API user in Listmonk's user management screen, assign the permissions and lists it needs, and generate an API token. LISTMONK_MCP_PASSWORD is that token, not your dashboard password. Requests use Authorization: token username:api_token; Listmonk enforces the user's permissions.
For a persistent installation:
uv tool install listmonk-mcp==0.2.0
listmonk-mcp --help
listmonk-mcp --version
Or install with pip install listmonk-mcp==0.2.0 in a virtual environment. The client starts the MCP process; there is no separate HTTP listener or hosted MCP endpoint.
What it supports
- Campaigns: search/list, create drafts, edit content, preview, send tests to existing subscribers, schedule, send, pause/cancel, archive, delete, and analytics.
- Subscribers and lists: paginated list-name search, subscriber updates, subscription management, activity, opt-in emails, blocklisting, and CSV/ZIP imports.
- Templates and media: campaign and transactional templates with subject preservation, previews, defaults, uploads, v7 media tags, and deletion.
- Operations: bounces, dashboard data, settings, logs, and maintenance.
- Resources: browsable
listmonk://lists, subscribers, campaigns, templates, previews, and media.
Start with “Find the Weekly News mailing list, create a draft campaign, and send a test to my existing subscriber address.” Creating a campaign does not send it; sending is a separate tool. Tools act with the configured API user's permissions, including write and send access when granted. Bulk bounce operations require an explicit all=true to target every bounce.
Compatibility
v0.2.0 targets the Listmonk v7.0.0-beta.2 API and retains the existing v6 workflows. See the compatibility notes for checked behavior and version-specific settings. The MCP Python SDK is bounded to >=1.30.0,<2; SDK 2.x removed the FastMCP interface used here.
Configuration
Environment variables or a local .env file configure the server. Use listmonk-mcp --config /absolute/path/to/listmonk.env for an explicit file. See .env.example and the configuration reference.
Development
git clone https://github.com/rhnvrm/listmonk-mcp.git
cd listmonk-mcp
uv sync --frozen --extra dev
make check
uv build
make check runs linting, formatting checks, strict source type checks, and tests. CI runs Python 3.11–3.14. Tests use HTTP mocks by default; an opt-in integration suite exercises a disposable Listmonk instance, including a real MCP stdio connection. See CONTRIBUTING.md.
Documentation is built with oddship/moat:
go install github.com/oddship/moat@latest
moat build docs/ _site/
moat serve _site/
License
MIT. An independent integration, not an official Listmonk project.
Metadata
Release files for listmonk-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| listmonk_mcp-0.2.0.tar.gz | 1.6 MB | With provenance | Details for listmonk_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| listmonk_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for listmonk_mcp-0.2.0-py3-none-any.whl |
Total release size: 1.6 MB
Release files / listmonk_mcp-0.2.0.tar.gz
| Download URL | listmonk_mcp-0.2.0.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d4893eb27040c64bb666a47c6002d5459b6613a6c20a99d1a8206b9eadfd07c
|
|
BLAKE2b-256 checksum How to use checksums |
77211fd0dc4911d3f96b3a688682addaa060ad5bd94ba8d4996cd5a16b3bc4e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logRelease files / listmonk_mcp-0.2.0-py3-none-any.whl
| Download URL | listmonk_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7c7c464fa1c89bc07fce7087a444036b416a5886388f07eb574c04a26917181
|
|
BLAKE2b-256 checksum How to use checksums |
4eee19ce2d00de9ee486c0bee8558b60faea29898fbf017b4e45fac2e20cdd8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logSecurity for listmonk-mcp 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for listmonk_mcp-0.2.0.tar.gz
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 Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.