Skip to main content
Glama
@kieksme/listmonk-mcp

@kieksme/listmonk-mcp

by kieksme

@kieksme/listmonk-mcp

Listmonk MCP

MCP Trust Score MCPSafe

Add listmonk MCP server to Cursor Install in VS Code

MCP(Model Context Protocol)互換のLLMクライアントに対して、Listmonk のREST API全体(14カテゴリ・72ツール)を公開するMCPサーバーです。クライアント自身が起動するローカル stdio プロセスとしても、任意の数のクライアントが接続できるリモート Streamable HTTP デプロイとしても利用できます。

Listmonk OpenAPI 仕様 に基づいて構築されています。

クイックスタート

ローカル: MCPクライアントにstdio経由でサーバー自体を起動させます。手動で実行するものはなく、開くポートもありません。クライアントの設定に追加してください(ここではClaude Codeの例を示します。Cursor、VS Code、Claude Desktop、OpenCode、LM Studio、ChatGPTについては、下のMCPクライアントの接続を参照)。

claude mcp add listmonk \
  -e LISTMONK_URL=https://newsletter.example.com \
  -e LISTMONK_API_USER=my-api-user \
  -e LISTMONK_API_TOKEN=xxxxxxxx \
  -- npx -y @kieksme/listmonk-mcp --stdio

リモート: サーバーを一度起動すれば、任意の数のクライアントがHTTP経由でアクセスできます。

LISTMONK_URL=https://newsletter.example.com \
LISTMONK_API_USER=my-api-user \
LISTMONK_API_TOKEN=xxxxxxxx \
npx @kieksme/listmonk-mcp
claude mcp add --transport http listmonk http://localhost:3000/mcp

両モードの詳細(Dockerを含む)は、サーバーの実行 を参照してください。

Related MCP server: listmonk-mcp-bridge

MCPクライアントの接続

以下の各クライアントは2つのセットアップに対応しています。どちらかを選んでください:

  • ローカル (stdio): クライアントが npx @kieksme/listmonk-mcp --stdio をサブプロセスとして自ら起動し、その標準入力/標準出力を介してMCP通信を行います。サーバーを常駐させる必要も、ポートを開く必要も、到達性の心配もありません。通常は単一のローカルクライアントにとって最もシンプルな既定の選択肢です。

  • リモート (HTTP): サーバーを自分で実行し(サーバーの実行 を参照)、クライアントはそのURLに接続します。複数のクライアントが1つのサーバーインスタンスを共有する場合や、サーバーを自分のマシン以外で実行する場合に必要です。

ローカル/stdioセットアップでnpxの代わりにpnpmを使う場合: 以下のローカル(stdio)の例はすべて command: "npx" と args: ["-y", "@kieksme/listmonk-mcp", "--stdio"] を使用しています。pnpmを希望する場合は、command: "pnpm" と args: ["dlx", "@kieksme/listmonk-mcp", "--stdio"] に置き換えてください — そして -y は外してください。-y はnpxの「インストール確認プロンプトをスキップする」フラグです。pnpm dlx にはそもそもそのようなプロンプトがないため、-y を受け付けず、即座に ERROR Unknown option: 'y' を出して終了します(プロセスがMCP通信を始める前に終了するため、クライアントには一般的な "Connection closed" として表示されます)。同じ置き換えは、以下で npx -y で始まるすべてのCLI形式にも適用されます — pnpm dlx(-y なし)に置き換えてください。

リモート/HTTPセットアップの到達性に関する注意: クライアントが http://localhost:3000 を必要とするのは、サーバーと同じマシン上で実行する場合だけです。Claude Code、Cursor、VS Code、OpenCode、LM Studioはすべてローカルツールなので、localhost がそのまま機能します。Claude Desktopもローカルアプリであり、通常は localhost に到達できます。ChatGPTとClaude.ai(Webアプリ)はクラウド上で動作するため、あなたの localhost には到達できません — これらのクライアントでこのサーバーを使うには、インターネットから到達可能な場所にデプロイする(または ngrok http 3000 などでトンネリングする)必要があり、その公開URLを使用する必要があります。ChatGPTのコネクタはHTTPのみ対応しているため、以下のローカル/stdioオプションはありません。

Claude Code

ローカル(stdio)、リポジトリルートの .mcp.json によるプロジェクトスコープ設定:

{
  "mcpServers": {
    "listmonk": {
      "command": "npx",
      "args": ["-y", "@kieksme/listmonk-mcp", "--stdio"],
      "env": {
        "LISTMONK_URL": "https://newsletter.example.com",
        "LISTMONK_API_USER": "my-api-user",
        "LISTMONK_API_TOKEN": "xxxxxxxx"
      }
    }
  }
}

またはCLIから:

claude mcp add listmonk \
  -e LISTMONK_URL=https://newsletter.example.com \
  -e LISTMONK_API_USER=my-api-user \
  -e LISTMONK_API_TOKEN=xxxxxxxx \
  -- npx -y @kieksme/listmonk-mcp --stdio

リモート(HTTP)、サーバーが起動したら(サーバーの実行 を参照):

{
  "mcpServers": {
    "listmonk": {
      "type": "http",
      "url": "http://localhost:3000/mcp"
    }
  }
}
claude mcp add --transport http listmonk http://localhost:3000/mcp

