Skip to main content
Glama

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マッピング情報
    • フィールド名、タイプ、構成
    • メタデータから自動的に検出

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ファイルをご覧ください。

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

LLM が Elasticsearch クラスターと対話し、インデックスを管理し、自然言語を使用して検索クエリを実行できるようにするモデル コンテキスト プロトコル サーバー。

  1. コンポーネント
    1. ツール
    2. リソース
  2. Claude Desktopでの使用
    1. コンテナを実行するためのDockerワンライナー:
      1. ライセンス

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          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.
          Last updated -
          6
          157
          Python
          Apache 2.0
          • Apple
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables LLMs to perform web searches using Google's Custom Search API through a standardized interface.
          Last updated -
          1
          23
          TypeScript
          MIT License
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables LLMs to interact directly with MongoDB databases, allowing users to query collections, inspect schemas, and manage data through natural language.
          Last updated -
          340
          TypeScript
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.
          Last updated -
          TypeScript
          MIT License
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/da1y/mcp-server-elasticsearch'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server