How to Use the AppsFlyer (Pull API) MCP in LlamaIndex
Turn your AppsFlyer data into a queryable knowledge base with LlamaIndex. Ask questions, get answers grounded in real metrics.
Works with every AI agent you already use
…and any MCP-compatible client
Connect AppsFlyer (Pull API) MCP to LlamaIndex
Create your Vinkius account to connect AppsFlyer (Pull API) 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 Campaign Reports
Use the AppsFlyer (Pull API) tools to fetch your marketing data. The `get_daily_report` and `get_partners_report` tools don't just return data—LlamaIndex ingests their output directly into a vector index. Now you can ask natural language questions like, "how did my campaigns in Germany perform last week?" Your agent queries the indexed data from past `get_geo_report` calls to give you an answer based on facts, not a guess.
Build RAG on Top of Raw Install Data with LlamaIndex
Pull raw data using `get_installs_report` and `get_in_app_events_report`. LlamaIndex can chunk and index these detailed logs, turning thousands of rows of raw attribution data into a searchable resource for your agent. This lets you investigate complex issues with simple questions. Ask "show me installs from media source X that didn't trigger the 'purchase' event" and your agent can synthesize an answer by querying the indexed raw data. It connects the dots for you.
Create a Historical Performance Index
This isn't just for one-off queries. Schedule your LlamaIndex agent to run `get_daily_report` and `get_uninstalls_report` every day. Each report's output is added to your knowledge base via this MCP server. Over time, you build a rich, historical index of your app's performance. You can then ask your agent to compare Q1 performance to Q2, or track uninstall rates over six months, and get answers grounded in your actual AppsFlyer data history.
Set up AppsFlyer (Pull API) 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 AppsFlyer (Pull API) 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 AppsFlyer (Pull API) tools.",
)
response = await agent.run("List recent AppsFlyer (Pull API) data") Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by AppsFlyer. 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 AppsFlyer (Pull API) MCP in LlamaIndex
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the AppsFlyer (Pull API) MCP today
We host it, we monitor it, we maintain it. You just paste one token.