AE

awesimon/elasticsearch-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

24 stars 9 forks 품질 68 트렌드 10MIT

Elasticsearch MCP server with available features including mappings management, search and indexing, and index management etc.

개요

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. * elasticsearch_health: Get Elasticsearch cluster health status, optionally including index-level details * 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 * get_mappings: Get field mappings for a specific Elasticsearch index * create_mapping: Create or update mapping structure for an Elasticsearch index * search: Perform an Elasticsearch search with the provided query DSL * bulk: Bulk data into an Elasticsearch index * create_index_template: Create or update an index template *...

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" } } } }