silbaram/elasticsearch-mcp-server
If you are the rightful owner of elasticsearch-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Elasticsearch MCP Server is a Spring AI MCP-based application designed for efficient data processing and search operations within an Elasticsearch cluster.
The Elasticsearch Model Context Protocol (MCP) Server is a robust server application built on the Spring AI MCP framework. It facilitates the definition of diverse data processing workflows through MCP, enabling seamless indexing and searching of results in an Elasticsearch cluster. The server is designed to integrate effortlessly with Elasticsearch, leveraging its capabilities to perform cluster health checks, index mapping lookups, and document searches. With a focus on scalability, the server's modular architecture allows for easy management of client settings across different Elasticsearch versions and the addition of new tools or external integrations. This makes it an ideal solution for organizations looking to streamline their data processing and search operations using Elasticsearch.
Features
- Automatic MCP Tool Registration and Execution
- Elasticsearch Cluster Integration
- Scalable Architecture
Usages
usage with Claude Desktop
{ "mcpServers": { "elasticsearch-server": { "command": "java", "args": [ "-Dusername=YOUR_USERNAME", "-Dpassword=YOUR_PASSWORD", "-jar", "/path/to/your/mcp-server.jar" ] } } }
Tools
get_cluster_health
Returns basic information about the status of the Elasticsearch cluster.
get_cluster_statistics
Retrieves comprehensive cluster statistics including cluster name, UUID, status, node roles, OS and JVM resource usage, index count, and shard metrics.
get_cat_mappings
Retrieves field mapping information for a specific Elasticsearch index.
get_cat_indices
Retrieves a list of all indices in Elasticsearch.
get_cat_indices_by_name
Retrieves a list of indices that match the specified index name or wildcard pattern.
get_cat_aliases
Retrieves a list of all aliases in Elasticsearch.
get_cat_aliases_by_name
Retrieves a list of aliases that match the specified alias name or wildcard pattern.
get_document_search_by_index
Searches for documents within an Elasticsearch index using AI-generated queryDSL.
get_shard_allocation
Returns information about shard allocation in the Elasticsearch cluster.
get_shard_allocation_for_node
Returns information about shard allocation for a specific node in the Elasticsearch cluster.