Skip to main content
Glama
LlamaCloud MCP Server

LlamaCloud MCP Server

by run-llama

LlamaCloud MCP サーバー

LlamaCloud上の複数の管理インデックスに接続するMCPサーバー

これは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"

10k-SEC-Tesla LlamaCloud インデックス用のツールを MCP サーバーに追加します。

発達

依存関係をインストールします:

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 を提供します。

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A 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.
    2
    5 npm
    12
    ISC
  • A
    license
    A
    quality
    D
    maintenance
    A 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.
    4
    17
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    A local MCP server that integrates with Claude Desktop, enabling RAG capabilities to provide Claude with up-to-date private information from custom LlamaCloud indices.
    225
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An 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 npm
    46
    MIT