MailerLite
MCP Server

MailerLite MCP Server

Connect AI assistants like Claude, Cursor, and VS Code to MailerLite over the Model Context Protocol.

This is the beta version of Model Context Protocol (MCP) server that provides seamless integration with MailerLite's email marketing API. This server enables AI assistants to manage subscribers, campaigns, groups, and many other things through standardized MCP tools.

How MCP Works

The Model Context Protocol (MCP) is a standardized protocol for AI assistants to interact with external systems. Think of it as USB-C port for AI. You can connect multiple MCPs that talk to each-other and get things done for you.

Connecting a Client

You can connect any MCP-compatible client to the running server. The server supports a streamable HTTP endpoint up to the latest MCP server specifications. Usually, you would just add https://mcp.mailerlite.com/mcp as a remote MCP address in any tooling that you are working with.

Claude (desktop and web)

Open Claude (Desktop), go to Settings > Connectors, and then Add Custom Connector. Name can be whatever you want, but we suggest using MailerLite as name, and Remote MCP server URL is https://mcp.mailerlite.com/mcp. Click connect and follow the login process.

Claude Code

Execute this in terminal:

claude mcp add --transport http mailerlite https://mcp.mailerlite.com/mcp

Gemini CLI

Add following lines in your ~/.gemini/settings.json file:

{
  "mcpServers": {
    "mailerlite": {
      "httpUrl": "https://mcp.mailerlite.com/mcp",
      "timeout": 5000
    }
  }
}

VSCode

You can use one-click install to add it to VSCode.

Cursor

Install MCP Server

ChatGPT

Eligibility: Available in beta to Pro and Plus accounts on the web.

  • First, Enable developer mode: Go to: Settings → Connectors → Advanced → Developer mode.
  • Go to back to Connectors main screen, click Create next to Browse connectors and in the dialog that opens enter the following:

Name: MailerLite Description: leave empty or fill as you wish MCP Server URL: https://mcp.mailerlite.com/mcp Authentication: OAuth

Click on I trust this application checkbox and then click Create. It will guide you through the authentication process.

In order to use connectors in conversations: Open a new convo, choose Developer mode from the Plus menu and select connectors. You may need to explore different prompting techniques to call the correct tools.

Available Tools

Subscriber Management

  • add_subscriber: Add a new subscriber or update an existing one (supports email, name, fields, groups)
  • get_subscriber: Get subscriber info by ID or email
  • update_subscriber: Update subscriber information (non-destructive)
  • list_subscribers: List subscribers with filtering by status (active, unsubscribed, unconfirmed, bounced, junk)
  • get_subscriber_activity: Get activity history for a subscriber
  • get_subscriber_count: Get the total count of subscribers
  • delete_subscriber: Delete a subscriber (keeps info for re-subscription)

Campaign Management

  • create_campaign: Create a new email campaign (regular, ab, resend types)
  • get_campaign: Get specific campaign details
  • list_campaigns: List campaigns with filtering by status and type
  • update_campaign: Update campaign details (name, subject, from, content)
  • delete_campaign: Delete a campaign
  • schedule_campaign: Schedule a campaign to be sent
  • cancel_campaign: Cancel a scheduled campaign
  • get_campaign_subscribers: Get subscribers who received a campaign, with filters
  • get_campaign_links: List the links in a sent campaign with their click stats
  • get_campaign_link_recipients: Get the subscribers who clicked a specific link

Group Management

  • create_group: Create a new subscriber group
  • update_group: Update a group name
  • delete_group: Delete a group
  • get_group_subscribers: Get subscribers in a group
  • assign_subscriber_to_group: Add a subscriber to a group
  • unassign_subscriber_from_group: Remove a subscriber from a group
  • import_subscribers_to_group: Bulk import subscribers into a group

Segment Management

  • list_segments: List all segments
  • create_segment: Create a new segment
  • get_segment: Get a single segment's details
  • update_segment: Update a segment name
  • delete_segment: Delete a segment
  • get_segment_subscribers: Get subscribers in a segment, with status filtering

Field Management

  • list_fields: List custom subscriber fields
  • create_field: Create a custom field (text, number, or date)
  • update_field: Rename a custom field
  • delete_field: Delete a custom field

Form Management

  • list_forms: List forms by type (popup, embedded, promotion)
  • create_form: Create a new form
  • get_form: Get a single form's details
  • update_form: Update a form name
  • delete_form: Delete a form
  • get_form_subscribers: Get subscribers who signed up through a form

Automation Management

  • list_automations: List automations with filtering by name, group, and enabled status
  • get_automation_activity: Get subscriber activity for an automation, with status filtering
  • create_automation: Create a draft automation
  • build_custom_automation: Plan and validate a custom automation before creating it
  • start_automation_conversation: Begin a guided, conversational automation build
  • update_automation_email: Update the content of an automation email step
  • update_automation_delay: Update the delay of an automation step
  • dry_run_automation: Validate an automation without sending anything
  • send_test_automation: Send test emails for an automation
  • delete_automation: Delete an automation

Templates

  • discover_automation_templates: Browse available automation templates
  • install_template: Install an automation template into the account
  • list_email_templates: List available email templates
  • list_form_templates: List available form templates

Email Content

  • generate_email_content: Generate and validate HTML email content
  • suggest_subject_lines: Generate and validate subject line suggestions

E-commerce Management

  • manage_ecommerce_shops: List, fetch, create, update, or delete shops
  • manage_ecommerce_products: List, fetch, create, update, delete, or bulk-import products in a shop
  • manage_ecommerce_customers: List, fetch, create, update, or delete customers in a shop
  • manage_ecommerce_orders: List, fetch, create, update, delete, or bulk-import orders in a shop
  • manage_ecommerce_categories: List, fetch, create, update, delete, or bulk-import product categories
  • manage_ecommerce_carts: List, fetch, or update shopping carts
  • manage_ecommerce_cart_items: List, fetch, create, update, or delete the line items of a cart
  • manage_ecommerce_category_products: List products in a category, or attach/detach a product

Each manage_ecommerce_* tool takes an action parameter (e.g. list, get, create, update, delete, import) rather than exposing a separate tool per operation.

Webhook Management

  • list_webhooks: List all webhooks
  • get_webhook: Get a specific webhook's details
  • create_webhook: Create a new webhook with a name, URL, and events
  • update_webhook: Update a webhook, including enabling/disabling it
  • delete_webhook: Delete a webhook

Discovery & Utility

  • search: Search across MailerLite resources
  • fetch: Fetch a specific MailerLite resource by reference
  • list_resources: List the resource types available to work with
  • select_resource: Resolve a resource by name to its ID
  • batch_requests: Run multiple API operations in a single batched request
  • get_dashboard_link: Get a deep link to edit a resource in the MailerLite dashboard

Authentication

  • get_auth_status: Get the current authentication status

Feedback

We are always eager about feedback of the exciting things we are working on. If you have feedback about our MCP, feel free to send an email to mcp@mailerlite.com.

On this page