How to Use the Lemlist MCP in LangChain
Let your LangChain agents run cold outreach sequences and manage leads directly inside your reasoning chains.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Lemlist MCP to LangChain
Create your Vinkius account to connect Lemlist 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.
Chain outreach actions with LangChain
Stop writing glue code to connect your LangChain data pipelines to your Lemlist sales sequences. This MCP Server lets your LangChain agent pull data from any source and immediately trigger `add_lead` to push them into an active sequence. You can build chains that check campaign performance with `get_campaign` and then conditionally route new targets without manual intervention. Observability is built right into this LangChain and Lemlist setup. Every time your LangChain agent calls `list_leads` or updates a status, LangSmith captures the exact payload. You see the latency, the exact token cost, and the tool inputs in real time, making it easy to debug why a Lemlist lead didn't get added via your LangChain chain.
Dynamic sequence pausing based on agent logic
Your LangChain agent can make real-time decisions during a run. If an agent analyzes a customer support ticket and detects high churn risk, it can immediately trigger `pause_lead` to stop Lemlist sales emails. No more embarrassing situations where your LangChain agent pitches a Lemlist prospect who is currently complaining to support. Once the issue is resolved, the LangChain agent can run `resume_lead` to get them back on track. This programmatic control keeps your brand from looking spammy while you automate the tedious manual monitoring of your Lemlist campaigns inside LangChain.
Multi-step reasoning for campaign selection
Give your LangChain agent the power to decide where a prospect belongs using this MCP Server. The agent starts by calling `list_campaigns` to see what Lemlist sequences are active, then uses semantic search on your internal docs to match the lead's industry. It's a hands-off way to ensure every Lemlist prospect lands in the right LangChain-routed bucket. If a prospect is already in a sequence, the LangChain agent checks `list_leads` to prevent double-emailing. You get clean, automated Lemlist lead routing via LangChain without risking your sender reputation.
Set up Lemlist 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 Lemlist 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({
"lemlist-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 Lemlist 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 Lemlist. 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 Lemlist MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Lemlist MCP today
We host it, we monitor it, we maintain it. You just paste one token.