How to Use the LlamaIndex (AI Data Framework & RAG) MCP in LlamaIndex
Build self-indexing LlamaIndex agents that query remote RAG pipelines and index the results for semantic search.
Works with every AI agent you already use
…and any MCP-compatible client
Connect LlamaIndex (AI Data Framework & RAG) MCP to LlamaIndex
Create your Vinkius account to connect LlamaIndex (AI Data Framework & RAG) 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 active pipeline outputs into your local agent
This integration lets your local LlamaIndex agent query remote RAG pipelines and feed those results straight into a local vector index. By using `query_pipeline`, the agent pulls fresh, grounded data from LlamaCloud and immediately indexes the output, making past queries searchable in future agent loops. You can also use `list_files` to monitor which source files are currently ingested. This allows your LlamaIndex agent to verify what documents are live before deciding to trigger a new search or update its internal knowledge base.
Manage remote LlamaCloud projects through your agent
Give your LlamaIndex agent administrative control over your remote data pipelines. Using `list_projects` and `list_pipelines`, your agent can discover active projects, check their configurations with `get_pipeline`, and select the most relevant index to query without manual intervention. This turns your LlamaIndex agent into an active manager of your data. Instead of hardcoding pipeline IDs, the agent inspects the available resources dynamically using this MCP Server and adapts its search strategy based on what it finds.
Secure your LlamaIndex agent with tool filtering
You do not have to expose every tool to your agent. Use the `allowed_tools` filter in the MCP tool spec to restrict access to read-only operations like `query_pipeline` or `list_indexes`, keeping management tools like pipeline configuration hidden. This ensures your LlamaIndex agent stays focused on retrieving information. It prevents accidental configuration changes while still giving the model access to the exact data sources it needs to answer user queries.
Set up LlamaIndex (AI Data Framework & RAG) 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 LlamaIndex (AI Data Framework & RAG) 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 LlamaIndex (AI Data Framework & RAG) tools.",
)
response = await agent.run("List recent LlamaIndex (AI Data Framework & RAG) data") Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by LlamaIndex. 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 LlamaIndex (AI Data Framework & RAG) MCP in LlamaIndex
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the LlamaIndex (AI Data Framework & RAG) MCP today
We host it, we monitor it, we maintain it. You just paste one token.