How to Use the Mailshake MCP in LangChain
Build sales automation chains in LangChain that run your Mailshake outreach from lead to closed deal.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Mailshake MCP to LangChain
Create your Vinkius account to connect Mailshake 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 Lead-to-Prospect Pipelines
Chain together Mailshake tools to build a pipeline that moves contacts from lead to active prospect. Your LangChain agent can `list_sales_leads`, decide which ones are qualified based on your logic, and then automatically `add_prospects` to the right cold email campaign. This isn't a simple script. Because LangChain agents can reason about the output of one tool before calling the next, you can build a truly autonomous system. You're moving from manual list uploads to an agent that manages the top of your funnel for you.
Dynamic Campaign Management with LangChain
Give your agent the power to manage campaigns based on live results. It can `list_campaigns`, check their performance with `get_campaign_details`, and then decide whether to `pause_campaign` or `resume_campaign` based on rules you define. For example, you can build a chain that regularly checks engagement. If the `list_engagement_activity` tool shows that open rates have dropped below a certain threshold, the agent can pause the campaign and flag it for your review. This MCP server gives you the building blocks for that logic.
Keep Prospect and Lead Status in Sync
Use the `update_lead_status` tool to create chains that react to prospect actions. When a lead replies to an email, your agent can change their status from 'Contacted' to 'Replied' and immediately execute `pause_prospect` to stop any further automated follow-ups. You can also build internal monitoring agents. Have one periodically check `get_team_details` to see who's on the account, then use `get_user_profile` to pull specific info for internal dashboards or reports.
Set up Mailshake 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 Mailshake 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({
"mailshake-alternative-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 Mailshake 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 Mailshake. 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 Mailshake MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Mailshake MCP today
We host it, we monitor it, we maintain it. You just paste one token.