Elasticsearch MCP
Elasticsearch and OpenSearch MCP server with index management, document CRUD, search queries, cluster health, and aggregations. 270 stars and 22 commits on main in the last 30 days.
“Elasticsearch and OpenSearch MCP server with index management, document CRUD, search queries, cluster health, and aggregations. 270 GitHub stars and 22 commits on main in the last 30 days. Supports both Elasticsearch and OpenSearch backends.”
INSTALL THIS SERVER
{
"mcpServers": {
"elasticsearch": {
"command": "python",
"args": [
"-m",
"elasticsearch_mcp_server"
],
"env": {
"ELASTICSEARCH_HOST": "https://your-cluster:9200",
"ELASTICSEARCH_API_KEY": "<your-api-key>"
}
}
}
}
{
"mcpServers": {
"elasticsearch": {
"command": "python",
"args": [
"-m",
"elasticsearch_mcp_server"
],
"env": {
"ELASTICSEARCH_HOST": "https://your-cluster:9200",
"ELASTICSEARCH_API_KEY": "<your-api-key>"
}
}
}
}
{
"mcpServers": {
"elasticsearch": {
"command": "python",
"args": [
"-m",
"elasticsearch_mcp_server"
],
"env": {
"ELASTICSEARCH_HOST": "https://your-cluster:9200",
"ELASTICSEARCH_API_KEY": "<your-api-key>"
}
}
}
}
{
"mcpServers": {
"elasticsearch": {
"command": "python",
"args": [
"-m",
"elasticsearch_mcp_server"
],
"env": {
"ELASTICSEARCH_HOST": "https://your-cluster:9200",
"ELASTICSEARCH_API_KEY": "<your-api-key>"
}
}
}
}
{
"mcpServers": {
"elasticsearch": {
"command": "python",
"args": [
"-m",
"elasticsearch_mcp_server"
],
"env": {
"ELASTICSEARCH_HOST": "https://your-cluster:9200",
"ELASTICSEARCH_API_KEY": "<your-api-key>"
}
}
}
}
6 TOOLS AVAILABLE
OUR ASSESSMENT
- 270 GitHub stars and Apache-2.0 licence.
- 22 commits on main in the last 30 days.
- Supports both Elasticsearch and OpenSearch.
- Tool surface covers search, count, mappings, indices, cluster health, aggregations.
- Python implementation with pip install path.
- Self-hosted: operator points the MCP at their cluster.
- Authentication options vary by deployment (basic auth, API keys, mTLS).
- Aggregation tool inputs are DSL-shaped; agents trained only on standard SQL may need help with Elasticsearch DSL.
The MCP carries Elasticsearch credentials configured at startup. Scope to a read-only role for diagnostic agents. For production clusters, run the MCP in the same network segment as the Elasticsearch endpoint and avoid exposing the MCP HTTP transport to untrusted networks.
Teams running Elasticsearch or OpenSearch who want agents to query indices and run aggregations from inside the editor; SRE workflows that triage cluster health from agent prompts; multi-index search agents that need DSL passthrough.
TECHNICAL DETAILS
ADOPTION METRICS
// Reading this270 stars on the cr7258/elasticsearch-mcp-server repo. 22 commits on main in the last 30 days, second-highest cadence in this batch.
// Reading thisStrong search-engine database option to pair with the existing Postgres, MongoDB, ClickHouse, Redis entries.
SOURCES & VERIFICATION
We don't take any single directory's word for it. Before scoring, we cross-reference 4 public MCP sources, install the server ourselves against the clients we cover, and record when we last re-verified.
The same server, 4 different lenses. We reconcile these signals into our editorial score, which is why our number sometimes diverges from a directory-aggregate star count.
| Source | Their rating | Their star count | Their downloads | Last synced |
|---|---|---|---|---|
| AutomationSwitch This page | 4.4editorial | 270 | — | MAY 3, 2026 |
| PulseMCP | — unrated | unavailable | unavailable | MAY 3, 2026 |
| MCP.so | — unrated | unavailable | unavailable | MAY 3, 2026 |
| Glama | — unrated | unavailable | unavailable | MAY 3, 2026 |
| Smithery | — unrated | unavailable | unavailable | MAY 3, 2026 |
// Counts are directory-reported; we don't adjust them. Discrepancies usually come from different snapshot times or star-caching.
OTHER DATABASE MCP SERVERS
Postgres MCP
Official MCP server for PostgreSQL. Provides read and write access to PostgreSQL databases with schema introspection, query execution, and transaction support. The reference implementation for database MCP servers.
Supabase
Persistence layer with full Postgres access and Row Level Security awareness. Query tables, manage schemas, handle auth users, and work with storage buckets.
ClickHouse MCP
Official ClickHouse MCP server with both ClickHouse Tools (production cluster queries) and chDB Tools (embedded ClickHouse for local analytics). Apache-2.0 with destructive-operation protection: write access is opt-in via configuration.
Redis MCP
Official Redis MCP server with natural-language interface for managing and searching Redis data. EntraID authentication for Azure Managed Redis included; Redis ACL configurable via environment variables. Tool coverage spans strings, lists, hashes, sets, sorted sets, JSON, vectors, and search.
MindsDB
MindsDB ships native MCP server support as part of the main project (mindsdb/mindsdb, 39,093 stars). Federated query layer over 200+ data sources with built-in MCP endpoint for AI agent access to enterprise data.
MongoDB MCP Server
Vendor-built MongoDB MCP server covering both direct database operations (against any MongoDB connection string) and MongoDB Atlas API operations (via Service Accounts credentials). Ships with --readOnly enabled by default in every official install snippet.
DISCUSS YOUR
MCP REQUIREMENTS.
Evaluating a server, scoping an internal deployment, or working out whether MCP is the right fit at all. Start the conversation and we will point you at the right piece of the ecosystem.