Skip to main content
Glama

Listmonk MCP Server

by rhnvrm
MIT License
11

Listmonk MCP Server

An MCP (Model Context Protocol) server implementation for Listmonk, providing programmatic access to newsletter and mailing list management functionality.

Project Status

Implementation Complete - The core MCP server is fully implemented and functional.

Goal

Create an MCP server that enables LLMs and AI assistants to interact with Listmonk instances through the Model Context Protocol. This will allow for:

  • Subscriber management (add, remove, update subscribers)
  • Mailing list operations (create, manage lists)
  • Campaign management (create, send newsletters)
  • Analytics and reporting access
  • Template and content management

Architecture

This server will bridge the MCP protocol with Listmonk's REST API, providing a standardized interface for AI models to interact with Listmonk installations.

Features

  • Complete Listmonk API Coverage: All major Listmonk operations supported
  • 18 MCP Tools: Comprehensive subscriber, list, campaign, and template management
  • MCP Resources: Easy access to subscriber, list, campaign, and template data
  • Async Operations: Built with modern async/await patterns
  • Type Safety: Full Pydantic model validation
  • Environment Configuration: Easy setup with environment variables

Installation

git clone https://github.com/rhnvrm/listmonk-mcp.git cd listmonk-mcp

Using pip

git clone https://github.com/rhnvrm/listmonk-mcp.git cd listmonk-mcp pip install -e .

Quick Start

1. Set up Listmonk (Local Development)

For testing, you can run a local Listmonk instance using Docker:

# Option 1: Use the provided compose file docker compose -f docs/listmonk-docker-compose.yml up -d # Option 2: Download the latest compose file curl -LO https://github.com/knadh/listmonk/raw/master/docker-compose.yml docker compose up -d # Access Listmonk at http://localhost:9000 # Default credentials: admin / listmonk

2. Create API User and Token

  1. Access the Listmonk admin interface at http://localhost:9000/admin
  2. Login with the default credentials: admin / listmonk
  3. Navigate to Admin → Users (http://localhost:9000/admin/users)
  4. Create a new API user:
    • Click "Add new"
    • Enter a username (e.g., api-user)
    • Assign appropriate role/permissions
    • Save the user
  5. Generate an API token:
    • Click on the created user
    • Click "Generate API token"
    • Copy the generated token

3. Configure Environment Variables

The MCP server requires the following environment variables:

export LISTMONK_MCP_URL=http://localhost:9000 export LISTMONK_MCP_USERNAME=your-api-username export LISTMONK_MCP_PASSWORD=your-generated-api-token

Important: The password field should contain the API token (not the user's login password). The server uses Listmonk's token authentication format: Authorization: token username:api_token.

Troubleshooting Configuration:

  • Verify variables: echo $LISTMONK_MCP_URL should show your Listmonk URL
  • Test API access: curl -H "Authorization: token username:api_token" http://localhost:9000/api/health
  • Common errors: "invalid session" or 403 errors indicate incorrect credentials

4. Run the MCP Server

# Using uv (recommended) uv run python -m listmonk_mcp.server # Or using the entry point listmonk-mcp

Common Issues:

  • Connection refused: Listmonk server not running or wrong URL
  • Module not found: Install dependencies with uv install or pip install -e .
-
security - not tested
A
license - permissive license
-
quality - not tested

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.

  1. Project Status
    1. Goal
      1. Architecture
        1. Features
          1. Installation
            1. Using uv (Recommended)
            2. Using pip
          2. Quick Start
            1. 1. Set up Listmonk (Local Development)
            2. 2. Create API User and Token
            3. 3. Configure Environment Variables
            4. 4. Run the MCP Server

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            An MCP server that provides AI assistants access to the Beeminder API, allowing them to help users track goals, manage datapoints, and interact with Beeminder's self-commitment tools through natural language.
            Last updated -
            6
            Python
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that enables AI assistants to interact with Linear project management systems, allowing users to retrieve, create, and update issues, projects, and teams through natural language.
            Last updated -
            32
            1,062
            92
            TypeScript
            MIT License
            • Apple
          • A
            security
            F
            license
            A
            quality
            An MCP server that supercharges AI assistants with powerful tools for software development, enabling research, planning, code generation, and project scaffolding through natural language interaction.
            Last updated -
            11
            59
            TypeScript
            • Linux
            • Apple
          • A
            security
            F
            license
            A
            quality
            A powerful MCP server that enables AI assistants to interact with Microsoft Graph API for managing Outlook emails, Calendar events, OneDrive files, and Contacts through natural language commands.
            Last updated -
            20
            8
            Python
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/rhnvrm/listmonk-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server