LlamaCloud MCP Server
LlamaCloud MCP 服务器
一个 MCP 服务器连接到LlamaCloud上的多个托管索引
这是一个基于 TypeScript 的 MCP 服务器,它创建了多个工具,每个工具都连接到 LlamaCloud 上的特定托管索引。每个工具都通过命令行参数定义。
特征
工具
为您定义的每个索引创建一个单独的工具
每个工具都提供一个
query参数来搜索其特定索引根据索引名称自动生成工具名称,例如
get_information_index_name
Related MCP server: MCP Docs RAG Server
安装
要与您的 MCP 客户端(例如 Claude Desktop、Windsurf 或 Cursor)一起使用,请将以下配置添加到您的 MCP 客户端配置中:
{
"mcpServers": {
"llamacloud": {
"command": "npx",
"args": [
"-y",
"@llamaindex/mcp-server-llamacloud",
"--index",
"10k-SEC-Tesla",
"--description",
"10k SEC documents from 2023 for Tesla",
"--index",
"10k-SEC-Apple",
"--description",
"10k SEC documents from 2023 for Apple"
],
"env": {
"LLAMA_CLOUD_PROJECT_NAME": "<YOUR_PROJECT_NAME>",
"LLAMA_CLOUD_API_KEY": "<YOUR_API_KEY>"
}
}
}
}对于 Claude,MCP 配置可以在以下位置找到:
在 MacOS 上:
~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上:
%APPDATA%/Claude/claude_desktop_config.json
工具定义格式
在 MCP 配置的args数组中,您可以通过提供--index和--description参数对来定义多个工具。每对参数定义一个新工具。
例如:
--index "10k-SEC-Tesla" --description "10k SEC documents from 2023 for Tesla"向 MCP 服务器添加10k-SEC-Tesla LlamaCloud 索引工具。
发展
安装依赖项:
npm install构建服务器:
npm run build对于使用自动重建的开发:
npm run watch要使用开发版本,请在 MCP 配置中将npx @llamaindex/mcp-server-llamacloud替换为node ./build/index.js 。
调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:
npm run inspector检查器将提供一个 URL 来访问浏览器中的调试工具。
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server for search and retrieval over a local LanceDB database
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseBqualityDmaintenanceA TypeScript-based MCP server that enables LLM agents to interact with Gel databases through natural language, providing tools to learn database schemas, validate and execute EdgeQL queries.25 npm12ISC
- AlicenseAqualityDmaintenanceA TypeScript MCP server that allows querying documents using LLMs with context from locally stored repositories and text files through a RAG (Retrieval-Augmented Generation) system.417MIT
- AlicenseNot gradedqualityFmaintenanceA local MCP server that integrates with Claude Desktop, enabling RAG capabilities to provide Claude with up-to-date private information from custom LlamaCloud indices.225MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables LLMs to understand and work with TypeScript APIs they haven't been trained on by providing structured access to TypeScript type definitions and documentation.44 npm46MIT