LlamaCloud MCP Server Managed Index Integration
Integrate LlamaCloud's managed index with your app using the MCP server to securely query, sync, and manage stored data.
npx -y @run-llama/mcp-server-llamacloudOverview
The LlamaCloud MCP Server is a TypeScript-based Model Context Protocol (MCP) server that exposes one or more tools — each mapped to a separate managed index hosted on LlamaCloud. It runs as an MCP server process (stdio-based) so MCP-capable clients (for example Claude Desktop, Windsurf, Cursor, or other MCP clients) can load and call index-backed tools to query or retrieve documents without embedding index credentials in the client.
This server is useful when you want to centralize access to multiple LlamaCloud indexes, enforce a single API key on the server, and present simple, index-specific tool endpoints to an LLM agent. Each configured index becomes a dedicated tool with a query parameter and optional result-limiting configuration (topK).
Repository: https://github.com/run-llama/mcp-server-llamacloud
Features
- Create a separate MCP tool for every configured LlamaCloud managed index
- Per-tool query parameter to search the associated index
- Optional topK setting to limit returned results
- Auto-generated, human-readable tool names built from index names (e.g., get_information_<index_name>)
- Works with any MCP-compatible client via stdio
- Development helper scripts including a debugging Inspector
Installation / Configuration
Prerequisites:
- Node.js/npm
- A LlamaCloud API key
Install and run via npx (recommended for MCP client configs):
Example MCP client JSON config (typical for desktop MCP clients):
Environment variables:
- LLAMA_CLOUD_API_KEY (required): your LlamaCloud API key
- LLAMA_CLOUD_PROJECT_NAME (optional): defaults to
Defaultif not provided
Command-line format when running manually:
CLI option summary:
| Option | Description | ||||
|---|---|---|---|---|---|
–index | Name of the managed index on LlamaCloud (one per tool) | –description | Human-readable description for the tool | –topK | Optional: number of top results to return when querying this index | Available Tools / Resources
Helpful resources:
DevelopmentBasic local development steps: To run the locally built server from your MCP client config, replace the npx command with: Debugging:
The Inspector provides a web UI and intercepts stdio traffic so you can inspect MCP messages and tool calls during development. Use Cases
Tips and Best Practices
For details, examples, and issues, see the GitHub repository: https://github.com/run-llama/mcp-server-llamacloud |