# Listmonk MCP

> Listmonk MCP is an open-source MCP server for marketing and seo. Manage Listmonk subscribers, lists, campaigns, templates and media from an AI client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/tecspda/listmonk-mcp-ts
- **MCP Registry name:** io.github.tecspda/listmonk-mcp-ts
- **Categories:** [marketing and SEO](https://ai-powered.com/categories/marketing-and-seo), [communication](https://ai-powered.com/categories/communication)
- **Listing updated:** 2026-11-23

## About

This is a TypeScript port of an earlier Python Listmonk MCP server by Rohan Verma, extended with file-based templates, campaign-body editing and tighter file access. It connects to your own Listmonk instance with an API user and runs under Bun.

Beyond the usual create and update calls, it can edit a campaign body with plain-text, regex or batch replacement, and load large HTML or MJML template bodies from a file so the stored template matches the file exactly rather than a model's copy. File tools only read from the directory named in LISTMONK_MCP_FILES_DIR and are off when it is unset; symlinks are refused.

The README warns that subscriber names and campaign text could carry prompt injection, and that send_campaign, schedule_campaign and send_transactional_email send real email, so approval should stay on for them and a role-limited API user should be used.

## Features

- **Subscriber management:** Add, update, remove, search and change status of subscribers.
- **Campaign editing:** Create, preview, schedule and send campaigns, with text, regex and batch body replacement.
- **Templates from files:** Creates and updates templates directly from a local file.
- **Transactional email:** Sends a tx template to one recipient with custom data.
- **Media tools:** Uploads, renames, lists and deletes media.
- **Restricted file access:** File tools are confined to one configured directory.

## Good for

- Fix a typo across a draft campaign with regex replace
- Load an MJML export as a Listmonk template
- Segment and review subscribers with a SQL query
- Schedule a newsletter from chat
- Send a one-off transactional message

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add listmonk-mcp-ts --env LISTMONK_MCP_URL='<LISTMONK_MCP_URL>' --env LISTMONK_MCP_USERNAME='<LISTMONK_MCP_USERNAME>' --env LISTMONK_MCP_PASSWORD='<LISTMONK_MCP_PASSWORD>' -- npx -y listmonk-mcp-ts
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add listmonk-mcp-ts --env LISTMONK_MCP_URL='<LISTMONK_MCP_URL>' --env LISTMONK_MCP_USERNAME='<LISTMONK_MCP_USERNAME>' --env LISTMONK_MCP_PASSWORD='<LISTMONK_MCP_PASSWORD>' -- npx -y listmonk-mcp-ts
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.listmonk-mcp-ts]
command = "npx"
args = ["-y", "listmonk-mcp-ts"]
env = { LISTMONK_MCP_URL = "<LISTMONK_MCP_URL>", LISTMONK_MCP_USERNAME = "<LISTMONK_MCP_USERNAME>", LISTMONK_MCP_PASSWORD = "<LISTMONK_MCP_PASSWORD>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e LISTMONK_MCP_URL='<LISTMONK_MCP_URL>' -e LISTMONK_MCP_USERNAME='<LISTMONK_MCP_USERNAME>' -e LISTMONK_MCP_PASSWORD='<LISTMONK_MCP_PASSWORD>' listmonk-mcp-ts npx -- -y listmonk-mcp-ts

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "listmonk-mcp-ts": {
      "command": "npx",
      "args": [
        "-y",
        "listmonk-mcp-ts"
      ],
      "env": {
        "LISTMONK_MCP_URL": "<LISTMONK_MCP_URL>",
        "LISTMONK_MCP_USERNAME": "<LISTMONK_MCP_USERNAME>",
        "LISTMONK_MCP_PASSWORD": "<LISTMONK_MCP_PASSWORD>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 of 36 tools delete data and 15 change data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `check_listmonk_health` (name suggests: reads): Checks the Listmonk connection.
- `add_subscriber` (name suggests: changes): Adds a subscriber.
- `update_subscriber` (name suggests: changes): Updates a subscriber.
- `remove_subscriber` (name suggests: deletes): Removes a subscriber.
- `change_subscriber_status` (name suggests: reads): Changes a subscriber's status.
- `list_subscribers` (name suggests: reads): Lists or searches subscribers.
- `get_subscriber_by_id` (name suggests: reads): Gets a subscriber by ID.
- `get_subscriber_by_email` (name suggests: reads): Gets a subscriber by email.
- `get_mailing_lists` (name suggests: reads): Lists mailing lists.
- `get_list_by_id` (name suggests: reads): Gets one mailing list.
- `get_list_subscribers_tool` (name suggests: reads): Lists subscribers of a list.
- `create_mailing_list` (name suggests: changes): Creates a mailing list.
- `update_mailing_list` (name suggests: changes): Updates a mailing list.
- `delete_mailing_list` (name suggests: deletes): Deletes a mailing list.
- `get_campaigns` (name suggests: reads): Lists campaigns.
- `get_campaign` (name suggests: reads): Gets one campaign.
- `get_campaign_preview` (name suggests: reads): Previews a campaign.
- `create_campaign` (name suggests: changes): Creates a campaign.
- `update_campaign` (name suggests: changes): Updates a campaign.
- `send_campaign` (name suggests: changes): Sends a campaign now.
- `schedule_campaign` (name suggests: changes): Schedules a campaign.
- `replace_in_campaign_body`: Replaces text in a campaign body.
- `regex_replace_in_campaign_body`: Regex replacement in a campaign body.
- `batch_replace_in_campaign_body`: Several replacements in one call.
- `get_templates` (name suggests: reads): Lists templates.
- `get_template` (name suggests: reads): Reads one template.
- `create_template` (name suggests: changes): Creates a template.
- `update_template` (name suggests: changes): Updates a template.
- `create_template_from_file` (name suggests: changes): Creates a template from a file.
- `update_template_from_file` (name suggests: changes): Updates a template from a file.
- `delete_template` (name suggests: deletes): Deletes a template.
- `send_transactional_email` (name suggests: changes): Sends a transactional email from a tx template.
- `get_media_list` (name suggests: reads): Lists media.
- `upload_media_file` (name suggests: changes): Uploads a media file.
- `rename_media` (name suggests: changes): Renames media.
- `delete_media_file` (name suggests: deletes): Deletes a media file.

## FAQ

### What does Listmonk MCP connect to?

Your own Listmonk instance, using its base URL and an API user's name and token.

### How is file access limited?

File tools read only from LISTMONK_MCP_FILES_DIR and are disabled if it is unset.

### Which tools send real email?

send_campaign, schedule_campaign and send_transactional_email; the README advises keeping client approval on for them.

### What do I need to run Listmonk MCP?

Bun 1.1 or newer and a Listmonk API user with a suitably limited role.

### Is Listmonk MCP free?

Yes. Listmonk MCP is open source, so you can use and self-host it for free.

### How do I add Listmonk MCP to Claude Code?

Run this command in your terminal: claude mcp add listmonk-mcp-ts --env LISTMONK_MCP_URL='<LISTMONK_MCP_URL>' --env LISTMONK_MCP_USERNAME='<LISTMONK_MCP_USERNAME>' --env LISTMONK_MCP_PASSWORD='<LISTMONK_MCP_PASSWORD>' -- npx -y listmonk-mcp-ts

### What are the best alternatives to Listmonk MCP?

The closest alternatives to Listmonk MCP are TrendRadar, Google Ads + Meta Ads + SEO/GEO MCP, TryPost, Discord MCP and Gmail MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [TrendRadar](https://ai-powered.com/mcp/trendradar): TrendRadar is an open-source MCP server for communication.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [TryPost](https://ai-powered.com/mcp/trypost): TryPost is a paid MCP server for marketing and seo.
- [Discord MCP](https://ai-powered.com/mcp/discord-mcp): Discord MCP is an open-source MCP server for communication.
- [Gmail MCP](https://ai-powered.com/mcp/gmail-mcp-3): Gmail MCP is an open-source MCP server for communication.
- [Getmitra](https://ai-powered.com/mcp/getmitra): Getmitra is an MCP server for communication.
- [Calven](https://ai-powered.com/mcp/calven): Calven is an MCP server for marketing and seo.
- [MentionForge](https://ai-powered.com/mcp/mentionforge): MentionForge is a freemium MCP server for marketing and seo.

---
Source: https://ai-powered.com/mcp/listmonk-mcp
