Elasticsearch/OpenSearch
JSON →An MCP Server for interacting with Elasticsearch and OpenSearch clusters.
Install
uvx
Using Tools · 20
- 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.
Environment variables
ELASTICSEARCH_API_KEYPROD_API_KEYMCP_API_KEYYOUR_ELASTICSEARCH_API_KEY
Links
★ 280 GitHub stars