How to Use the Campaign Monitor MCP in LangChain
Build autonomous LangChain agents that run your Campaign Monitor marketing, from list management to performance analysis.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Campaign Monitor MCP to LangChain
Create your Vinkius account to connect Campaign Monitor 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 Commands for Complex Workflows
This server gives your agent direct access to Campaign Monitor. You can build chains that react to marketing data in real time. For instance, an agent can `list_campaigns`, find the one with the highest open rate using `get_campaign_performance`, and then automatically add new leads to that campaign's list with `add_subscriber`. It's not just about single commands. LangChain lets your agent decide the sequence. The agent can reason through a multi-step task, like checking account info before fetching client details. And because you have LangSmith, you can trace every single tool call from this MCP Server, seeing exactly what data went in and what came out.
Automate List and Client Management
Stop logging into the UI for routine checks. Give your agent a goal, and it will use the tools to figure it out. It can `list_clients` to get an overview, then drill down into specific contact lists for each one using `list_contact_lists`. This is perfect for building internal dashboards or running automated audits. An agent can loop through all your lists, run `list_subscribers` on each one, and flag any that have low engagement or are growing too slowly. It's your data, queried your way.
Build Agents with your MCP Server
The tools are the building blocks. Your agent gets ten distinct operations it can perform on your Campaign Monitor account, from `get_account_info` to `list_email_templates`. You don't write the API integration code; you just tell the agent what you need done. Getting started is simple. You pass the tools from this MCP server to the `create_agent` function. LangChain handles the logic of when to call a tool and which one to use. Your job is to define the high-level goal, and the agent takes care of the execution.
Set up Campaign Monitor 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 Campaign Monitor 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({
"campaign-monitor-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 Campaign Monitor 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 Campaign Monitor. 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 Campaign Monitor MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Campaign Monitor MCP today
We host it, we monitor it, we maintain it. You just paste one token.