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.
Works with every AI agent you already use
…and any MCP-compatible client
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.
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.
Set up Mail Blaze MCP in LangChain
Prerequisites
- Python 3.10+ installed
-
langchain-mcp-adapters+langgraphpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChainBaseToolobjects. - 2
Connect via HTTP transport
Use
MultiServerMCPClientwith"transport": "http"pointing to your Vinkius endpoint. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 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
Run with any LLM
Swap
ChatOpenAIforChatAnthropic,ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.
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
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Mail Blaze MCP today
We host it, we monitor it, we maintain it. You just paste one token.