Elasticsearch MCP Server logo

Elasticsearch MCP Server

by MCP-Mirror

A Model Context Protocol server for Elasticsearch clusters. It enables LLMs to manage indices and execute queries.

View on GitHub

Last updated: N/A

What is Elasticsearch MCP Server?

This is a Model Context Protocol (MCP) server designed to interface with Elasticsearch clusters. It allows Large Language Models (LLMs) to interact with Elasticsearch, enabling them to manage indices, execute search queries, and retrieve data.

How to use Elasticsearch MCP Server?

To use this server, add it to the 'mcpServers' section of your claude_desktop_config.json file, providing the command and arguments necessary to start the server, including the Elasticsearch endpoint. A sample configuration is provided in the README. Ensure Elasticsearch is running and accessible at the specified endpoint. You can use the provided Docker one-liner to quickly set up an Elasticsearch instance.

Key features of Elasticsearch MCP Server

  • Execute search queries against Elasticsearch indices

  • Create new Elasticsearch indices with optional mappings and settings

  • List all available Elasticsearch indices

  • Index documents into Elasticsearch

  • Provides mapping information for each index via a schema endpoint

Use cases of Elasticsearch MCP Server

  • Allow LLMs to search for specific information stored in Elasticsearch

  • Enable LLMs to create and manage Elasticsearch indices based on user requests

  • Facilitate data ingestion into Elasticsearch through LLM-driven workflows

  • Provide LLMs with context about the structure of Elasticsearch data for better understanding and generation

FAQ from Elasticsearch MCP Server

What is the purpose of this server?

It allows LLMs to interact with Elasticsearch clusters, enabling them to manage indices and execute queries.

How do I configure this server?

Add it to the 'mcpServers' section of your claude_desktop_config.json file, providing the command and arguments necessary to start the server, including the Elasticsearch endpoint.

What tools are available?

The server provides tools for searching, creating indices, listing indices, and indexing documents.

How do I find the schema for an index?

The server provides mapping information for each index at elasticsearch://<host>/<index>/schema.

What license is this server under?

Licensed under MIT License. Free to use, modify, and distribute.