Manage MailerLite subscribers, groups, fields, segments, and email campaigns.
MailerLite ships in the w6w first-party pack. It declares 16 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.mailerliteMailerLite manages email subscribers and the campaigns sent to them, and this app covers both sides. Add, update or upsert subscribers, assign or remove them from groups, and read the custom fields and segments that make targeting possible. Group membership added through an upsert is additive, while setting it explicitly through an update replaces it outright — the app follows MailerLite’s own distinction rather than picking one behavior for both.
Campaigns can be created and scheduled to send, staying in draft until scheduling is explicitly triggered — nothing goes out by accident. Listing groups, fields and segments feeds directly into the write actions, since MailerLite’s API expects subscribers tagged with those exact names and ids.
Good for syncing subscriber data from a signup form or CRM, triggering a campaign send from an external event, or keeping group membership current as people move through a workflow. Built against MailerLite’s current API, not the older Classic API some integrations still target.
Three routes to the same 16 actions. The Workflow tab is generated from MailerLite's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
assign-subscriber-to-group Add an existing subscriber to an existing group.
delete-subscriber Remove a subscriber from the account by id. Their history is retained.
get-campaign Fetch a single campaign, including its emails, filter and delivery schedule.
list-campaigns List campaigns. MailerLite defaults to status `ready` when no status filter is supplied.
list-fields List the subscriber fields defined on the account, with their keys and types.
list-group-subscribers List the subscribers in a group. Pass `meta.next_cursor` back as `cursor`.
list-segments List the account's segments with their subscriber counts and engagement stats.
list-subscribers List subscribers. Walks one page — pass `meta.next_cursor` back as `cursor`.
schedule-campaign Send a draft campaign now, or schedule it for a future date and time.
unassign-subscriber-from-group Remove a subscriber from a group. The subscriber itself is not deleted.
update-subscriber Update a subscriber by id. Supplying `groups` REPLACES membership — unlisted groups are removed.
upsert-subscriber Create the subscriber if the email is new, otherwise merge the values in. Never removes fields or groups.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying MailerLite's real ids.
{
"manifestVersion": "2",
"name": "mailerlite-example",
"steps": [
{
"id": "assign-subscriber-to-group",
"uses": {
"app": "io.w6w.mailerlite",
"action": "assign-subscriber-to-group",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"subscriberId": "<subscriberId>",
"groupId": "<groupId>"
}
}
]
}assign-subscriber-to-group create-campaign create-group get-campaign get-subscriber +11 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for MailerLite, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to MailerLite. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "upsert-subscriber",
payload: {
email: "<value>",
// fields: "<value>",
// groups: "<value>",
// status: "<value>",
// subscribedAt: "<value>",
// ipAddress: "<value>",
// resubscribe: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action upsert-subscriber --payload '{"email":"<value>"}' Give an AI agent MailerLite — without giving it MailerLite's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.mailerlite#assign-subscriber-to-group",
"input": {
"subscriberId": "<subscriberId>",
"groupId": "<groupId>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's MailerLite connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
MailerLite's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. MailerLite itself is MIT, and the runtime that executes it is source-available (FSL).
MailerLite declares its own checks, so its health is a property of the app rather than something the host guesses at.
Statuspage-format rollup for status.mailerlite.com, with per-component detail. Unauthenticated and unsigned.
Requests remaining on this credential, read off the `X-RateLimit-*` headers. MailerLite documents them only on a 429, so a healthy response often carries none.