How to Use the Audienceful MCP in LangChain
Build marketing chains in LangChain that manage Audienceful subscribers and trigger automations based on real-time campaign data.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Audienceful MCP to LangChain
Create your Vinkius account to connect Audienceful 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.
LangChain Audienceful MCP Server Pipelines
The Audienceful MCP Server connects your ReAct agents directly to subscriber management. Your agent calls `list_people` to find segments based on specific email addresses, then immediately passes those UIDs down the execution chain. Moving output from one tool to another happens natively. A logic node might analyze engagement using `list_send_reports`, decide a user needs a follow-up, and execute `trigger_automation` to start that exact email sequence without human intervention.
Chain-Driven Custom Field Operations
Your LangChain pipelines handle dynamic marketing attributes through `list_custom_fields` and `create_custom_field`. When an external database update triggers your script, the agent maps new data points directly into your marketing platform. Tracing these updates in LangSmith shows exactly how long the API took to respond. You get full visibility into the inputs and outputs when the agent decides to run `update_person` with those newly mapped fields.
Automated Subscriber Lifecycle Management
Combining `create_person` and `delete_person` inside a scheduled chain automates list hygiene. Your script pulls bounced emails from a separate source, verifies them, and removes dead weight from your audience. State persistence via `client.session()` keeps track of who was processed during long-running batch jobs. If a task fails midway, the agent knows exactly which profile to fetch next using `get_person` when it resumes.
Set up Audienceful 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 Audienceful 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({
"audienceful-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 Audienceful 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 Audienceful. 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 Audienceful MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Audienceful MCP today
We host it, we monitor it, we maintain it. You just paste one token.