MCP server for Listmonk: AI agents manage subscribers, lists, campaigns, templates and media, and send transactional email. TypeScript, runs via bunx.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/tecspda/listmonk-mcp-ts{
"mcpServers": {
"listmonk-mcp-ts": {
"command": "node",
"args": ["/path/to/listmonk-mcp-ts/dist/index.js"],
"env": {
"LISTMONK_MCP_URL": "<listmonk_mcp_url>",
"LISTMONK_MCP_USERNAME": "<listmonk_mcp_username>",
"LISTMONK_MCP_PASSWORD": "<listmonk_mcp_password>"
}
}
}
}LISTMONK_MCP_URLLISTMONK_MCP_USERNAMELISTMONK_MCP_PASSWORDResumen de MCP Servers
# Listmonk MCP Server

An [MCP](https://modelcontextprotocol.io) server for [Listmonk](https://listmonk.app), 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](https://github.com/rhnvrm/listmonk-mcp) by Rohan Verma, extended with file-based templates, campaign body editing and hardened file access.
Written in TypeScript, runs on [Bun](https://bun.sh).
[Русская версия](./README.ru.md)
## 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 `tx` template to one recipient with custom data.
- **Media:** upload, rename, delete, list.
## Requirements
- [Bun](https://bun.sh) 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):
[](https://cursor.com/install-mcp?name=listmonk&config=eyJjb21tYW5kIjoiYnVueCIsImFyZ3MiOlsibGlzdG1vbmstbWNwLXRzIl0sImVudiI6eyJMSVNUTU9OS19NQ1BfVVJMIjoiaHR0cHM6Ly9saXN0bW9uay5leGFtcGxlLmNvbSIsIkxJU1RNT05LX01DUF9VU0VSTkFNRSI6ImFwaV91c2VyIiwiTElTVE1PTktfTUNQX1BBU1NXT1JEIjoieW91ci1hcGktdG9rZW4ifX0%3D)
[](https://vscode.dev/redirect/mcp/install?name=listmonk&config=%7B%22command%22%3A%22bunx%22%2C%22args%22%3A%5B%22listmonk-mcp-ts%22%5D%2C%22env%22%3A%7B%22LISTMONK_MCP_URL%22%3A%22https%3A//listmonk.example.com%22%2C%22LISTMONK_MCP_USERNAME%22%3A%22api_user%22%2C%22LISTMONK_MCP_PASSWORD%22%3A%22your-api-token%22%7D%7D)
### Claude Code
```bash
claude mcp add --transport stdio --scope user \
--env LISTMONK_MCP_URL=https://listmonk.example.com \
--env LISTMONK_MCP_USERNAME=api_user \
--env LISTMONK_MCP_PASSWORD=your-api-token \
listmonk -- bunx listmonk-mcp-ts
```
### Claude Desktop, Cursor, Cline and other clients
Add the server to the client's MCP config (`mcpServers` section):
```json
{
"mcpServers": {
"listmonk": {
"command": "bunx",
"args": ["listmonk-mcp-ts"],
"env": {
"LISTMONK_MCP_URL": "https://listmonk.example.com",
"LISTMONK_MCP_USERNAME": "api_user",
"LISTMONK_MCP_PASSWORD": "your-api-token",
"LISTMONK_MCP_FILES_DIR": "/path/to/email-templates"
}
}
}
}
```
Where the config file lives for each client: [Claude Desktop](docs/claude-desktop.md), [Cursor and Windsurf](docs/windsurf-cursor.md), [Cline](docs/cline.md), [VS Code](docs/vscode.md).
The server is started by the client when a session opens and stops with it. You do not need to keep it running.
## Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
| `LISTMONK_MCP_URL` | yes | | Listmonk base URL, `http://` or `https://` |
| `LISTMONK_MCP_USERNAME` | yes | | API user name |
| `LISTMONK_MCP_PASSWORD` | yes | | API user token |
| `LISTMONK_MCP_FILES_DIR` | no | | Directory the file tools may read from. File tools are disabled when it is not set |
| `LISTMONK_MCP_TIMEOUT` | no | `30` | HTTP timeout, seconds |
| `LISTMONK_MCP_MAX_RETRIES` | no | `3` | Retries on network errors. Only GET requests are retried |
| `LISTMONK_MCP_SERVER_NAME` | no | `Listmonk MCP Server` | Server name reported to the client |
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
| Area | Tools |
|---|---|
| Health | `check_listmonk_health` |
| Subscribers | `add_subscriber`, `update_subscriber`, `remove_subscriber`, `change_subscriber_status`, `list_subscribers`, `get_subscriber_by_id`, `get_subscriber_by_email` |
| Mailing lists | `get_mailing_lists`, `get_list_by_id`, `get_list_subscribers_tool`, `create_mailing_list`, `update_mailing_list`, `delete_mailing_list` |
| Campaigns | `get_campaigns`, `get_campaign`, `get_campaign_preview`, `create_campaign`, `update_campaign`, `send_campaign`, `schedule_campaign` |
| Campaign body | `replace_in_campaign_body`, `regex_replace_in_campaign_body`, `batch_replace_in_campaign_body` |
| Templates | `get_templates`, `get_template`, `create_template`, `update_template`, `create_template_from_file`, `update_template_from_file`, `delete_template` |
| Transactional | `send_transactional_email` |
| Media | `get_media_list`, `upload_media_file`, `rename_media`, `delete_media_file` |
### 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_file` and `upload_media_file` refuse 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 `~/.ssh` or `.env` and email it out.
- **Keep approval on for sending tools.** `send_campaign`, `schedule_campaign` and `send_transactional_email` send 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
```bash
git clone https://github.com/tecspda/listmonk-mcp-ts.git
cd listmonk-mcp-ts
bun install
cp .env.example .env # fill in your Listmonk details
bun run start # run the server
bun run dev # run with reload on change
bun run check # type check
bun test # tests
```
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](docs/docker-setup.md).
## License
[MIT](LICENSE)
Lo que la gente pregunta sobre listmonk-mcp-ts
¿Qué es tecspda/listmonk-mcp-ts?
+
tecspda/listmonk-mcp-ts es mcp servers para el ecosistema de Claude AI. MCP server for Listmonk: AI agents manage subscribers, lists, campaigns, templates and media, and send transactional email. TypeScript, runs via bunx. Tiene 1 estrellas en GitHub y su última actualización registrada es del 2026-10-21.
¿Cómo se instala listmonk-mcp-ts?
+
Puedes instalar listmonk-mcp-ts clonando el repositorio (https://github.com/tecspda/listmonk-mcp-ts) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar tecspda/listmonk-mcp-ts?
+
Nuestro agente de seguridad ha analizado tecspda/listmonk-mcp-ts y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene tecspda/listmonk-mcp-ts?
+
tecspda/listmonk-mcp-ts es mantenido por tecspda. La última actividad registrada en GitHub es del 2026-10-21, con 0 issues abiertos.
¿Hay alternativas a listmonk-mcp-ts?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega listmonk-mcp-ts en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/tecspda-listmonk-mcp-ts)<a href="https://claudewave.com/repo/tecspda-listmonk-mcp-ts"><img src="https://claudewave.com/api/badge/tecspda-listmonk-mcp-ts" alt="Featured on ClaudeWave: tecspda/listmonk-mcp-ts" width="320" height="64" /></a>Más MCP Servers
Reverse engineer anything with agents, from app behavior down to native binaries.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ A Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev