LlamaCloud MCP Server logo

LlamaCloud MCP Server

by run-llama

The LlamaCloud MCP Server connects to multiple managed indexes on LlamaCloud. It creates multiple tools, each connected to a specific managed index, defined through command-line arguments.

View on GitHub

Last updated: N/A

What is LlamaCloud MCP Server?

The LlamaCloud MCP Server is a TypeScript-based server that creates multiple tools, each connected to a specific managed index on LlamaCloud. It allows you to query different LlamaCloud indexes through a single MCP server.

How to use LlamaCloud MCP Server?

To use the server, you need to configure your MCP client (e.g., Claude Desktop, Windsurf, or Cursor) with the provided JSON configuration. This configuration specifies the command to run the server and the arguments to define the tools (indexes and descriptions). You also need to set the LLAMA_CLOUD_PROJECT_NAME and LLAMA_CLOUD_API_KEY environment variables.

Key features of LlamaCloud MCP Server

  • Creates a separate tool for each index you define.

  • Each tool provides a query parameter to search its specific index.

  • Auto-generates tool names based on index names.

  • Supports multiple indexes through command-line arguments.

Use cases of LlamaCloud MCP Server

  • Querying multiple LlamaCloud indexes from a single MCP client.

  • Accessing different datasets stored in LlamaCloud through individual tools.

  • Building AI applications that need to retrieve information from various sources.

  • Integrating LlamaCloud indexes with tools like Claude for enhanced functionality.

FAQ from LlamaCloud MCP Server

How do I define multiple tools?

You can define multiple tools by providing pairs of --index and --description arguments in the args array of the MCP config.

Where can I find the MCP config for Claude?

The MCP config for Claude can be found at ~/Library/Application Support/Claude/claude_desktop_config.json on MacOS and %APPDATA%/Claude/claude_desktop_config.json on Windows.

How do I use the development version of the server?

Replace npx @llamaindex/mcp-server-llamacloud with node ./build/index.js in your MCP config.

How do I debug the server?

Use the MCP Inspector by running npm run inspector. This will provide a URL to access debugging tools in your browser.

What is LlamaCloud?

LlamaCloud is a managed service for indexing and querying data using LlamaIndex.