Mailerlite MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Mailerlite MCP or direct API to send campaigns, manage subscribers, automate sequences, and analyze email performance through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Mailerlite Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Mailerlite now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Add Product to CategoryTool to add a product to a category in an e-commerce shop.
Add Subscriber To GroupTool to assign an existing subscriber to a group.
Create automationCreate automation
Create CampaignTool to create a new email campaign (draft) with specified type, content, and targeting.
Create E-commerce Cart ItemTool to add an item to a shopping cart.
Create E-commerce CategoryTool to create a new product category for a shop.
Create/Update E-commerce CustomerTool to create or update a customer record for a shop.
Create E-commerce OrderTool to create a new order for a shop.
Create E-commerce ProductTool to create a new product for an e-commerce shop.
Create E-commerce ShopTool to connect a new e-commerce shop.
Create FieldTool to create a new custom field.
Create GroupTool to create a new subscriber group.
Create SegmentTool to create a new subscriber segment.
Create SubscriberTool to create or update (upsert) a subscriber by email.
Create WebhookTool to register a new webhook URL for specified event types.
Delete AutomationTool to delete an automation workflow by ID.
Delete E-commerce Cart ItemTool to remove an item from a cart in an e-commerce shop.
Delete E-commerce CategoryTool to delete a product category from an e-commerce shop by IDs.
Delete E-commerce CustomerTool to delete a customer from an e-commerce shop by IDs.
Delete E-commerce OrderTool to delete an order from a shop.
Delete E-commerce ProductTool to delete a product from an e-commerce shop by IDs.
Delete E-commerce ShopTool to disconnect an e-commerce shop by ID.
Delete FieldTool to delete a custom field.
Delete GroupTool to delete a subscriber group by ID.
Delete SegmentTool to delete a segment by ID.
Delete SubscriberTool to delete a subscriber by ID.
Delete WebhookTool to remove a webhook subscription by ID.
Execute Batch RequestTool to execute multiple API requests in a single batch call (max 50 requests).
Forget SubscriberTool to forget a subscriber completely (GDPR compliant deletion).
Get Account InfoTool to retrieve basic MailerLite account details.
Get Account StatsTool to retrieve usage statistics and performance metrics for the account.
Get AutomationTool to retrieve details of a specific automation by ID.
Get Automation ActivityTool to retrieve subscriber activity for a specific automation.
Get Campaign LanguagesTool to retrieve a list of all available campaign languages.
Get CampaignsTool to retrieve a list of all campaigns.
Get E-commerce CartTool to fetch details of a specific cart by shop ID and cart ID.
Get E-commerce Cart ItemTool to fetch details of a specific cart item by shop ID, cart ID, and item ID.
Get E-commerce CategoryTool to fetch details of a specific product category by shop and category ID.
Get E-commerce CustomerTool to fetch details of a customer by shop and customer ID.
Get E-commerce CustomersTool to list customers for a specific shop.
Get E-commerce OrderTool to fetch details of a specific e-commerce order by shop ID and order ID.
Get E-commerce ProductTool to fetch details of a specific e-commerce product by shop and product ID.
Get E-commerce ShopTool to fetch details of a specific e-commerce shop by ID.
Get E-commerce ShopsTool to list all e-commerce shops connected to the account.
Get FieldsTool to retrieve all custom fields defined in the account.
Get GroupTool to retrieve details of a specific subscriber group by ID.
Get GroupsTool to retrieve all subscriber groups.
Get Group SubscribersTool to list subscribers within a group by ID.
Get Import StatusTool to retrieve the status and detailed report of a subscriber import operation by import ID.
Get SegmentTool to retrieve a specific segment by ID.
Get SegmentsTool to retrieve all segments in the account.
Get Segment SubscribersTool to retrieve all subscribers belonging to a specific segment.
Get SubscriberTool to fetch a single subscriber by ID or email address.
Get Subscriber ActivityTool to fetch the activity log for a specific subscriber.
Get SubscribersTool to retrieve all subscribers.
Get Subscribers StatsTool to get subscriber statistics for the account.
Get WebhookTool to retrieve details of a specific webhook by ID.
Get WebhooksTool to retrieve all configured webhooks.
Import E-commerce CategoriesTool to bulk import categories to an e-commerce shop.
Import E-commerce OrdersTool to bulk import orders to an e-commerce shop.
Import E-commerce ProductsTool to bulk import products to an e-commerce shop.
Import Subscribers to GroupTool to bulk import multiple subscribers to a specific group.
List AutomationsTool to retrieve all automations in your MailerLite account.
List E-commerce Cart ItemsTool to list all items in a specific cart for an e-commerce shop.
List E-commerce CartsTool to list all carts for a specific shop.
List E-commerce CategoriesTool to list all product categories for a shop.
List E-commerce Category ProductsTool to list all products in a specific e-commerce category.
List E-commerce OrdersTool to list all orders for a specific e-commerce shop.
List E-commerce ProductsTool to list all products for a specific e-commerce shop.
List FormsTool to retrieve all forms of a specific type (popup, embedded, or promotion).
List TimezonesTool to retrieve all available timezones supported by MailerLite.
Remove Product From CategoryTool to remove a product from a category in an e-commerce shop.
Remove Subscriber From GroupTool to remove a subscriber from a group by ID.
Set Double Opt-InTool to enable or disable double opt-in for new subscribers.
Update E-commerce CartTool to update an existing cart's checkout URL or total price.
Update E-commerce Cart ItemTool to update a cart item's quantity or properties in an e-commerce cart.
Update E-commerce CategoryTool to update an existing product category in an e-commerce shop.
Update E-commerce CustomerTool to update a customer's data for a shop by IDs.
Update E-commerce OrderTool to update an existing order's status or total price in an e-commerce shop.
Update E-commerce ProductTool to update an existing product in an e-commerce shop by IDs.
Update E-commerce ShopTool to update settings of a connected e-commerce shop by ID.
Update FieldTool to update the title of an existing custom field.
Update GroupTool to update a group's name by ID.
Update SegmentTool to rename an existing segment by ID.
Update SubscriberTool to update an existing subscriber's information by ID.
Update WebhookTool to update an existing MailerLite webhook.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Mailerlite tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Create a new subscriber group for VIP customers')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Mailerlite Integration

  • Supports both Mailerlite MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Mailerlite data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Mailerlite access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Mailerlite
  • Scoped, least privilege access to Mailerlite resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Mailerlite with Composio?

Yes, Mailerlite requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.