AE

awesimon/elasticsearch-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

24 stars 9 forks 品質 68 トレンド 10MIT

マッピング管理、検索、インデックス管理など、利用可能な機能を備えた Elasticsearch MCP サーバー.

概要

MCPの特長 任意のMCPクライアントから直接あなたのElasticsearchクラスターに接続するためのサーバー(Claudeデスクトップ、カーソル)。 このサーバーは、モデルコンテキストプロトコルを使用して、エージェントをElasticsearchデータに接続します。 自然な言語の会話を通してあなたのElasticsearchの徴候と相互作用することを可能にします。 * Elasticsearch health: Elasticsearch クラスターの健康状態を、任意に索引レベルの細部を含んで得て下さい * list indices: 利用可能な Elasticsearch インデックス、サポート regex * create index: オプションの設定とマッピングで Elasticsearch インデックスを作成する * reindex: ソースのインデックスから、オプションのクエリとスクリプトで対象のインデックスにデータを再インデックスする * get mappings: 特定の Elasticsearch インデックスのフィールドマッピングを取得する * create mapping: Elasticsearch インデックスのマッピング構造の作成または更新 * 検索:提供されたクエリDSL *バルクでElasticsearch検索を実行します:バルクデータからElasticsearchインデックス * create index template: インデックステンプレートの作成または更新 *...

概要(AI 翻訳)

日本語 English

MCPの特長 任意のMCPクライアントから直接あなたのElasticsearchクラスターに接続するためのサーバー(Claudeデスクトップ、カーソル)。

このサーバーは、モデルコンテキストプロトコルを使用して、エージェントをElasticsearchデータに接続します。 自然な言語の会話を通してあなたのElasticsearchの徴候と相互作用することを可能にします。

デモ

機能概要

利用できる特徴

####クラスタ管理

  • elasticsearch_health: Elasticsearch クラスター健康状態を取得する, インデックスレベルの詳細を含むオプションで
インデックス操作
  • list_indices: 利用可能なリスト Elasticsearch インデックス、サポート regex
  • create_index: 任意設定とマッピングでElasticsearchインデックスを作成する
  • reindex: ソースのインデックスから、オプションのクエリとスクリプトで対象のインデックスにデータをリインデックスする
マッピング管理
  • get_mappings: 特定の Elasticsearch インデックスのフィールドマッピングを取得する
  • create_mapping: Elasticsearch インデックスのマッピング構造の作成または更新

####検索&データ操作

  • [search:提供されたクエリDSLでElasticsearch検索を実行します
  • bulk: Elasticsearch インデックスへの一括データ

テンプレート管理

  • create_index_template: インデックステンプレートの作成または更新

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Elasticsearch MCP Server

English | 中文

MCP Server for connecting to your Elasticsearch cluster directly from any MCP Client (like Claude Desktop, Cursor).

This server connects agents to your Elasticsearch data using the Model Context Protocol. It allows you to interact with your Elasticsearch indices through natural language conversations.

Demo

Feature Overview

Available Features

Cluster Management

  • elasticsearch_health: Get Elasticsearch cluster health status, optionally including index-level details

Index Operations

  • list_indices: List available Elasticsearch indices, support regex
  • create_index: Create Elasticsearch index with optional settings and mappings
  • reindex: Reindex data from a source index to a target index with optional query and script

Mapping Management

  • get_mappings: Get field mappings for a specific Elasticsearch index
  • create_mapping: Create or update mapping structure for an Elasticsearch index

Search & Data Operations

  • search: Perform an Elasticsearch search with the provided query DSL
  • bulk: Bulk data into an Elasticsearch index

Template Management

  • create_index_template: Create or update an index template
  • get_index_template: Get information about index templates
  • delete_index_template: Delete an index template

How It Works

  1. The MCP Client analyzes your request and determines which Elasticsearch operations are needed.
  2. The MCP server carries out these operations (listing indices, fetching mappings, performing searches).
  3. The MCP Client processes the results and presents them in a user-friendly format.

Getting Started

Prerequisites

  • An Elasticsearch instance
  • Elasticsearch authentication credentials (API key or username/password)
  • MCP Client (e.g. Claude Desktop, Cursor)

Installation & Setup

Using the Published NPM Package

[!TIP] The easiest way to use Elasticsearch MCP Server is through the published npm package.

  1. Configure MCP Client

    • Open your MCP Client. See the list of MCP Clients, here we are configuring Claude Desktop.
    • Go to Settings > Developer > MCP Servers
    • Click Edit Config and add a new MCP Server with the following configuration:
    {
      "mcpServers": {
        "elasticsearch-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@awesome-ai/elasticsearch-mcp"
          ],
          "env": {
            "ES_HOST": "your-elasticsearch-host",
            "ES_API_KEY": "your-api-key"
          }
        }
      }
    }
    
  2. Start a Conversation

GitHub で README 全文を見る

インストール

npx -y @awesome-ai/elasticsearch-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "elasticsearch-mcp": { "command": "npx", "args": [ "-y", "@awesome-ai/elasticsearch-mcp" ], "env": { "ES_HOST": "your-elasticsearch-host", "ES_API_KEY": "your-api-key" } } } }