How to Use the Maropost MCP in LlamaIndex
Turn your Maropost API output into a searchable knowledge base with LlamaIndex. Ask questions, get answers from your own data.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Maropost MCP to LlamaIndex
Create your Vinkius account to connect Maropost to LlamaIndex and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Index Your Marketing History
This server lets your LlamaIndex agent do more than just call an API; it lets you index the results. Your agent can run `list_campaigns` and `get_campaign_details` for everything you've ever sent. The output of these tools is then fed into a vector store, creating a searchable history of your marketing activities. Now you can ask your agent, 'Which campaigns last quarter mentioned our new feature?' It will query the indexed data to find the answer, grounded in actual results from the Maropost API. You're not just executing tasks; you're building institutional knowledge.
Build a RAG App on Your Contacts
Use this MCP Server to combine live Maropost data with your documents in a LlamaIndex RAG application. Your agent can use `list_lists` and `list_contacts_in_list` to fetch and index your audience segments. You can then ask complex questions that require joining this data with other sources. For example: 'Summarize the support tickets for contacts on the VIP list.' The agent uses the `list_contacts_in_list` tool to get the VIPs from Maropost, then looks up their tickets in your Zendesk index. It's a powerful way to get a complete customer view.
Query Your Automation Logic
Stop clicking through UI menus to understand your marketing automation. Have your LlamaIndex agent call `list_workflows` and `get_workflow_details` to index the structure of every workflow in your Maropost account. This creates a queryable map of your automation logic. Once indexed, you can ask plain-English questions like, 'Which workflows send an email after a cart is abandoned?' or 'Show me all workflows that use the `new_subscriber` tag.' Your agent finds the answer from its knowledge base, saving you hours of manual auditing.
Set up Maropost MCP in LlamaIndex
Prerequisites
- Python 3.10+ installed
-
llama-index-tools-mcppackage - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install llama-index-tools-mcp llama-index-llms-openai. The MCP tools package providesBasicMCPClientandMcpToolSpec. - 2
Connect with BasicMCPClient
Point
BasicMCPClientto your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. Supports SSE and Streamable HTTP transports. - 3
Convert to LlamaIndex tools
Call
mcp_tool_spec.to_tool_list_async()to convert all Maropost MCP tools into nativeFunctionToolobjects that any LlamaIndex agent can use. - 4
Run with any LLM
Create a
FunctionAgentwith the tools and your preferred LLM. SwapOpenAIforAnthropic,Gemini, or any LlamaIndex-supported provider.
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
# Connect to the MCP
mcp_client = BasicMCPClient(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
)
mcp_tool_spec = McpToolSpec(client=mcp_client)
# Convert MCP tools to LlamaIndex tools
tools = await mcp_tool_spec.to_tool_list_async()
# Create and run the agent
agent = FunctionAgent(
tools=tools,
llm=OpenAI(model="gpt-4o"),
system_prompt="You have access to Maropost tools.",
)
response = await agent.run("List recent Maropost data") Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Maropost. 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 Maropost MCP in LlamaIndex
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Maropost MCP today
We host it, we monitor it, we maintain it. You just paste one token.