How to Use the eSputnik MCP in LlamaIndex
Turn your eSputnik marketing data into a searchable knowledge base. Ask your LlamaIndex app questions, get answers from your own data.
Works with every AI agent you already use
…and any MCP-compatible client
Connect eSputnik MCP to LlamaIndex
Create your Vinkius account to connect eSputnik 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 Contacts for RAG
Give your LlamaIndex agent the tools to build a real-time index of your customer base. Your agent can periodically run `list_contacts` and `get_contact` to pull data from eSputnik. It then embeds and indexes this information into a vector store. Now you can ask questions in plain English, like "show me all contacts in the 'Power Users' group who joined last month." LlamaIndex retrieves the relevant contacts from its index and uses the LLM to synthesize an answer. It's not just data retrieval; it's data understanding.
Analyze Campaign Performance with LlamaIndex
This MCP server lets your agent ingest and analyze marketing outcomes. By calling `get_message_status` for recent campaigns and indexing the results, your agent builds a historical record of what works and what doesn't. You can then query this index to spot trends. Ask, "what was the open rate for the last three SMS campaigns sent via `send_smart_send`?" Your agent can pull the indexed status data and calculate the answer, grounding its response in actual performance metrics.
Create Dynamic Segments via Query
Combine LlamaIndex's query power with eSputnik's action tools. First, you ask your agent a complex question about your users, which it answers by querying its indexed knowledge of your contacts and groups. Based on the answer, the agent can formulate a plan. It can use `search_contacts` to get fresh IDs for the users it identified, then use `attach_to_group` to put them into a new, hyper-specific segment for a targeted campaign. Your natural language query just created a new marketing audience.
Set up eSputnik 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 eSputnik 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 eSputnik tools.",
)
response = await agent.run("List recent eSputnik data") Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by eSputnik. 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 eSputnik MCP in LlamaIndex
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the eSputnik MCP today
We host it, we monitor it, we maintain it. You just paste one token.