Home / MCP / Elasticsearch MCP Server
Spring-based MCP server for processing data workflows and indexing results into Elasticsearch.
Configuration
View docs{
"mcpServers": {
"elasticsearch": {
"command": "java",
"args": [
"-Dusername=YOUR_USERNAME",
"-Dpassword=YOUR_PASSWORD",
"-jar",
"/path/to/your/mcp-server.jar"
]
}
}
}You run an Elasticsearch MCP Server to process data workflows via MCP tools and index results in an Elasticsearch cluster. This server lets you define processing steps once and call them through standard MCP clients to retrieve searchable results from Elasticsearch.
You interact with the Elasticsearch MCP Server through an MCP client. After you start the server, the client can invoke defined tools to perform actions such as checking cluster health, retrieving statistics, querying mappings, indexing or searching documents, and examining shard allocations. The server exposes these capabilities as MCP tools, so you can build automated data processing flows that reach into Elasticsearch and return structured results for further processing or display in your application.
Install prerequisites and prepare your environment before starting the server.
Step-by-step setup and usage details are provided below to help you run a local development instance and connect a client to perform data processing against Elasticsearch.
Returns basic information about the status of the Elasticsearch cluster.
Retrieves comprehensive cluster statistics including cluster name, UUID, status, node roles, OS and JVM resource usage, index count, and shard metrics.
Retrieves field mapping information for a specific Elasticsearch index.
Retrieves a list of all indices in Elasticsearch.
Retrieves a list of indices that match the specified index name or wildcard pattern.
Retrieves a list of all aliases in Elasticsearch.
Retrieves a list of aliases that match the specified alias name or wildcard pattern.
Searches for documents within an Elasticsearch index using AI-generated queryDSL.
Returns information about shard allocation in the Elasticsearch cluster.
Returns information about shard allocation for a specific node in the Elasticsearch cluster.