Skip to main content
Glama
Elasticsearch MCP Server

Elasticsearch MCP Server

by da1y

エラスティックサーチ

Elasticsearch クラスター用のモデルコンテキストプロトコルサーバー。LLM によるインデックス管理とクエリ実行を可能にします。

重要な注意: これは主に、postgres mcp サーバーから claude に例を供給することによって構築されました。

コンポーネント

ツール

  • 検索

    • インデックスに対して検索クエリを実行する

    • 入力:

      • index (文字列): ターゲットインデックス名

      • query (オブジェクト):ElasticsearchクエリDSL

    • 検索ヒットを返す

  • インデックス作成

    • 新しいElasticsearchインデックスを作成する

    • 入力:

      • index (文字列): インデックス名

      • mappings (オブジェクト、オプション): インデックスマッピングの設定

      • settings (オブジェクト、オプション): インデックス設定の構成

  • リストインデックス

    • 利用可能なすべてのインデックスを一覧表示する

    • 入力不要

    • インデックス情報の配列を返します

  • インデックスドキュメント

    • ドキュメントのインデックス作成

    • 入力:

      • index (文字列): ターゲットインデックス名

      • id (文字列、オプション): ドキュメントID

      • document (オブジェクト): 文書の内容

    • インデックス操作の結果を返します

リソース

サーバーは各インデックスのマッピング情報を提供します。

  • インデックスマッピング( elasticsearch://<host>/<index>/schema )

    • JSONマッピング情報

    • フィールド名、タイプ、構成

    • メタデータから自動的に検出

Related MCP server: OpenSearch MCP Server

Claude Desktopでの使用

claude_desktop_config.jsonの「mcpServers」セクションに以下を追加します。

{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch",
        "http://localhost:9200"
      ]
    }
  }
}

コンテナを実行するためのDockerワンライナー:

docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:8.11.3

URL を Elasticsearch エンドポイントに置き換えます。

ライセンス

MITライセンスに基づきます。使用、改変、配布は自由です。詳細はLICENSEファイルをご覧ください。

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    A
    maintenance
    Facilitates interaction with Elasticsearch clusters by allowing users to perform index operations, document searches, and cluster management via a Model Context Protocol server and natural language commands.
    20
    314
    Apache 2.0
  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server implementation that enables natural language interactions with OpenSearch clusters, allowing users to search documents, analyze indices, and manage clusters through simple conversational commands.
    14
    11
    Apache 2.0
  • A
    license
    A
    quality
    D
    maintenance
    A comprehensive Model Context Protocol server that integrates Elasticsearch search with file operations, document validation, and version control to transform AI assistants into powerful knowledge management systems.
    27
    113 PyPI
    27
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that enables AI assistants to directly interact with Elasticsearch for searching, aggregating, and retrieving documents from indices, supporting full-text search, semantic search, and various query modes.
    17 npm
    MIT