Elasticsearch MCP Server logo

Elasticsearch MCP Server

by MCP-Mirror

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

View on GitHub

Last updated: N/A

What is Elasticsearch MCP Server?

The Elasticsearch MCP Server is a server implementation that allows interaction with an Elasticsearch cluster using the Model Context Protocol (MCP). It provides tools for searching documents, analyzing indices, and managing the cluster.

How to use Elasticsearch MCP Server?

To use the server, configure it within Claude Desktop's config file (claude_desktop_config.json) with the appropriate command, arguments, and environment variables (ELASTIC_HOST, ELASTIC_USERNAME, ELASTIC_PASSWORD). Then, restart Claude Desktop. You can then interact with Elasticsearch using natural language commands through Claude.

Key features of Elasticsearch MCP Server

  • List indices

  • Retrieve index mapping

  • Get index settings

  • Search documents using Elasticsearch Query DSL

  • Get cluster health status

  • Get cluster statistics

Use cases of Elasticsearch MCP Server

  • Searching for specific documents within an Elasticsearch index using natural language queries.

  • Analyzing the structure and configuration of Elasticsearch indices.

  • Monitoring the health and performance of an Elasticsearch cluster.

  • Integrating Elasticsearch data with Claude Desktop for enhanced data analysis and insights.

FAQ from Elasticsearch MCP Server

How do I list all indices?

Use the natural language command 'List all indices in the cluster' through Claude.

How do I check the cluster health?

Use the natural language command 'Show me the cluster health status' through Claude.

Where do I configure the server?

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

What Elasticsearch credentials do I need?

You need the Elasticsearch host URL, username, and password.

How do I start the Elasticsearch cluster?

Use Docker Compose with the command docker-compose up -d.