サーバーに MCP_SERVER_AUTH_TOKEN を設定した場合は、ヘッダーを追加してください:claude mcp add --transport http listmonk http://localhost:3000/mcp --header "Authorization: Bearer <token>"。

Cursor

ワンクリックインストール(ローカル/stdio。後でCursorのMCP設定で入力する必要があるプレースホルダー認証情報付き):

Add listmonk MCP server to Cursor

または手動で設定 — ローカル(stdio)、リポジトリルートの .cursor/mcp.json(またはグローバルの ~/.cursor/mcp.json)経由:

{
  "mcpServers": {
    "listmonk": {
      "command": "npx",
      "args": ["-y", "@kieksme/listmonk-mcp", "--stdio"],
      "env": {
        "LISTMONK_URL": "https://newsletter.example.com",
        "LISTMONK_API_USER": "my-api-user",
        "LISTMONK_API_TOKEN": "xxxxxxxx"
      }
    }
  }
}

リモート(HTTP)、サーバーが起動したら:

{
  "mcpServers": {
    "listmonk": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

サーバーに MCP_SERVER_AUTH_TOKEN を設定した場合は、ヘッダーとして渡してください:

{
  "mcpServers": {
    "listmonk": {
      "url": "http://localhost:3000/mcp",
      "headers": {
        "Authorization": "Bearer <token>"
      }
    }
  }
}

また、Cursor 設定 → MCP → 新しいMCPサーバーを追加 からどちらのセットアップも追加できます。

VS Code

ワンクリックインストール(ローカル/stdio。後でVS CodeのMCP設定で入力する必要があるプレースホルダー認証情報付き):

Install in VS Code Install in VS Code Insiders

または手動で設定 — ローカル(stdio)、リポジトリルートの .vscode/mcp.json 経由:

{
  "servers": {
    "listmonk": {
      "command": "npx",
      "args": ["-y", "@kieksme/listmonk-mcp", "--stdio"],
      "env": {
        "LISTMONK_URL": "https://newsletter.example.com",
        "LISTMONK_API_USER": "my-api-user",
        "LISTMONK_API_TOKEN": "xxxxxxxx"
      }
    }
  }
}

リモート(HTTP)、サーバーが起動したら(ここでは command から推測できないため type が必要です):

{
  "servers": {
    "listmonk": {
      "type": "http",
      "url": "http://localhost:3000/mcp"
    }
  }
}

Claude Desktop

ローカル(stdio)、claude_desktop_config.json 内:

{
  "mcpServers": {
    "listmonk": {
      "command": "npx",
      "args": ["-y", "@kieksme/listmonk-mcp", "--stdio"],
      "env": {
        "LISTMONK_URL": "https://newsletter.example.com",
        "LISTMONK_API_USER": "my-api-user",
        "LISTMONK_API_TOKEN": "xxxxxxxx"
      }
    }
  }
}

リモート(HTTP):設定 → コネクタ → カスタムコネクタを追加 で、URLとして http://localhost:3000/mcp を貼り付けます(サーバーがすでに起動している必要があります)。お使いのClaude Desktopバージョンの設定ファイルがリモートサーバーを直接サポートしている場合、同等のエントリは次のとおりです:

{
  "mcpServers": {
    "listmonk": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

OpenCode

ローカル(stdio)、opencode.json 内(プロジェクトまたはグローバル設定):

{
  "mcp": {
    "listmonk": {
      "type": "local",
      "command": ["npx", "-y", "@kieksme/listmonk-mcp", "--stdio"],
      "environment": {
        "LISTMONK_URL": "https://newsletter.example.com",
        "LISTMONK_API_USER": "my-api-user",
        "LISTMONK_API_TOKEN": "xxxxxxxx"
      },
      "enabled": true
    }
  }
}

リモート(HTTP)、サーバーが起動したら:

{
  "mcp": {
    "listmonk": {
      "type": "remote",
      "url": "http://localhost:3000/mcp",
      "enabled": true
    }
  }
}

enabled に関する注意: このフラグはOpenCode独自のクライアント側スイッチです。そのクライアントのサーバー接続全体をオン/オフにするだけで、公開されるlistmonkのツール/カテゴリとは関係ありません。リモート(HTTP)セットアップで、この特定のクライアントが見るツールを制限するには(サーバーを再起動したり LISTMONK_ENABLED_TOOLS を変更したりせずに)、url 自体に tools クエリパラメータを追加します:

{
  "mcp": {
    "listmonk": {
      "type": "remote",
      "url": "http://localhost:3000/mcp?tools=subscribers,campaigns",
      "enabled": true
    }
  }
}

ローカル(stdio)セットアップでは、代わりに environment 内で LISTMONK_ENABLED_TOOLS を設定してください。完全なセレクタ構文は 利用可能なツールの選択 を参照してください。

LM Studio

ワンクリックインストール(ローカル/stdio。後でLM StudioのMCP設定で入力する必要があるプレースホルダー認証情報付き):

Add MCP Server listmonk to LM Studio

または手動で設定 — ~/.lmstudio/mcp.json 経由(Programタブ → インストール → mcp.jsonを編集)— ローカル(stdio):

{
  "mcpServers": {
    "listmonk": {
      "command": "npx",
      "args": ["-y", "@kieksme/listmonk-mcp", "--stdio"],
      "env": {
        "LISTMONK_URL": "https://newsletter.example.com",
        "LISTMONK_API_USER": "my-api-user",
        "LISTMONK_API_TOKEN": "xxxxxxxx"
      }
    }
  }
}

リモート(HTTP)、サーバーが起動したら:

{
  "mcpServers": {
    "listmonk": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

ChatGPT

ChatGPTのコネクタ(設定 → コネクタ → 作成。MCPをサポートする有料プランで利用可能)は、公的に到達可能なHTTP URL のみを受け付けます。ChatGPTはクラウド上で動作するため、ローカルのstdioプロセスを起動できず、リモートセットアップが唯一の選択肢です。サーバーを公開URLを持つホストにデプロイするか(Docker を参照)、ローカルインスタンスをトンネリングして(例:ngrok http 3000)、https://<your-host>/mcp をコネクタURLとして登録してください。MCP_SERVER_AUTH_TOKEN を設定した場合、ChatGPTのコネクタ設定でURLと一緒にベアラートークンを指定できます。

機能

  • 完全なAPIカバレッジ:サブスクライバー、キャンペーン、リスト、テンプレート、メディア、バウンス、インポート、設定、メンテナンス、トランザクションメール、公開サブスクリプション、ログ、管理、ダッシュボード/その他のエンドポイント。

  • 選択的ツールロード — 実際に必要なカテゴリ/ツールだけを有効にできるため、LLMのコンテキストが72個すべてのツール定義で一度に埋め尽くされることはありません。

  • 2つのトランスポート、1つのパッケージ: クライアントが起動するローカルプロセス用のstdio、リモートデプロイ用のステートレスStreamable HTTP(セッション状態がなく、ロードバランサーの背後で水平スケールしやすい)。

  • /mcp の前のオプションのベアラートークンゲート(HTTPトランスポートのみ — stdioにはゲートするネットワークリスナーがありません)。

サーバーの実行

ローカル (stdio)

通常、これを手動で起動する必要はありません。MCPクライアントが上記の MCPクライアントの接続 の設定に従って起動します。手動で実行する場合(例:クライアント外で動作確認する場合)は、--stdio を渡すか、MCP_TRANSPORT=stdio を設定します:

LISTMONK_URL=https://newsletter.example.com \
LISTMONK_API_USER=my-api-user \
LISTMONK_API_TOKEN=xxxxxxxx \
npx @kieksme/listmonk-mcp --stdio

このプロセスはstdoutでMCP JSON-RPCを話し、stderrにログを出力します。stdinが閉じると(つまり親クライアントが切断すると)終了します。LISTMONK_ENABLED_TOOLS は引き続き登録するツールを選択しますが、このモードではリクエストごとの上書きはありません。1つのクライアントプロセスにつき、その存続期間中は1つの固定されたツールセットです。

リモート (HTTP)

LISTMONK_URL=https://newsletter.example.com \
LISTMONK_API_USER=my-api-user \
LISTMONK_API_TOKEN=xxxxxxxx \
npx @kieksme/listmonk-mcp
# or
pnpm dlx @kieksme/listmonk-mcp

MCPエンドポイントは POST http://localhost:3000/mcp です(ストリーミング可能なHTTP、ステートレス — セッションネゴシエーションは不要)。

Docker

公開されているイメージ(ghcr.io/kieksme/mcp-listmonk:latest)は両方のトランスポートをサポートしています。npx と同じエントリポイントなので、上記のフラグも同様に適用されます。

リモート(HTTP) — ポートを公開:

docker run -p 3000:3000 \
  -e LISTMONK_URL=https://newsletter.example.com \
  -e LISTMONK_API_USER=my-api-user \
  -e LISTMONK_API_TOKEN=xxxxxxxx \
  -e LISTMONK_ENABLED_TOOLS='["subscribers","campaigns"]' \
  ghcr.io/kieksme/mcp-listmonk:latest

ローカル(stdio) — ポートを公開する代わりにstdinを接続したままにします(-i)。npx にパッケージを取得させる代わりにコンテナを実行したい場合に、クライアントの command/args(例:コマンドとして docker)の後ろに置くものです:

docker run -i --rm \
  -e LISTMONK_URL=https://newsletter.example.com \
  -e LISTMONK_API_USER=my-api-user \
  -e LISTMONK_API_TOKEN=xxxxxxxx \
  ghcr.io/kieksme/mcp-listmonk:latest --stdio

設定

サーバー起動時に以下の環境変数を設定してください:

変数

必須

説明

LISTMONK_URL

はい

Listmonk インスタンスのベース URL(例: https://newsletter.example.com)

LISTMONK_API_USER

はい

API ユーザー名(Listmonk 管理画面 → ユーザー)

LISTMONK_API_TOKEN

はい

そのユーザーの API トークン

MCP_TRANSPORT

いいえ

stdio または http(デフォルト)。--stdio CLI フラグはこれと同等で、この変数より優先されます。

PORT

いいえ

リッスンする HTTP ポート(デフォルト 3000)。stdio モードでは無視されます。

LISTMONK_ENABLED_TOOLS

いいえ

ツール/カテゴリセレクタの JSON 配列(またはカンマ区切りリスト)— 後述。空/未設定 = 全 72 ツール。

MCP_SERVER_AUTH_TOKEN

いいえ

設定すると、/mcp は Authorization: Bearer <token> を要求します。未設定の場合、/mcp はアプリケーションレイヤーでオープンになります — 代わりにリバースプロキシ/VPN/ファイアウォールを前面に配置してください。stdio モードでは無視されます(ゲートするネットワークリスナーがないため)。

セキュリティ上の注意: LISTMONK_API_USER/LISTMONK_API_TOKEN は、このサーバーをListmonkに対して認証するものであり、MCP クライアントをこのサーバーに対して認証するものではありません。MCP_SERVER_AUTH_TOKEN がない場合、ポートに到達できる人は誰でも、設定された API ユーザーが持つスコープで Listmonk へのフルアクセスを得られます。Listmonk では、有効化する予定のカテゴリにのみスコープを限定した最小権限の API ユーザーを作成することをお勧めします。

利用可能なツールの選択

LISTMONK_ENABLED_TOOLS は JSON 配列(またはカンマ区切り文字列)を受け付けます。そのエントリは、大文字小文字を区別せず、次のいずれかです:

  • カテゴリ名: subscribers、campaigns、templates、lists、media、import、bounces、settings、maintenance、public、transactional、logs、admin、miscellaneous — そのカテゴリのすべてのツールを有効にします。または

  • 正確なツール名: 例: listmonk_get_subscriber — その 1 つのツールだけを有効にします。

# Only subscriber management tools
LISTMONK_ENABLED_TOOLS='["subscribers"]'

# A mix of a whole category plus one extra tool
LISTMONK_ENABLED_TOOLS='["campaigns","listmonk_get_health"]'

# Comma-separated form also works
LISTMONK_ENABLED_TOOLS=subscribers,campaigns

未設定(または [])のままにすると、全 72 ツールが公開されます。

リクエストごとの上書き(リモート/HTTP のみ): デプロイされた単一のインスタンスは、再起動なしで、ヘッダー X-Listmonk-Enabled-Tools または POST /mcp リクエストのクエリ文字列 ?tools= を使用して、クライアントごとに異なるツールセットを提供することもできます — セレクタ構文は上記と同じです。これはその 1 つのリクエストについてのみ LISTMONK_ENABLED_TOOLS を上書きします。ローカル/stdio トランスポートには同等のものはありません。各 stdio プロセスはクライアントごとに新しく生成されるため、代わりにそのクライアント自身の env/environment 設定で LISTMONK_ENABLED_TOOLS を設定してください。

クエリ文字列は URL の一部にすぎないため、これは特定の 1 つのクライアント(例: opencode.json、.mcp.json、または .cursor/mcp.json 内の 1 エントリ)に縮小されたツールセットを提供しつつ、他のクライアントは同じサーバーに対してフル(または別の)セットでアクセスし続ける最も簡単な方法です — サーバー全体の環境変数を追加したり、2 つ目のインスタンスを立ち上げたりする代わりに、そのクライアントの url を http://localhost:3000/mcp?tools=subscribers,campaigns に設定するだけです。カスタムヘッダーをサポートするクライアントは、代わりに X-Listmonk-Enabled-Tools を使用でき、URL 自体をクリーンに保てます。

ツールカタログ(72 ツール)

subscribers (17)

listmonk_list_subscribers, listmonk_create_subscriber, listmonk_get_subscriber, listmonk_update_subscriber, listmonk_delete_subscriber, listmonk_delete_subscribers_by_ids, listmonk_manage_subscriber_lists_bulk, listmonk_manage_subscriber_list_membership, listmonk_blocklist_subscribers_bulk, listmonk_blocklist_subscriber, listmonk_export_subscriber, listmonk_get_subscriber_bounces, listmonk_delete_subscriber_bounces, listmonk_send_subscriber_optin, listmonk_delete_subscribers_by_query, listmonk_blocklist_subscribers_by_query, listmonk_manage_subscriber_lists_by_query

campaigns (14)

listmonk_list_campaigns, listmonk_create_campaign, listmonk_get_campaign, listmonk_update_campaign, listmonk_delete_campaign, listmonk_get_running_campaign_stats, listmonk_get_campaign_analytics, listmonk_get_campaign_preview, listmonk_preview_campaign_draft, listmonk_preview_campaign_text, listmonk_update_campaign_status, listmonk_update_campaign_archive, listmonk_convert_campaign_content, listmonk_send_campaign_test

templates (8)

listmonk_list_templates, listmonk_create_template, listmonk_get_template, listmonk_update_template, listmonk_delete_template, listmonk_preview_template_draft, listmonk_preview_template, listmonk_set_default_template

lists (5)

listmonk_list_lists, listmonk_create_list, listmonk_get_list, listmonk_update_list, listmonk_delete_list

media (4)

listmonk_list_media, listmonk_upload_media, listmonk_get_media, listmonk_delete_media

import (4)

listmonk_get_import_status, listmonk_import_subscribers, listmonk_stop_import_subscribers, listmonk_get_import_logs

bounces (4)

listmonk_list_bounces, listmonk_delete_bounces, listmonk_get_bounce, listmonk_delete_bounce

settings (3)

listmonk_get_settings, listmonk_update_settings, listmonk_test_smtp_settings

maintenance (3)

listmonk_delete_gc_subscribers, listmonk_delete_gc_campaign_analytics, listmonk_delete_unconfirmed_subscriptions

public (2)

listmonk_get_public_lists, listmonk_create_public_subscription

transactional (1)

listmonk_send_transactional_message

logs (1)

listmonk_get_logs

admin (1)

listmonk_reload_app

miscellaneous (5)

listmonk_get_health, listmonk_get_server_config, listmonk_get_i18n_lang, listmonk_get_dashboard_charts, listmonk_get_dashboard_counts

わかりにくい一部のツールに関する注意事項

  • 一括/クエリによる購読者操作(listmonk_delete_subscribers_by_query、listmonk_blocklist_subscribers_by_query、listmonk_manage_subscriber_lists_by_query)は、Listmonk の SQL フィルター式に対して実行され、プレビューステップなしで一致するすべての購読者に作用します。最初に同じ query を指定して listmonk_list_subscribers を呼び出し、一致数を確認してください。

  • キャンペーンプレビュー/コンテンツツールは、Listmonk がそれぞれに 4 つの異なるエンドポイントを公開しているため、意図的に 4 つの異なるツールに分割されています: listmonk_get_campaign_preview は現在保存されているキャンペーンをレンダリングします。listmonk_preview_campaign_draft と listmonk_preview_campaign_text は、何も永続化せずに未保存の本文をレンダリングします。listmonk_convert_campaign_content はフォーマット変換(例: markdown → HTML)を実行して永続化します — 似た領域ですがプレビューではありません。

  • listmonk_send_campaign_test は、まずキャンペーンの現在の保存状態を取得し、明示的に渡したフィールドのみを上書きします。これにより、Listmonk 自身の API が空の値で静かに上書きしてしまうフィールドを誤って空白にしないようにします。

コントリビューション

ソースからビルドしたい、テストスイートを実行したい、またはリリースプロセスを理解したい場合は、CONTRIBUTING.md を参照してください。

ライセンス

MIT © kieksme GbR

Available Tools

72 tools
listmonk_blocklist_subscriberBlocklist SubscriberA
DestructiveIdempotent

Blocklists a single subscriber by id, preventing further campaign sends to them.

Inputs: id (required).

listmonk_blocklist_subscribers_bulkBlocklist Subscribers (Bulk By Ids)B
DestructiveIdempotent

Blocklists an explicit set of subscribers by id, preventing further campaign sends to them.

Inputs: ids (required).

listmonk_blocklist_subscribers_by_queryBlocklist Subscribers By QueryA
Destructive

BULK, NO-PREVIEW: blocklists every subscriber matching a Listmonk SQL query expression. Always call listmonk_list_subscribers with the same query first to confirm the match count.

Inputs: query (required).

listmonk_convert_campaign_contentConvert Campaign Content FormatA
Idempotent

Converts a campaign body between content formats (e.g. markdown to HTML) and returns the converted body. This does NOT read or write the campaign's stored body — pass the body text explicitly and, if you want to keep the result, save it yourself via listmonk_update_campaign.

Inputs: id (required), to (required), body (required), from (required).

listmonk_create_campaignCreate CampaignB

Creates a new campaign as a draft. Drafts must be explicitly scheduled/started via listmonk_update_campaign_status.

Inputs: name (required), lists (required), subject (required), body, +9 more.

listmonk_create_listCreate Mailing ListC

Creates a new mailing list.

Inputs: name (required), type (required), optin (required), tags, +2 more.

listmonk_create_public_subscriptionCreate Public SubscriptionA

Submits a subscription request via Listmonk's public (unauthenticated) subscription endpoint, as if a visitor filled out the public sign-up form. Triggers double opt-in e-mails for lists that require them.

Inputs: email (required), list_uuids (required), name.

listmonk_create_subscriberCreate SubscriberC

Creates a new subscriber, optionally subscribing them to one or more lists immediately.

Inputs: name (required), email (required), lists, status, +4 more.

listmonk_create_templateCreate TemplateC

Creates a new campaign or transactional template.

Inputs: body (required), name (required), type (required), subject, +2 more.

listmonk_delete_bounceDelete BounceB
DestructiveIdempotent

Deletes a single bounce record by id.

Inputs: id (required).

listmonk_delete_bouncesDelete BouncesA
DestructiveIdempotent

Deletes bounce records in bulk — either all of them (all: true) or a specific set of ids.

Inputs: all, ids.

listmonk_delete_campaignDelete CampaignA
DestructiveIdempotent

Permanently deletes a campaign by id. Only campaigns that have not started sending can be deleted.

Inputs: id (required).

listmonk_delete_gc_campaign_analyticsGarbage-Collect Campaign AnalyticsA
Destructive

PERMANENTLY DELETES campaign analytics records (views/clicks/all) older than a given date. Irreversible; confirm with the user before calling.

Inputs: type (required), before_date (required).

listmonk_delete_gc_subscribersGarbage-Collect SubscribersA
Destructive

PERMANENTLY DELETES subscribers matching a maintenance class ('blocklisted' or 'orphan' — subscribers with no list memberships). Irreversible; confirm with the user before calling.

Inputs: type (required).

listmonk_delete_listDelete Mailing ListA
DestructiveIdempotent

Permanently deletes a mailing list by id. Subscribers themselves are not deleted, only their membership in this list.

Inputs: list_id (required).

listmonk_delete_mediaDelete MediaA
DestructiveIdempotent

Permanently deletes an uploaded media file by id.

Inputs: id (required).

listmonk_delete_subscriberDelete SubscriberB
DestructiveIdempotent

Permanently deletes a single subscriber by id.

Inputs: id (required).

listmonk_delete_subscriber_bouncesDelete Subscriber BouncesA
DestructiveIdempotent

Deletes all bounce records for a single subscriber.

Inputs: id (required).

listmonk_delete_subscribers_by_idsDelete Subscribers By IdsA
DestructiveIdempotent

Permanently deletes multiple subscribers given an explicit list of ids.

Inputs: ids (required).

listmonk_delete_subscribers_by_queryDelete Subscribers By QueryA
Destructive

BULK, IRREVERSIBLE, NO-PREVIEW: permanently deletes every subscriber matching a Listmonk SQL query expression. Always call listmonk_list_subscribers with the same query first to confirm the match count before using this tool.

Inputs: query (required).

listmonk_delete_templateDelete TemplateA
DestructiveIdempotent

Permanently deletes a template by id. The default template cannot be deleted.

Inputs: id (required).

listmonk_delete_unconfirmed_subscriptionsDelete Unconfirmed SubscriptionsA
Destructive

PERMANENTLY DELETES pending (unconfirmed double opt-in) subscriptions older than a given date. Irreversible; confirm with the user before calling.

Inputs: before_date (required).

listmonk_export_subscriberExport Subscriber DataA
Read-onlyIdempotent

Exports a subscriber's full profile (personal data, list memberships, campaign views) as a JSON object, e.g. for GDPR data-subject access requests.

Inputs: id (required).

listmonk_get_bounceGet BounceC
Read-onlyIdempotent

Retrieves a single bounce record by id.

Inputs: id (required), response_format.

listmonk_get_campaignGet CampaignC
Read-onlyIdempotent

Retrieves a single campaign by id.

Inputs: id (required), no_body, response_format.

listmonk_get_campaign_analyticsGet Campaign AnalyticsB
Read-onlyIdempotent

Returns view/click/link/bounce analytics for one or more campaigns over a date range (from/to as ISO 8601 timestamps).

Inputs: to (required), from (required), type (required), campaign_ids (required), +1 more.

listmonk_get_campaign_previewGet Campaign PreviewA
Read-onlyIdempotent

Renders an HTML (or plain-text) preview of a campaign exactly as currently saved in Listmonk.

Inputs: id (required).

listmonk_get_dashboard_chartsGet Dashboard ChartsA
Read-onlyIdempotent

Returns time-series chart data (subscriber growth, campaign views) shown on the Listmonk dashboard.

Inputs: response_format.

listmonk_get_dashboard_countsGet Dashboard CountsB
Read-onlyIdempotent

Returns summary counts (total subscribers, lists, campaigns, etc) shown on the Listmonk dashboard.

Inputs: response_format.

listmonk_get_healthGet Health CheckA
Read-onlyIdempotent

Checks whether the Listmonk API is reachable and healthy. Use this first to verify connectivity.

Inputs: no named parameters.

listmonk_get_i18n_langGet I18n Language PackB
Read-onlyIdempotent

Returns the UI translation strings for a given language code.

Inputs: lang (required), response_format.

listmonk_get_import_logsGet Import LogsA
Read-onlyIdempotent

Returns the log output of the current/last subscriber import job.

Inputs: no named parameters.

listmonk_get_import_statusGet Import StatusB
Read-onlyIdempotent

Returns the status of the current/last subscriber import job.

Inputs: response_format.

listmonk_get_listGet Mailing ListA
Read-onlyIdempotent

Retrieves a single mailing list by id, including its subscriber count.

Inputs: list_id (required), response_format.

listmonk_get_logsGet Server LogsB
Read-onlyIdempotent

Returns Listmonk's recent in-memory application log entries.

Inputs: no named parameters.

listmonk_get_mediaGet MediaA
Read-onlyIdempotent

Retrieves metadata for a single uploaded media file by id.

Inputs: id (required), response_format.

listmonk_get_public_listsGet Public ListsA
Read-onlyIdempotent

Returns the public-facing list of subscribable mailing lists (uuid + name only), as seen by the public subscription page.

Inputs: response_format.

listmonk_get_running_campaign_statsGet Running Campaign StatsA
Read-onlyIdempotent

Returns live send-rate statistics for all currently running campaigns.

Inputs: response_format.

listmonk_get_server_configGet Server ConfigB
Read-onlyIdempotent

Returns Listmonk's general server configuration (site name, languages, permissions, etc).

Inputs: response_format.

listmonk_get_settingsGet SettingsB
Read-onlyIdempotent

Returns Listmonk's full server settings object (SMTP, app config, privacy, security, etc).

Inputs: response_format.

listmonk_get_subscriberGet SubscriberB
Read-onlyIdempotent

Retrieves a single subscriber by numeric id, including their list memberships.

Inputs: id (required), response_format.

listmonk_get_subscriber_bouncesGet Subscriber BouncesB
Read-onlyIdempotent

Lists bounce records recorded for a single subscriber.

Inputs: id (required), response_format.

listmonk_get_templateGet TemplateA
Read-onlyIdempotent

Retrieves a single template by id, including its full HTML body.

Inputs: id (required), response_format.

listmonk_import_subscribersImport SubscribersA

Bulk-imports subscribers from a ZIP archive of one or more CSV files into the given target lists. Runs asynchronously — poll listmonk_get_import_status afterwards to track progress.

Inputs: list_ids (required), file_name (required), file_content_base64 (required), mode, +3 more.

listmonk_list_bouncesList BouncesB
Read-onlyIdempotent

Lists e-mail bounce records, optionally filtered by campaign or bounce source.

Inputs: page, order, source, order_by, +3 more.

listmonk_list_campaignsList CampaignsA
Read-onlyIdempotent

Lists/searches campaigns with pagination, status/tag filters, and sorting.

Inputs: page, tags, order, query, +5 more.

listmonk_list_listsList Mailing ListsA
Read-onlyIdempotent

Lists all mailing lists with subscriber counts, optionally filtered by name.

Inputs: page, query, per_page, response_format.

listmonk_list_mediaList MediaB
Read-onlyIdempotent

Lists all uploaded media files (images used in campaigns/templates).

Inputs: page, query, per_page, response_format.

listmonk_list_subscribersList SubscribersA
Read-onlyIdempotent

Lists/searches subscribers with pagination, sorting, and an optional Listmonk SQL filter expression (query) or list membership filter. Use this to find subscriber ids before calling other subscriber tools, and to preview the match count of a query before running a bulk query-based operation (delete/blocklist/list-membership).

Inputs: page, order, query, list_id, +4 more.

listmonk_list_templatesList TemplatesB
Read-onlyIdempotent

Lists all campaign and transactional templates.

Inputs: no_body, response_format.

listmonk_manage_subscriber_list_membershipManage Subscriber List MembershipA
Destructive

Adds, removes, or unsubscribes subscribers from a single specific list (list_id). Select the subscribers with either an explicit ids array or a Listmonk SQL query (provide exactly one).

Inputs: action (required), list_id (required), ids, query, +1 more.

listmonk_manage_subscriber_lists_bulkManage Subscriber Lists (Bulk By Ids)C
Destructive

Adds, removes, or unsubscribes an explicit set of subscribers (by id) from one or more target lists.

Inputs: ids (required), action (required), target_list_ids (required), status.

listmonk_manage_subscriber_lists_by_queryManage Subscriber Lists By QueryA
Destructive

BULK, NO-PREVIEW: adds, removes, or unsubscribes every subscriber matching a Listmonk SQL query expression from one or more target lists. Always call listmonk_list_subscribers with the same query first to confirm the match count.

Inputs: query (required), action (required), target_list_ids (required), status.

listmonk_preview_campaign_draftPreview Unsaved Campaign ContentA
Read-onlyIdempotent

Renders an HTML/text preview of an UNSAVED body/content_type combination for campaign id, using the campaign's other saved fields (subject, lists), without persisting anything. Use before listmonk_update_campaign to check formatting.

Inputs: id (required), body (required), template_id, content_type.

listmonk_preview_campaign_textPreview Campaign As Plain TextA
Read-onlyIdempotent

Renders the plain-text version of a campaign (defaults content_type to 'plain'), useful for checking the text-fallback rendering or for spam-score review. Does not persist anything.

Inputs: id (required), body, template_id, content_type.

listmonk_preview_templatePreview Saved TemplateA
Read-onlyIdempotent

Renders an HTML preview of an existing saved template by id, exactly as currently stored.

Inputs: id (required).

listmonk_preview_template_draftPreview Unsaved TemplateA
Read-onlyIdempotent

Renders an HTML preview of an UNSAVED template body/type combination, without creating or modifying anything. Use before listmonk_create_template to check formatting.

Inputs: body (required), template_type (required).

listmonk_reload_appReload Listmonk AppA
Destructive

Restarts Listmonk's background workers/app process (used after certain settings changes). Briefly interrupts campaign sending and API availability. Confirm with the user before calling.

Inputs: no named parameters.

listmonk_send_campaign_testSend Campaign Test EmailA

Sends a one-off test copy of a campaign to specific subscriber e-mail addresses (they must exist as subscribers). Uses the campaign's currently saved fields; pass overrides only for fields you want to test differently for this send.

Inputs: id (required), subscriber_emails (required), body, name, +5 more.

listmonk_send_subscriber_optinSend Subscriber Opt-in EmailA

Sends a double opt-in confirmation e-mail to a subscriber for their pending list subscriptions.

Inputs: id (required).

listmonk_send_transactional_messageSend Transactional MessageA

Sends a one-off transactional e-mail to a subscriber by rendering a 'tx'-type template with the given data. Requires either subscriber_email or subscriber_id. The subscriber must already exist.

Inputs: template_id (required), data, headers, messenger, +4 more.

listmonk_set_default_templateSet Default TemplateA
DestructiveIdempotent

Marks a template as the default template used for new campaigns.

Inputs: id (required), response_format.

listmonk_stop_import_subscribersStop Subscriber ImportB
DestructiveIdempotent

Sends a stop signal to the currently running subscriber import job.

Inputs: no named parameters.

listmonk_test_smtp_settingsTest SMTP SettingsA
Read-onlyIdempotent

Tests connectivity to an SMTP server configuration without saving it, by sending a test e-mail.

Inputs: email (required), smtp_settings (required).

listmonk_update_campaignUpdate CampaignA
DestructiveIdempotent

Updates fields on an existing campaign by id. Only provided fields are changed. Does not change campaign status/schedule — use listmonk_update_campaign_status for that.

Inputs: id (required), body, name, tags, +9 more.

listmonk_update_campaign_archiveUpdate Campaign Archive SettingsC
DestructiveIdempotent

Publishes or unpublishes a campaign to Listmonk's public campaign archive page.

Inputs: id (required), archive (required), archive_meta, archive_slug, +1 more.

listmonk_update_campaign_statusUpdate Campaign StatusA
Destructive

Changes a campaign's lifecycle status, e.g. set to 'running' to start sending, 'paused' or 'cancelled' to stop an in-flight send. This is how campaigns are actually launched — creating a campaign alone leaves it as a 'draft'.

Inputs: id (required), status (required).

listmonk_update_listUpdate Mailing ListB
DestructiveIdempotent

Updates fields on an existing mailing list by id. Only provided fields are changed.

Inputs: list_id (required), name, tags, type, +3 more.

listmonk_update_settingsUpdate SettingsA
DestructiveIdempotent

Updates Listmonk server settings. THIS CAN AFFECT MAIL DELIVERY AND SERVER BEHAVIOR SERVER-WIDE — confirm the exact keys/values with the user before calling. Fetch current values with listmonk_get_settings first.

Inputs: settings (required).

listmonk_update_subscriberUpdate SubscriberC
DestructiveIdempotent

Updates fields on an existing subscriber by id. Only provided fields are changed.

Inputs: id (required), name, email, lists, +5 more.

listmonk_update_templateUpdate TemplateB
DestructiveIdempotent

Updates fields on an existing template by id. Only provided fields are changed.

Inputs: id (required), body, name, type, +3 more.

listmonk_upload_mediaUpload MediaB

Uploads an image file to the media library for use in campaigns/templates.

Inputs: file_name (required), file_content_base64 (required), content_type, response_format.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 72 tools

    Disambiguation4/5

    Most tools are clearly separated by resource and action, and descriptions explicitly clarify tricky boundaries such as single vs bulk vs query-based operations and saved vs draft previews. A few closely related tools remain, especially campaign preview variants and subscriber-specific vs global bounce deletion, which could cause occasional misselection in such a large set.

    Naming Consistency5/5

    Tool names consistently use the listmonk_ prefix, snake_case, and a verb_resource pattern such as listmonk_create_subscriber, listmonk_update_campaign, and listmonk_delete_template. Variations like get/list and manage are semantically motivated and do not break the predictable convention.

    Tool Count2/5

    The server exposes 72 tools, far above a practical 3-15 range, and many are narrow variants for previews, bulk/query operations, maintenance deletion, and diagnostics. While Listmonk is a broad product, much of this surface could be consolidated to reduce agent overload.

    Completeness5/5

    Coverage is extensive across subscribers, campaigns, templates, lists, media, imports, bounces, settings, public subscription endpoints, transactional sending, logs, maintenance, health, and dashboard data. CRUD and lifecycle operations are present throughout, with only negligible possible gaps such as media metadata updates.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Official remote MCP server of MailSenpai, the EU-hosted email marketing platform. Connect Claude, ChatGPT, Cursor or another MCP client with OAuth 2.1 and PKCE. 74 tools manage lists, subscribers, segments, templates, draft campaigns and stats, and check email DNS, blacklists and spam. Sends and deletions require explicit confirmation; every call is logged. The same team also offers SMTP Senpai, an SMTP relay and email API for transactional sending: https://en.mailsenpai.com/smtp-senpai/.

      https://mcp.mailsenpai.com/mcp
    • AgentiSend is a transactional email API: send through verified domains with a message log, budgets, a preflight and refusals that name the fix; built so AI agents can send on your behalf. The hosted MCP server at https://api.agentisend.com/mcp exposes 82 tools (44 on tools/list; the rest via list_more_tools). A send is one message or a batch of up to 500 items with per-item results. preflight_email runs every gate a real send runs, sends nothing, and costs nothing. Every 4xx returns code, message, and fix. There is no tool for unsolicited mail. Auth is a bearer API key or OAuth 2.1 with dynamic client registration. Starter prompts: "Send this receipt to the customer." "Preflight this send and tell me what would stop it." "What can I spend today?"

      https://api.agentisend.com/mcp
    • Hosted Mailchimp MCP server for Claude, ChatGPT and Cursor, with each action switched per account.

    • Connect AI agents to Emitd email sending, message tracking, templates, and automations. Emitd hosts a Model Context Protocol server for integrating supported email operations into AI-agent workflows. Connect a compatible client to the hosted endpoint (https://mcp.emitd.com/mcp) and authenticate with an Emitd API key. Available tools depend on the key's permissions and enabled features. Emitd's capability areas include sending email, message activity, templates, contacts, audiences, segments, domains, analytics, inbound email, broadcasts, automations, webhooks, and suppressions. Use restricted keys, sending guardrails, and approval settings appropriate to each workflow. For more information check https://emitd.com

      https://mcp.emitd.com/mcp

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server implementation that enables AI assistants to interact with Listmonk instances, providing programmatic access to newsletter and mailing list management functionality including subscriber, list, and campaign operations.
      60 PyPI
      45
      MIT
    • F
      license
      D
      quality
      B
      maintenance
      Enables AI agents to manage Listmonk email campaigns, subscribers, lists, and analytics through typed MCP tools with production safety features.
      38
      188 PyPI
      2
      -
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI assistants to manage a self-hosted Listmonk instance, covering subscribers, lists, campaigns, templates, bounces, system diagnostics, and transactional email sending. Ships with an optional read-only mode that registers only the read tools.
      32
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for self-hosted Listmonk newsletters: manage subscribers, lists, campaigns, templates (including from local files), media and transactional email. File access is sandboxed to a configured directory.
      36
      72 npm
      1
      MIT