LlamaCloud MCP 服务器
一个 MCP 服务器连接到LlamaCloud上的多个托管索引
这是一个基于 TypeScript 的 MCP 服务器,它创建了多个工具,每个工具都连接到 LlamaCloud 上的特定托管索引。每个工具都通过命令行参数定义。
特征
工具
- 为您定义的每个索引创建一个单独的工具
- 每个工具都提供一个
query
参数来搜索其特定索引 - 根据索引名称自动生成工具名称,例如
get_information_index_name
安装
要与您的 MCP 客户端(例如 Claude Desktop、Windsurf 或 Cursor)一起使用,请将以下配置添加到您的 MCP 客户端配置中:
对于 Claude,MCP 配置可以在以下位置找到:
- 在 MacOS 上:
~/Library/Application Support/Claude/claude_desktop_config.json
- 在 Windows 上:
%APPDATA%/Claude/claude_desktop_config.json
工具定义格式
在 MCP 配置的args
数组中,您可以通过提供--index
和--description
参数对来定义多个工具。每对参数定义一个新工具。
例如:
向 MCP 服务器添加10k-SEC-Tesla
LlamaCloud 索引工具。
发展
安装依赖项:
构建服务器:
对于使用自动重建的开发:
要使用开发版本,请在 MCP 配置中将npx @llamaindex/mcp-server-llamacloud
替换为node ./build/index.js
。
调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:
检查器将提供一个 URL 来访问浏览器中的调试工具。
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
连接到LlamaCloud托管索引的 MCP 服务器。这是一个基于 TypeScript 的 MCP 服务器,实现了与 LlamaCloud 托管索引的连接。
Related Resources
Related MCP Servers
- -securityAlicense-qualityAn MCP server that enables fetching web content using the Node.js undici library, supporting various HTTP methods, content formats, and request configurations.Last updated -668TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that connects any MCP client (like Claude or Cursor) with the browser using browser-use, allowing clients to utilize existing LLMs without requiring additional API keys.Last updated -32PythonApache 2.0
- -securityAlicense-qualityAn MCP server that enables web searches using a SearxNG instance, allowing MCP-compatible applications like Goose to perform internet searches.Last updated -PythonGPL 3.0
- -securityAlicense-qualityA local MCP server that integrates with Claude Desktop, enabling RAG capabilities to provide Claude with up-to-date private information from custom LlamaCloud indices.Last updated -42PythonMIT License