4,500+ servers built on MCP Fusion
Vinkius
Maileon logo
Vinkius
LangChain logo

How to Use the Maileon MCP in LangChain

Build LangChain agents that run your Maileon marketing campaigns, clean contact lists, and track statistics in multi-step chains.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Maileon MCP on Cursor AI Code Editor MCP Client Maileon MCP on Claude Desktop App MCP Integration Maileon MCP on OpenAI Agents SDK MCP Compatible Maileon MCP on Visual Studio Code MCP Extension Client Maileon MCP on GitHub Copilot AI Agent MCP Integration Maileon MCP on Google Gemini AI MCP Integration Maileon MCP on Lovable AI Development MCP Client Maileon MCP on Mistral AI Agents MCP Compatible Maileon MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
LangChain

Connect Maileon MCP to LangChain

Create your Vinkius account to connect Maileon to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.

GDPR Free for Subscribers

Chain Maileon contact syncs with LangChain agents

Run multi-step marketing operations by linking Maileon tools directly into your LangChain chains. Your agent can pull user records from a database, check if they exist using `get_contact_by_email`, and immediately call `create_new_contact` to update their profile or trigger a double opt-in process. This setup removes manual scripting. By using this MCP Server, you let the model decide when to add contacts and when to clean them, keeping your lists accurate without writing boilerplate API integration code.

Automated campaign dispatch with LangSmith tracing

Send campaigns when specific triggers occur in your application. This MCP Server lets your agent check the status of your newsletter drafts via `list_email_mailings`, inspect the configuration with `get_mailing_details`, and fire off the campaign using `dispatch_email_mailing` when conditions are met. You can monitor this entire execution flow inside LangSmith. Every tool call, API payload, and model decision is logged so you can see exactly why a mailing was dispatched or why a contact update failed.

Real-time list cleaning loops

Keep your sender reputation high by automating list hygiene. Your LangChain agent can call `list_unsubscription_events` to pull recent opt-outs and instantly run `delete_account_contact` to purge them from other active segments. This loop prevents accidental spam complaints. Instead of waiting for weekly CSV exports, your agent handles opt-outs programmatically, ensuring compliance and protecting your domain health automatically.

Setup guide

Set up Maileon MCP in LangChain

Prerequisites

  • Python 3.10+ installed
  • langchain-mcp-adapters + langgraph packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChain BaseTool objects.

  2. 2

    Connect via HTTP transport

    Use MultiServerMCPClient with "transport": "http" pointing to your Vinkius endpoint. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Create a ReAct agent

    Pass the discovered tools to create_react_agent() from LangGraph. The agent automatically routes Maileon tool calls through the MCP protocol.

  4. 4

    Run with any LLM

    Swap ChatOpenAI for ChatAnthropic, ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.

agent.py
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI

async with MultiServerMCPClient({
    "maileon-mcp": {
        "transport": "http",
        "url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
    }
}) as client:
    tools = client.get_tools()

    agent = create_react_agent(
        ChatOpenAI(model="gpt-4o"),
        tools,
    )
    result = await agent.ainvoke({
        "messages": "List recent Maileon transactions"
    })
    print(result["messages"][-1].content)

Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Maileon. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.

Why Choose Vinkius

Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.

Real-time monitoring

Live

visibility into every interaction

Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.

Built-in savings

60%

lower AI costs

Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.

Single dashboard

One

place for every integration

Every tool your AI connects to, managed from a single screen. One account, complete control.

Common questions about Maileon MCP in LangChain

Install `langchain-mcp-adapters` and initialize the server using `MultiServerMCPClient` with your Vinkius HTTP endpoint. Get the tools by calling `client.get_tools()` and pass them directly to your LangChain agent.
Yes. When your agent calls `create_new_contact`, Maileon triggers the configured double opt-in workflow automatically. You do not need to write separate logic to handle confirmation emails.
Use LangSmith to monitor the tool inputs and outputs. If a tool like `dispatch_email_mailing` fails because a campaign is not ready, the exact API error response shows up in your LangSmith run traces.
Yes, your agent can call `list_account_contacts` with optional parameters to filter and segment users. The model parses the returned contact list and uses the data to make decisions in the next step of the chain.
Vinkius runs the server in an isolated, zero-trust sandbox where your API keys are never exposed to the LLM. Your contact emails and subscription statuses are processed ephemerally, ensuring no customer data is stored on Vinkius servers.

Start using the Maileon MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 9 tools

We've already built the connector for Maileon. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 9 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.