Skip to content
MCP server

Listmonk MCP

Manage Listmonk subscribers, lists, campaigns, templates and media from an AI client

Runs locally

Listmonk MCP is an open-source MCP server for marketing and seo. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can delete data (4 tools)
Access
Needs a secret key or token

Similar MCP servers

Install

Add with the CLI

Run in a 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

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

Or share it with your project

Add to .mcp.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 Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.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>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "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>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • LISTMONK_MCP_URLListmonk base URL, e.g. https://listmonk.example.comRequired
  • LISTMONK_MCP_USERNAMEListmonk API user nameRequired
  • LISTMONK_MCP_PASSWORDListmonk API user password or tokenRequired
  • LISTMONK_MCP_FILES_DIRDirectory the file tools (*_from_file, upload_media_file) may read from; they are disabled when unset

About Listmonk MCP

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.

Tools this server provides (36)

Taken from the project documentation; the running server may differ.

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_healthName suggests: reads
Checks the Listmonk connection.
add_subscriberName suggests: changes
Adds a subscriber.
update_subscriberName suggests: changes
Updates a subscriber.
remove_subscriberName suggests: deletes
Removes a subscriber.
change_subscriber_statusName suggests: reads
Changes a subscriber's status.
list_subscribersName suggests: reads
Lists or searches subscribers.
get_subscriber_by_idName suggests: reads
Gets a subscriber by ID.
get_subscriber_by_emailName suggests: reads
Gets a subscriber by email.
get_mailing_listsName suggests: reads
Lists mailing lists.
get_list_by_idName suggests: reads
Gets one mailing list.
get_list_subscribers_toolName suggests: reads
Lists subscribers of a list.
create_mailing_listName suggests: changes
Creates a mailing list.
update_mailing_listName suggests: changes
Updates a mailing list.
delete_mailing_listName suggests: deletes
Deletes a mailing list.
get_campaignsName suggests: reads
Lists campaigns.
get_campaignName suggests: reads
Gets one campaign.
get_campaign_previewName suggests: reads
Previews a campaign.
create_campaignName suggests: changes
Creates a campaign.
update_campaignName suggests: changes
Updates a campaign.
send_campaignName suggests: changes
Sends a campaign now.
schedule_campaignName 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_templatesName suggests: reads
Lists templates.
get_templateName suggests: reads
Reads one template.
create_templateName suggests: changes
Creates a template.
update_templateName suggests: changes
Updates a template.
create_template_from_fileName suggests: changes
Creates a template from a file.
update_template_from_fileName suggests: changes
Updates a template from a file.
delete_templateName suggests: deletes
Deletes a template.
send_transactional_emailName suggests: changes
Sends a transactional email from a tx template.
get_media_listName suggests: reads
Lists media.
upload_media_fileName suggests: changes
Uploads a media file.
rename_mediaName suggests: changes
Renames media.
delete_media_fileName suggests: deletes
Deletes a media file.

What it does

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

Pricing

Open source

MIT licence

Listmonk MCP 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.

How AIPoweredBot checks servers