Skip to content
InfratoApp
InfratoApp / Resources / MCP servers / elasticsearch-mcp-server

elasticsearch-mcp-server

elasticsearch-mcp-server is an MCP server, listed under databases. It reaches elasticsearch, opensearch, prod and staging. It needs ELASTICSEARCH_API_KEY, ELASTICSEARCH_PASSWORD, MCP_API_KEY, OPENSEARCH_PASSWORD, PROD_API_KEY and STAGING_PASSWORD to authenticate. Its repository has 314 GitHub stars and is licensed under Apache-2.0; we last read it on 2026-10-22.

This implementation serves as an MCP server, facilitating interaction between Elasticsearch and OpenSearch.

Install

MCP servers are packaged differently from each other -- some run via npx, some as a Docker image, some as a plain script you clone and run. elasticsearch-mcp-server’s own README did not state one plainly enough for this page to quote it rather than guess, so it will not guess. The repository below states it.

What it reaches, and what it needs

Reaches
elasticsearch, opensearch, prod, staging
Credential
ELASTICSEARCH_API_KEY, ELASTICSEARCH_PASSWORD, MCP_API_KEY, OPENSEARCH_PASSWORD, PROD_API_KEY, STAGING_PASSWORD

What it connects to

Unverified means a mention in the server’s own description, not a citation. A wrong claim here costs nothing to correct and nothing to trust yet.

Maintenance

Stars
314
State
listed
Licence
Apache-2.0
From the repository

A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.

What elasticsearch-mcp-server can do

19 tools documented in its README. An AI client calls these by name.

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
No description in the README.
get_index
No description in the README.
create_index
No description in the README.
delete_index
No description in the README.
create_data_stream
No description in the README.
get_data_stream
No description in the README.
delete_data_stream
No description in the README.
search_documents
No description in the README.
index_document
No description in the README.
get_document
No description in the README.
delete_document
No description in the README.
delete_by_query
No description in the README.
get_cluster_health
No description in the README.
get_cluster_stats
No description in the README.
list_aliases
No description in the README.
get_alias
No description in the README.
put_alias
No description in the README.
delete_alias
No description in the README.

Read from the README; names are kept only if the README contains them.

elasticsearch-mcp-server compared with similar servers

elasticsearch-mcp-server compared with the closest alternatives, by services reached, credentials, stars, last update and licence
ServerReachesNeedsStarsLast updateLicence
elasticsearch-mcp-server (this page)elasticsearch, opensearch, prod, stagingELASTICSEARCH_API_KEY, ELASTICSEARCH_PASSWORD, MCP_API_KEY, OPENSEARCH_PASSWORD, PROD_API_KEY, STAGING_PASSWORD3142026-10-19Apache-2.0
elasticsearch-mcpelasticsearch(1 shared)ES_API_KEY242025-08-04MIT
CodeGraphContextneo4jNEO4J_PASSWORD4,3602026-10-22MIT
dbhubmysql, postgres, sqliteNone listed3,7022026-10-21MIT
mcp-server-mysqlmysqlNone listed2,1732026-07-27MIT
mysql_mcp_servermysqlMYSQL_PASSWORD1,4022026-08-02MIT

Ranked by services in common with elasticsearch-mcp-server, then by stars. Figures are from each repository when we last read it.

Common questions about elasticsearch-mcp-server

What does elasticsearch-mcp-server do?
This implementation serves as an MCP server, facilitating interaction between Elasticsearch and OpenSearch.
How do I install elasticsearch-mcp-server?
Its README did not state an install command plainly enough for us to quote one, so we do not guess. The repository has the instructions: https://github.com/cr7258/elasticsearch-mcp-server
What does elasticsearch-mcp-server connect to, and what does it need?
It reaches elasticsearch, opensearch, prod and staging. The credentials we found in its source are ELASTICSEARCH_API_KEY, ELASTICSEARCH_PASSWORD, MCP_API_KEY, OPENSEARCH_PASSWORD, PROD_API_KEY and STAGING_PASSWORD.
Is elasticsearch-mcp-server official and is it maintained?
We found nothing naming it as a vendor’s official server. Its repository has 314 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-10-19.
What licence does elasticsearch-mcp-server use?
The repository declares the Apache-2.0 licence.

More MCP servers for databases

All databases entries →

Learn this on Infrato