MCP Servers / database / Elasticsearch/OpenSearch

Elasticsearch/OpenSearch

JSON →
stdionone280database

An MCP Server for interacting with Elasticsearch and OpenSearch clusters.

Install
How to run this server
[ { "cmd": "uvx\n\nUsing", "imports": [] } ]
server path: elasticsearch-opensearch
Tools
What this server exposes
general_api_request
Perform a general HTTP API request. Use this tool for any Elasticsearch/OpenSearch API that does not have a dedicated tool.
list_indices
List all indices.
get_index
Returns information (mappings, settings, aliases) about one or more indices.
create_index
Create a new index.
delete_index
Delete an index.
create_data_stream
Create a new data stream (requires matching index template).
get_data_stream
Get information about one or more data streams.
delete_data_stream
Delete one or more data streams and their backing indices.
search_documents
Search for documents.
index_document
Creates or updates a document in the index.
get_document
Get a document by ID.
delete_document
Delete a document by ID.
delete_by_query
Deletes documents matching the provided query.
get_cluster_health
Returns basic information about the health of the cluster.
get_cluster_stats
Returns high-level overview of cluster statistics.
list_aliases
List all aliases.
get_alias
Get alias information for a specific index.
put_alias
Create or update an alias for a specific index.
delete_alias
Delete an alias for a specific index.
analyze_text
Analyze text using a specified analyzer or custom analysis chain. Useful for debugging search queries and understanding how text is tokenized.
Configuration
Environment & auth
authnone
envELASTICSEARCH_API_KEY
envPROD_API_KEY
envMCP_API_KEY
envYOUR_ELASTICSEARCH_API_KEY
Resources
Elasticsearch/OpenSearch — MCP Server · libregistry