
Listmonk MCP
io.github.tecspda由 GitHub 账号 tecspda 发布v0.1.3更新于 Oct 30, 2026
Listmonk MCP server: subscribers, lists, campaigns, templates, media, transactional email
概览
面向自建 Listmonk 的 MCP 服务器,让助手管理订阅者、邮件列表、活动、模板和媒体,并发送邮件。
- 可以做什么
- 检查 Listmonk 健康状态与连接情况
- 新增、更新、删除、搜索和查询订阅者,并更改其状态
- 创建、更新、删除和查看邮件列表及其成员
- 创建、更新、预览、立即发送或定时发送活动,并用普通替换、正则替换或批量替换编辑活动正文
- 创建、更新、读取和删除模板,可从文件加载大型 HTML 正文
- 用 tx 模板发送事务性邮件,并上传、重命名、列出或删除媒体
- 适用场景
- 适合自建 Listmonk 新闻邮件服务器、希望让助手处理日常列表管理、起草或修改活动、管理模板与媒体,或发送单封事务性邮件的场景,无需在管理后台逐项操作。
- 运行要求
- 作为 stdio 本地进程由 MCP 客户端启动,需要 Bun 1.1 或更高版本(通过 bunx 运行)。需要可访问的 Listmonk 地址和 API 用户,通过 LISTMONK_MCP_URL、LISTMONK_MCP_USERNAME 和 LISTMONK_MCP_PASSWORD 提供。可选的 LISTMONK_MCP_FILES_DIR 用于启用基于文件的模板与媒体工具;超时、重试和服务器名称变量为可选项。
安装
在 SourceWeft 中
- 打开 控制台中的 Listmonk MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Listmonk MCP Server
An MCP server for Listmonk, the self-hosted newsletter and mailing list manager. It lets AI agents (Claude Code, Claude Desktop, Cursor, Cline, VS Code and others) manage subscribers, mailing lists, campaigns, templates and media, and send transactional email through your Listmonk instance.
TypeScript port of rhnvrm/listmonk-mcp by Rohan Verma, extended with file-based templates, campaign body editing and hardened file access.
Written in TypeScript, runs on Bun.
Features
- Subscribers: add, update, delete, change status, search with Listmonk SQL queries, look up by ID or email.
- Mailing lists: create, update, delete, list, list members.
- Campaigns: create, update, preview, send now, schedule. Edit the body with plain-text, regex and batch replace.
- Templates: create, update, delete, read. Large HTML bodies (for example MJML exports) can be loaded straight from a file.
- Transactional email: send a
txtemplate to one recipient with custom data. - Media: upload, rename, delete, list.
Requirements
- Bun 1.1 or newer.
- Listmonk with an API user. In the Listmonk admin, open Users, create a user of type API and copy its token. Give it a role with only the permissions the agent needs.
Quick start
One-click install (then replace the placeholder URL, user and token in the client's MCP settings):
[Install in Cursor] [Install in VS Code]
Claude Code
Claude Desktop, Cursor, Cline and other clients
Add the server to the client's MCP config (mcpServers section):
Where the config file lives for each client: Claude Desktop, Cursor and Windsurf, Cline, VS Code.
The server is started by the client when a session opens and stops with it. You do not need to keep it running.
Configuration
Variables can also come from a .env file in the working directory, or from a file passed with --config /path/to/.env.
CLI options: -c, --config <file> loads an env file, -v, --version prints the version.
Tools
Templates from a file
Passing a large HTML body inline through a tool call is slow and the model can change it while copying. create_template_from_file and update_template_from_file read the body from a file instead, so the stored template matches the file byte for byte. subject is required for tx templates.
The file path can be absolute or relative to LISTMONK_MCP_FILES_DIR.
Security
- File access is limited to
LISTMONK_MCP_FILES_DIR.create_template_from_file,update_template_from_fileandupload_media_filerefuse any path outside it, symlinks included, and are disabled when it is not set. Subscriber names, campaign bodies and other data read from Listmonk may contain instructions written by strangers (prompt injection). Without this limit such text could make the agent read~/.sshor.envand email it out. - Keep approval on for sending tools.
send_campaign,schedule_campaignandsend_transactional_emailsend real email. Do not auto-approve them in your client. - Use a dedicated API user with a role limited to what the agent needs, not an admin account.
- Keep the token out of shared files. If your MCP config is committed or synced, pass the token through the environment instead.
Development
To run a local checkout from an MCP client, use "command": "bun", "args": ["run", "/path/to/listmonk-mcp-ts/src/index.ts"].
Need a Listmonk instance for testing? See Docker setup.
License
来源:README.md,提交 756dcf6
工具
0版本历史
2- v0.1.3最新Oct 29, 2026
- v0.1.1Oct 21, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分