elasticsearch-mcp-server

This repository provides an Elasticsearch Model Context Protocol (MCP) server implementation, enabling document searching, index analysis, and cluster management through a set of tools. It offers functionalities like listing indices

112
8

Elasticsearch MCP Server

smithery badge

This repository hosts an Elasticsearch Model Context Protocol (MCP) server, facilitating interaction with Elasticsearch clusters. It allows users to search documents, analyze indices, and manage the cluster using natural language commands through tools like Claude Desktop.

<a href="https://glama.ai/mcp/servers/b3po3delex"><img width="380" height="200" src="https://glama.ai/mcp/servers/b3po3delex/badge" alt="Elasticsearch MCP Server" /></a>

Features

The server provides several key features:

Index Operations

  • list_indices: Retrieves a list of all indices.
  • get_mapping: Fetches the mapping configuration for a specified index.
  • get_settings: Obtains the settings configuration for an index.

Document Operations

  • search_documents: Enables document searching using Elasticsearch Query DSL.

Cluster Operations

  • get_cluster_health: Provides the cluster's health status.
  • get_cluster_stats: Returns statistical information about the cluster.

Usage with Claude Desktop

The server can be integrated with Claude Desktop using Smithery, uvx, or uv. Configuration examples are provided for each method, including necessary environment variables like ELASTIC_HOST, ELASTIC_USERNAME, and ELASTIC_PASSWORD. After configuration, users can interact with Elasticsearch using natural language queries.

License

Licensed under Apache License Version 2.0.

Repository

CR
cr7258

cr7258/elasticsearch-mcp-server

Created

January 9, 2025

Updated

March 28, 2025

Language

Python

Category

Search & Knowledge