elasticsearch-mcp-server

elasticsearch-mcp-server

147

The Elasticsearch/OpenSearch MCP Server is a Model Context Protocol server providing interaction capabilities with Elasticsearch and OpenSearch, enabling document search, index management, and cluster operations through various tools. It supports installation via Smithery and configuration for use in desktop environments like Claude Desktop.

Elasticsearch/OpenSearch MCP Server

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

Features

  • General Operations: perform general HTTP API requests to Elasticsearch/OpenSearch.
  • Index Operations: list, create, and delete indices; manage index settings.
  • Document Operations: search, index, delete documents by ID or query.
  • Cluster Operations: get health and statistics of the cluster.
  • Alias Operations: list, create, and delete aliases.

Configure Environment Variables

Copy the .env.example file to .env and update the values accordingly.

Start Elasticsearch/OpenSearch Cluster

Start using Docker Compose for Elasticsearch or OpenSearch. Access dashboards at http://localhost:5601.

Usage

  • Install via Smithery for Claude Desktop.
  • Using uvx to automatically install upon configuration.
  • Local development using uv.