Elasticsearch Integration
STDIOMCP server for Elasticsearch clusters, enabling LLMs to manage indices and execute queries.
MCP server for Elasticsearch clusters, enabling LLMs to manage indices and execute queries.
A Model Context Protocol server for Elasticsearch clusters. Enables LLMs to manage indices and execute queries.
IMPORTANT NOTE : this was built mainly by feeding examples to claude from the postgres mcp server.
search
index
(string): Target index namequery
(object): Elasticsearch query DSLcreate_index
index
(string): Index namemappings
(object, optional): Index mappings configurationsettings
(object, optional): Index settings configurationlist_indices
index_document
index
(string): Target index nameid
(string, optional): Document IDdocument
(object): Document contentThe server provides mapping information for each index:
elasticsearch://<host>/<index>/schema
)
Add to the "mcpServers" section of your claude_desktop_config.json
:
{ "mcpServers": { "elasticsearch": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-elasticsearch", "http://localhost:9200" ] } } }
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:8.11.3
Replace the URL with your Elasticsearch endpoint.
Licensed under MIT License. Free to use, modify, and distribute. See LICENSE file for details.