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

How to Use the Mailsoftly MCP in LangChain

Build multi-step email marketing chains with LangChain and Mailsoftly.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

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

Connect Mailsoftly MCP to LangChain

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

Sequence Audience Building

Building subscriber segments relies on `list_subscriber_collections` and `create_base_contact`. Your agent reads the available lists and inserts new emails directly into the database. LangChain turns this into a predictable pipeline. The output from finding a specific collection ID immediately becomes the input for adding the user, creating a loop that populates your lists without manual intervention.

Execute Campaigns via MCP Server

Triggering sends through the MCP Server requires exact parameters. The `send_campaign_to_all` tool handles the final stage of your marketing workflow by pushing the blast to your subscribers. You track the entire execution through LangSmith. Every tool call logs its latency and token usage, so you know exactly how long the agent took to decide on the send parameters.

Analyze Engagement Data

Pulling metrics happens via `get_campaign_click_data` and `list_sent_history`. Your ReAct agent checks what went out and calculates how many people actually clicked the links. It feeds those results back into your chain to adjust the next campaign. If open rates drop, the system catches the trend and modifies the targeting logic for the next run.

Setup guide

Set up Mailsoftly 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 Mailsoftly 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({
    "mailsoftly-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 Mailsoftly 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 Mailsoftly. 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 Mailsoftly MCP in LangChain

Run pip install langchain-mcp-adapters langgraph. Then configure a MultiServerMCPClient with your endpoint URL and pass client.get_tools() to your agent.
Yes. They use `get_campaign_details` and `get_campaign_click_data` to pull exact metrics from previous sends.
It fits perfectly into sequential logic. The output from `create_base_contact` feeds right into `add_contact_to_list` within the same chain.
LangSmith catches the error immediately. Your agent can read the failure message and retry the operation with corrected inputs.
Emails, contact list IDs, and click metrics stay within your local environment. Vinkius runs the MCP Server in an ephemeral V8 Isolate Sandbox, meaning your API token is the only credential passed and nothing is stored.

Start using the Mailsoftly MCP today

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

Built & Managed by Vinkius 30s setup 8 tools

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

No hosting. No infrastructure. No complex setup.
All 8 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.