Listmonk MCP Server for Mastra AIGive Mastra AI instant access to 28 tools to Create Campaign, Create List, Create Public Subscription, and more
Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Listmonk through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.
Ask AI about this MCP Server for Mastra AI
The Listmonk MCP Server for Mastra AI is a standout in the Marketing Automation category — giving your AI agent 28 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";
async function main() {
// Your Vinkius token. get it at cloud.vinkius.com
const mcpClient = await createMCPClient({
servers: {
"listmonk": {
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
},
});
const tools = await mcpClient.getTools();
const agent = new Agent({
name: "Listmonk Agent",
instructions:
"You help users interact with Listmonk " +
"using 28 tools.",
model: openai("gpt-4o"),
tools,
});
const result = await agent.generate(
"What can I do with Listmonk?"
);
console.log(result.text);
}
main();
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Listmonk MCP Server
Connect your Listmonk instance to any AI agent and take full control of your email marketing workflows through natural conversation.
Mastra's agent abstraction provides a clean separation between LLM logic and Listmonk tool infrastructure. Connect 28 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
What you can do
- Subscriber Management — List, create, update, or delete subscribers using SQL-like queries for precise filtering via
list_subscribersandcreate_subscriber. - List Organization — Manage your mailing lists and public subscriptions to keep your audience segmented using
list_listsandcreate_list. - Campaign Control — Create, monitor, and update the status of your email campaigns from draft to sent with
create_campaignandupdate_campaign_status. - Transactional Emails — Send high-priority transactional messages instantly via the
send_transactionaltool. - Media & Templates — Manage your asset library and email templates without leaving your chat interface using
list_templatesandlist_media.
The Listmonk MCP Server exposes 28 tools through the Vinkius. Connect it to Mastra AI in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 28 Listmonk tools available for Mastra AI
When Mastra AI connects to Listmonk through Vinkius, your AI agent gets direct access to every tool listed below — spanning newsletter-management, mailing-lists, subscriber-management, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Create campaign on Listmonk
Create a new campaign
Create list on Listmonk
Create a new list
Create public subscription on Listmonk
Create a public subscription
Create subscriber on Listmonk
Create a new subscriber
Create template on Listmonk
Create a template
Delete bounces on Listmonk
Delete multiple bounce records
Delete campaign on Listmonk
Delete a campaign
Delete list on Listmonk
Delete a list
Delete media on Listmonk
Delete a media file
Delete subscriber on Listmonk
Delete a specific subscriber
Delete template on Listmonk
Delete a template
Get campaign on Listmonk
Retrieve a specific campaign
Get import status on Listmonk
Retrieve import status
Get subscriber on Listmonk
Retrieve a specific subscriber
List bounces on Listmonk
Retrieve bounce records
List campaigns on Listmonk
Retrieve all campaigns
List lists on Listmonk
Retrieve all lists
List media on Listmonk
Get uploaded media files
List public lists on Listmonk
Retrieve public lists
List subscribers on Listmonk
Supports pagination, list filtering, and SQL expression search. Query and retrieve subscribers
List templates on Listmonk
Retrieve all templates
Patch subscriber on Listmonk
Partially update a subscriber
Send transactional message on Listmonk
Send transactional messages to one or more subscribers using a template
Stop import on Listmonk
Stop an ongoing import
Update campaign status on Listmonk
Change campaign status
Update list on Listmonk
Update a list
Update subscriber on Listmonk
Update a specific subscriber
Update template on Listmonk
Update a template
Connect Listmonk to Mastra AI via MCP
Follow these steps to wire Listmonk into Mastra AI. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
npm install @mastra/core @mastra/mcp @ai-sdk/openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.ts and run with npx tsx agent.tsExplore tools
Why Use Mastra AI with the Listmonk MCP Server
Mastra AI provides unique advantages when paired with Listmonk through the Model Context Protocol.
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Listmonk without touching business code
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
TypeScript-native: full type inference for every Listmonk tool response with IDE autocomplete and compile-time checks
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Listmonk + Mastra AI Use Cases
Practical scenarios where Mastra AI combined with the Listmonk MCP Server delivers measurable value.
Automated workflows: build multi-step agents that query Listmonk, process results, and trigger downstream actions in a typed pipeline
SaaS integrations: embed Listmonk as a first-class tool in your product's AI features with Mastra's clean agent API
Background jobs: schedule Mastra agents to query Listmonk on a cron and store results in your database automatically
Multi-agent systems: create specialist agents that collaborate using Listmonk tools alongside other MCP servers
Example Prompts for Listmonk in Mastra AI
Ready-to-use prompts you can give your Mastra AI agent to start working with Listmonk immediately.
"List all subscribers who are currently enabled in list 2."
"Create a new campaign named 'Monthly Newsletter' with the subject 'Our latest updates'."
"Show me all available email templates."
Troubleshooting Listmonk MCP Server with Mastra AI
Common issues when connecting Listmonk to Mastra AI through Vinkius, and how to resolve them.
createMCPClient not exported
npm install @mastra/mcpListmonk + Mastra AI FAQ
Common questions about integrating Listmonk MCP Server with Mastra AI.
How does Mastra AI connect to MCP servers?
MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.Can Mastra agents use tools from multiple servers?
Does Mastra support workflow orchestration?
Explore More MCP Servers
View all →
Onfido
6 toolsAutomate identity verification via Onfido — create applicants, manage workflow runs, and retrieve verification reports directly from any AI agent.

World Bank Full Access
30 toolsThe ultimate Mega-Server integration: A massive 30-tool suite granting your AI zero-auth access to the entire World Bank catalog (29,506 indicators) across all 21 specific categories.

Tavus Video Replicas
7 toolsGenerate personalized AI videos via Tavus — manage replicas, create videos from scripts, and track generation status.

Userback
6 toolsCollect visual feedback from users with annotated screenshots, screen recordings, and bug reports embedded in your product.
