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

How to Use the Mail Blaze MCP in LangChain

Build email marketing automation that actually works. Chain Mail Blaze tools together with LangChain to connect subscriber actions to campaigns.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

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

Connect Mail Blaze MCP to LangChain

Create your Vinkius account to connect Mail Blaze 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

Automate the Full Email Lifecycle

This server gives your agent tools to manage email marketing from start to finish. You can build a chain that automatically adds a new user to a welcome sequence. It starts with `add_subscriber_to_list`. The next step in the chain can use `create_new_campaign` to prepare the welcome email. The final link calls `send_email_campaign` to dispatch it. No more manual CSV uploads or clicking "send."

Run Dynamic Campaigns with a LangChain Agent

Give your ReAct agent the ability to manage your campaigns. It can use `list_email_campaigns` to see what's scheduled, then pull specifics on one with `get_campaign_details`. This lets it reason about what to do next. Based on the campaign data, your agent might decide a subscriber's information is wrong. It can then call `update_list_subscriber` to fix it. The agent isn't just executing—it's making decisions based on live data from your Mail Blaze account.

Build Smart Segmentation Chains

Stop blasting your whole list. Use this MCP Server to build smarter segmentation. Your chain can start by calling `list_subscriber_lists` to find the main list, then fetch everyone on it with `list_list_subscribers`. With the subscriber data in hand, your LangChain app can apply its own logic—find the power users, locate the inactive ones. Then, it uses `add_subscriber_to_list` to move them to new, targeted lists for different campaigns.

Setup guide

Set up Mail Blaze 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 Mail Blaze 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({
    "mail-blaze-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 Mail Blaze 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 Mail Blaze. 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 Mail Blaze MCP in LangChain

Create a chain. The first step uses `add_subscriber_to_list`, and the second step triggers a campaign send with `send_email_campaign`.
Yes. The agent can fetch subscribers with `list_list_subscribers`, use your logic to identify who to remove, and then call `delete_list_subscriber`.
Use the `MultiServerMCPClient` from the official adapter. It lets you get all the tools and pass them directly to your agent constructor.
Yes. Every tool call your LangChain agent makes—like `create_new_campaign`—is automatically traced in LangSmith. You see the inputs, outputs, and latency for each step.
Your LangChain agent only accesses the data it explicitly calls for. This includes subscriber information like emails when using `add_subscriber_to_list` or campaign content from `get_campaign_details`. Vinkius isolates the connection, and the data only exists for the duration of the API call.

Start using the Mail Blaze 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 Mail Blaze. 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.