Connect MailerLite to Claude Code

Manage subscribers, groups and segments, and draft, schedule and report on email campaigns. Add Toolspoke to Claude Code once and it can use 20 MailerLite actions. Your MailerLite credential stays in Toolspoke, and you choose which actions Claude Code may call.

Set it up in Claude Code

Three steps, the first one once for every toolkit you will ever add.

  1. Add Toolspoke to Claude Code

    Run it in your project, then /mcp to sign in

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

    The sign-in opens in your browser, and Toolspoke asks you to approve it.

  2. Install MailerLite and connect it

    Add MailerLite to a project in your Toolspoke workspace.

    API token. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.

    API token
    MailerLite → Integrations → MailerLite API → Use → Generate new token. The token is shown once, and it reaches the whole account it was created in.
  3. Choose what Claude Code may do

    All 20 actions start on. Switch off any of the 8 actions that change something in MailerLite, and Claude Code gets a refusal if it tries.

What you can ask Claude Code for

A few of the MailerLite actions that only read, so they are safe to try first.

  • List subscribers, optionally narrowed to one status
  • Read one subscriber, with their fields, status and groups
  • Read one subscriber's activity log, sends, opens, clicks, bounces, unsubscribes, newest first
  • List subscriber groups with their counts and open and click rates

What Claude Code can do in MailerLite

12 actions read, 5 write and 3 delete or permanently change something.

Reads

  • List subscribers

    List subscribers, optionally narrowed to one status. Paged by cursor, pass the cursor from the previous response's meta to get the next page.

  • Get subscriber

    Read one subscriber, with their fields, status and groups. Takes either the subscriber id or the email address.

  • Get subscriber activity

    Read one subscriber's activity log, sends, opens, clicks, bounces, unsubscribes, newest first.

  • List groups

    List subscriber groups with their counts and open and click rates. Takes no required arguments and reads real account data, which is why an install tests itself with it.

  • List group subscribers

    List the subscribers in one group. Defaults to active subscribers; paged by cursor.

  • List segments

    List the segments on this account (at most 250 exist per account).

  • List segment subscribers

    List the subscribers that match one segment. Defaults to active subscribers; paged by cursor.

  • List campaigns

    List campaigns by status (default ready) and type.

  • Get campaign

    Read one campaign, its settings, recipients, schedule and, once sent, its open and click stats.

  • Get campaign subscriber activity

    Per-subscriber results for a sent campaign, who opened, clicked, bounced or unsubscribed.

  • List forms

    List signup forms of one type with their conversion stats.

  • List form subscribers

    List the subscribers who signed up through one form. Defaults to active subscribers; paged by cursor.

Writes

  • Upsert subscriber

    Add a subscriber, or update the one that already has this email. A write rather than destructive: it sends nothing by itself, though it decides who later campaigns reach, so consent is the caller's responsibility. Groups listed here are added; groups not listed are left as they are.

  • Create group

    Create a subscriber group.

  • Assign subscriber to group

    Add an existing subscriber to a group. unassign_subscriber_from_group undoes it.

  • Unassign subscriber from group

    Remove a subscriber from one group. The subscriber stays on the account and can be assigned again.

  • Create campaign

    Create a draft regular campaign with one email. A write, not destructive: a draft reaches nobody until schedule_campaign is called. The from address must be verified in MailerLite. HTML content is accepted only on plans that allow custom HTML; otherwise design the email in the MailerLite editor before scheduling. Send groups or segments; if both are sent, MailerLite uses only the segments.

Deletes or permanently changes

  • Delete subscriber

    Remove a subscriber from the account. They stop receiving everything at once; MailerLite keeps the record so a later re-signup restores it, but nothing here can undo the removal.

  • Schedule campaign

    Send a campaign now or schedule it. Destructive: it delivers email to real subscribers, and once delivery starts it cannot be recalled. delivery=instant sends immediately; scheduled needs date, hours and minutes; timezone_based needs hours and minutes; smart_sending needs date. cancel_campaign stops a scheduled one before it goes out.

  • Cancel campaign

    Cancel a scheduled (ready) campaign and return it to draft. Classified destructive because it overrides a send someone else may have set up; it fails with 400 when the campaign is not in the ready state.

MailerLite in Claude Code: questions

Does Claude Code see my MailerLite credential?

No. The credential is stored encrypted in Toolspoke, and the gateway adds it to each call. Claude Code only ever talks to Toolspoke, and the dashboard shows the last four characters of the credential and nothing more.

Can I stop Claude Code from changing things in MailerLite?

Yes. Each of the 20 actions can be switched off for a project. Turn off the 8 that change something and Claude Code can only read.

Will 20 actions crowd Claude Code's context?

No. Toolspoke shows Claude Code five bridge tools, plus a guide where a toolkit has one, and Claude Code searches for the MailerLite action it needs when it needs it. Adding more toolkits does not add more tools to its list.

Can I add it once for every project?

Yes. Add --scope user to the command and Claude Code keeps Toolspoke in every project on this machine. Without it, the server is added to the project you ran the command in.

What does it cost?

Tool calls are free on every plan, and a MailerLite call does not run in a sandbox, so it bills nothing.

Try MailerLite in Claude Code

Free to start, and tool calls cost nothing on any plan.