Elasticsearch/OpenSearch MCP Server
by cr7258
This is a Model Context Protocol (MCP) server implementation for interacting with Elasticsearch and OpenSearch. It enables searching documents, analyzing indices, and managing clusters through a set of tools.
Last updated: N/A
What is Elasticsearch/OpenSearch MCP Server?
This server is a Model Context Protocol (MCP) implementation that allows users to interact with Elasticsearch and OpenSearch clusters. It provides a set of tools to manage indices, documents, and the cluster itself.
How to use Elasticsearch/OpenSearch MCP Server?
The server can be used with Claude Desktop via Smithery, uvx, or uv. Configuration involves setting environment variables for Elasticsearch/OpenSearch host, username, and password. Example configurations are provided in the README. It can also be used with Anthropic MCP Client.
Key features of Elasticsearch/OpenSearch MCP Server
Index Operations (list, get, create, delete)
Document Operations (search, index, get, delete, delete by query)
Cluster Operations (get cluster health, get cluster stats)
Alias Operations (list, get, put, delete)
Use cases of Elasticsearch/OpenSearch MCP Server
Searching for specific documents within an Elasticsearch/OpenSearch index.
Analyzing the structure and settings of indices.
Managing the health and statistics of an Elasticsearch/OpenSearch cluster.
Creating and managing aliases for indices.
Integrating Elasticsearch/OpenSearch with Claude Desktop for natural language interaction.
FAQ from Elasticsearch/OpenSearch MCP Server
How do I configure the server?
How do I configure the server?
Copy the .env.example
file to .env
and update the values with your Elasticsearch/OpenSearch credentials.
How do I start the Elasticsearch/OpenSearch cluster?
How do I start the Elasticsearch/OpenSearch cluster?
Use Docker Compose with the provided docker-compose-elasticsearch.yml
or docker-compose-opensearch.yml
files.
What are the default credentials?
What are the default credentials?
Elasticsearch: username elastic
, password test123
. OpenSearch: username admin
, password admin
.
How do I install the server for Claude Desktop?
How do I install the server for Claude Desktop?
You can install it via Smithery using the command npx -y @smithery/cli install elasticsearch-mcp-server --client claude
or by configuring Claude Desktop's config file with uvx or uv.
How can I interact with my Elasticsearch/OpenSearch cluster through Claude?
How can I interact with my Elasticsearch/OpenSearch cluster through Claude?
Use natural language commands like "List all indices in the cluster", "How old is the student Bob?", or "Show me the cluster health status".