Loading...

This MCP server provides tools to interact with Elasticsearch/OpenSearch, enabling document searching, index management, and cluster administration with configurable security.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
This MCP server provides tools to interact with Elasticsearch/OpenSearch, enabling document searching, index management, and cluster administration with configurable security.
This server's safety depends heavily on configuration. Disabling high-risk operations and setting a strong MCP_API_KEY are crucial for secure deployments. The general API request tool should be used with caution due to its potential for arbitrary actions.
Performance depends on the size and complexity of the Elasticsearch/OpenSearch cluster, as well as the efficiency of the queries. Consider optimizing queries and indexing strategies for large datasets.
Cost is primarily associated with Elasticsearch/OpenSearch cluster resources (CPU, memory, storage) and any associated cloud service fees. API calls themselves are typically low-cost.
uvx elasticsearch-mcp-server-es7MCP_API_KEYgeneral_api_requestPerforms a general HTTP API request to Elasticsearch/OpenSearch.
Allows execution of arbitrary API calls, potentially leading to data breaches or system compromise.
list_indicesLists all indices in the Elasticsearch/OpenSearch cluster.
Read-only operation that does not modify any data.
get_indexRetrieves information about one or more indices.
Read-only operation that retrieves index metadata.
create_indexCreates a new index in Elasticsearch/OpenSearch.
Creates a new index, which could impact cluster performance or storage.
delete_indexDeletes an index from Elasticsearch/OpenSearch.
Deletes an index and all its data, resulting in permanent data loss.
search_documentsSearches for documents within Elasticsearch/OpenSearch.
Read-only operation that retrieves documents based on a query.
index_documentCreates or updates a document in the index.
Modifies data within an index, potentially overwriting existing documents.
get_documentRetrieves a document by its ID.
Read-only operation that retrieves a specific document.
delete_documentDeletes a document by its ID.
Deletes a specific document, resulting in data loss.
delete_by_queryDeletes documents matching the provided query.
Deletes documents based on a query, potentially resulting in significant data loss.
get_cluster_healthReturns basic information about the health of the cluster.
Read-only operation that retrieves cluster health status.
get_cluster_statsReturns a high-level overview of cluster statistics.
Read-only operation that retrieves cluster statistics.
list_aliasesLists all aliases in the Elasticsearch/OpenSearch cluster.
Read-only operation that does not modify any data.
get_aliasGet alias information for a specific index.
Read-only operation that retrieves alias metadata.
put_aliasCreate or update an alias for a specific index.
Creates or updates an alias, which could impact query routing.
delete_aliasDelete an alias for a specific index.
Deletes an alias, potentially breaking existing queries.
analyze_textAnalyze text using a specified analyzer or custom analysis chain.
Read-only operation that analyzes text without modifying data.
create_data_streamCreate a new data stream (requires matching index template).
Creates a new data stream, which could impact cluster performance or storage.
get_data_streamGet information about one or more data streams.
Read-only operation that retrieves data stream metadata.
delete_data_streamDelete one or more data streams and their backing indices.
Deletes one or more data streams and their backing indices, resulting in permanent data loss.
API Key|Environment Variable
hybrid
This server's safety depends heavily on configuration. Disabling high-risk operations and setting a strong MCP_API_KEY are crucial for secure deployments. The general API request tool should be used with caution due to its potential for arbitrary actions.
Autonomy is determined by the enabled tools and the permissions of the Elasticsearch/OpenSearch user. Exercise caution when granting access to destructive tools.
Production Tip
Monitor Elasticsearch/OpenSearch cluster health and resource usage to ensure optimal performance.
Always set the MCP_API_KEY environment variable for HTTP transports. Disable high-risk operations if write access is not required.
The server supports Elasticsearch 7.x, 8.x, 9.x and OpenSearch 1.x, 2.x, 3.x. Use the appropriate server variant for your Elasticsearch version.
Set the DISABLE_HIGH_RISK_OPERATIONS environment variable to true.
Yes, use the DISABLE_OPERATIONS environment variable to specify a comma-separated list of operations to disable.
The server supports basic authentication (username/password) and API key authentication for Elasticsearch/OpenSearch. For the MCP server itself, it supports API key authentication via the MCP_API_KEY environment variable.
Use the ELASTICSEARCH_HOSTS/OPENSEARCH_HOSTS environment variable to specify the host(s). You can also configure SSL verification and request timeouts.
It allows you to execute any Elasticsearch/OpenSearch API call that is not covered by a dedicated tool. Use with caution as it can perform arbitrary actions.