Elasticsearch Server

elasticsearch-mcp-server

Interact with Elasticsearch for searching documents and managing clusters.

Overview

A Model Context Protocol (MCP) server implementation that provides Elasticsearch interaction. This server enables searching documents, analyzing indices, and managing the cluster through a set of tools.

Features

Index Operations

  • list_indices: List all indices in the Elasticsearch cluster.
  • get_mapping: Retrieve the mapping configuration for a specific index.
  • get_settings: Get the settings configuration for a specific index.

Document Operations

  • search_documents: Search documents in an index using Elasticsearch Query DSL.

Cluster Operations

  • get_cluster_health: Get health status of the cluster.
  • get_cluster_stats: Get statistical information about the cluster.

Usage with Claude Desktop

Add the following configuration to Claude Desktop's config file claude_desktop_config.json.

Using uvx will automatically install the package from PyPI, no need to clone the repository locally.

Option 2: Using uv with local development

Using uv requires specifying the path to the source code.

Now you can interact with your Elasticsearch cluster through Claude using natural language commands like:

  • "List all indices in the cluster"
  • "How old is the student Bob?"
  • "Show me the cluster health status"

Installation

Install Command

Integrate this tool for Claude Desktop.

Server Statistics

UsageUsed 71 times last month
LocalNo
Published1/10/2025