LlamaCloud MCP Server

LlamaCloud MCP Server

site icon
2025.02.17 0
JavaScript知识库查询托管索引开发效率
LlamaCloud MCP Server 是一个基于 TypeScript 的 MCP 服务器,用于连接到 LlamaCloud 上的托管索引。该服务器提供从知识库中获取信息以回答问题的功能,适用于需要集成知识库查询能力的应用场景。
View on GitHub

Overview

基本能力

产品定位

LlamaCloud MCP Server 是一个连接 LlamaCloud 托管索引的 MCP 服务器,主要用于从知识库中获取信息以回答问题。

核心功能

  • 提供 get_information 工具,用于从知识库中获取信息以回答问题。
  • 参数:query(必需)

适用场景

  • 需要集成知识库查询能力的应用
  • 需要从托管索引中获取信息的场景

工具列表

  • get_information:从知识库中获取信息以回答问题。

常见问题解答

  • 调试建议:由于 MCP 服务器通过 stdio 通信,调试可能具有挑战性。推荐使用 MCP Inspector 进行调试。

使用教程

使用依赖

安装依赖:

npm install

安装教程

  1. 构建服务器:
npm run build
  1. 开发时自动重建:
npm run watch
  1. 与 Claude Desktop 一起使用,添加服务器配置:
  2. MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  3. Windows: %APPDATA%/Claude/claude_desktop_config.json

配置示例:

{
  "mcpServers": {
    "llamacloud": {
      "command": "node",
      "args": [
        "/path/to/llamacloud/build/index.js",
      ],
      "env": {
        "LLAMA_CLOUD_INDEX_NAME": "<YOUR_INDEX_NAME>",
        "LLAMA_CLOUD_PROJECT_NAME": "<YOUR_PROJECT_NAME>",
        "LLAMA_CLOUD_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

调试方式

使用 MCP Inspector 进行调试:

npm run inspector

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。