No results were found...

If you use VS Code to build integrations or backend tools for MailerLite, our MCP server is for you. Connect MailerLite with VS Code to access MailerLite data or perform actions with natural language prompts. All without leaving the application.

This enables exciting features to streamline your workflows, like:

  • Check what subscriber events look like without trawling through API docs

  • Query actual group names or automation triggers without leaving the editor

  • And more!

How to connect MailerLite with VS Code

First, you need the Visual Studio Code app installed on your computer and the GitHub Copilot extension enabled in VSCode. The free version of GitHub Copilot is fully compatible with this integration. 

Once you have these tools installed, setup is simple. Just follow these steps:

  1. Click the one-click install link in this article to begin the installation process inside your VSCode app.

  2. Your web browser will show a pop-up asking for permission to open VSCode. Click Allow.

  3. In the new window, click the Install button to complete the setup.

  4. You may need to enable Agent mode in the VS Code chat.

We also have a complete video walkthrough of the signup process that you can watch below. 

Tools you can use in VS Code

MailerLite's MCP server has over 40 tools you can use to interact with MailerLite from VS Code. They include tools for subscriber, campaign, group, webhook, segment, automation, form, and authentication management. Check them out below.

Subscriber management

  • add_subscriber: Add a new subscriber or update existing (supports email, name, fields, groups)

  • get_subscriber: Get subscriber info by ID or email

  • update_subscriber: Update subscriber information (non-destructive)

  • list_subscribers: List all subscribers with filtering by status (active, unsubscribed, unconfirmed, bounced, junk)

  • get_subscriber_activity: Get activity history for a subscriber

  • get_subscriber_count: Get total count of subscribers

  • delete_subscriber: Delete a subscriber (keeps info for re-subscription)

  • forget_subscriber: GDPR-compliant complete removal of subscriber data

  • get_single_import: Get details of a single import

Campaign management

  • create_campaign: Create a new email campaign (regular, ab, resend types)

  • get_campaign: Get specific campaign details

  • list_campaigns: List all 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

Group management

  • list_groups: List all subscriber groups

  • create_group: Create a new subscriber group

  • update_group: Update 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 to a group

Webhook management

  • list_webhooks: List all webhooks

  • get_webhook: Get specific webhook details

  • create_webhook: Create a new webhook with name, URL, and events

  • update_webhook: Update webhook details including enabling/disabling

  • delete_webhook: Delete a webhook

Segment management

  • list_segments: List all segments

  • get_subscribers_in_segment: Get subscribers in a segment with status filtering

  • update_segment: Update segment name

  • delete_segment: Delete a segment

Automation management

  • list_automations: List all automations with filtering by name, group, enabled status

  • get_automation: Get single automation details

  • get_automation_activity: Get subscriber activity for an automation with status filtering

  • create_automation: Create a draft automation

  • delete_automation: Delete an automation

Form management

  • list_forms: List forms by type (popup, embedded, promotion)

  • get_form: Get single form details

  • update_form: Update form name

  • delete_form: Delete a form

  • get_form_subscribers: Get subscribers who signed up through a form

Authentication

  • get_auth_status: Get current authentication status

Discover more about the tools the MCP server gives you access to in our developer documentation.