Database · Developer Tools

Elasticsearch MCP Server logo

Elasticsearch MCP Server

cr7258/elasticsearch-mcp-server

A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction. This server enables searching documents, analyzing indices, and managing cluster through a set of tools.

Install

uvx elasticsearch-mcp-server

Client configuration

{
  "mcpServers": {
    "elasticsearch-mcp-server": {
      "command": "uvx",
      "args": [
        "elasticsearch-mcp-server"
      ],
      "env": {
        "ELASTICSEARCH_CLUSTERS": "<ELASTICSEARCH_CLUSTERS>",
        "DEFAULT_CLUSTER": "<DEFAULT_CLUSTER>"
      }
    }
  }
}

Environment variables

ELASTICSEARCH_CLUSTERSDEFAULT_CLUSTERELASTICSEARCH_CLUSTERS_FILEMCP_API_KEYDISABLE_HIGH_RISK_OPERATIONSDISABLE_OPERATIONSRESPONSE_FORMATELASTICSEARCH_HOSTSELASTICSEARCH_USERNAMEELASTICSEARCH_PASSWORDELASTICSEARCH_API_KEY
GitHub stars
119
Author
@cr7258
Category
Database, Developer Tools
License
Apache-2.0
Updated
Oct 6, 2026

Features

  • list_indices: List all indices.

Tools (20)

  • general_api_request

    Perform a general HTTP API request.

  • get_index

    Returns information (mappings, settings, aliases) about one or more indices.

  • create_index

    Create a new index.

  • delete_index

    Delete an index.

  • create_data_stream

    Create a new data stream (requires matching index template).

  • get_data_stream

    Get information about one or more data streams.

  • delete_data_stream

    Delete one or more data streams and their backing indices.

  • search_documents

    Search for documents.

  • index_document

    Creates or updates a document in the index.

  • get_document

    Get a document by ID.

  • delete_document

    Delete a document by ID.

  • delete_by_query

    Deletes documents matching the provided query.

  • get_cluster_health

    Returns basic information about the health of the cluster.

  • get_cluster_stats

    Returns high-level overview of cluster statistics.

  • get_alias

    Get alias information for a specific index.

  • put_alias

    Create or update an alias for a specific index.

  • delete_alias

    Delete an alias for a specific index.

  • analyze_text

    Analyze text using a specified analyzer or custom analysis chain.

  • DISABLE_HIGH_RISK_OPERATIONS

    Set to true to disable all write operations (default: false)

  • DISABLE_OPERATIONS

    Comma-separated list of specific operations to disable (optional, uses default write operations list if not set)

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS

Related MCP servers

More servers
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like Supabase. It connects AI assistants directly with your Supabase project and allows them to perform tasks like managing tables, fetching config, and querying data. See the full list of tools.

Database
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

MCP Toolbox for Databases is an open source Model Context Protocol (MCP) server that connects your AI agents, IDEs, and applications directly to your enterprise databases.

Database
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Query MCP is an open-source MCP server that lets your IDE safely run SQL, manage schema changes, call the Supabase Management API, and use Auth Admin SDK — all with built-in safety controls.

Database
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

This is a continuously updated curated list of MCP servers, covering categories such as browser control, arts and culture, cloud platforms, command line, communication, customer data platforms, databases, developer tools, data science tools, file systems, finance and fintech, gaming, knowledge and memory, location services, marketing, monitoring, search and utilities. Each project includes a GitHub link and star count for quick reference and use.

Database
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP is a server implementation of the Model Context Protocol for PostgreSQL databases. It provides a comprehensive API for AI agents to discover, connect to, query, and understand PostgreSQL databases through MCP's resource-oriented architecture.

Database
dbhub logo

dbhub

bytebase/dbhub

332

[!NOTE] If you need an enterprise-level database MCP server with built-in guardrails like approval flow, access control, data masking, and audit logging beyond what DBHub offers, check out Bytebase.

Database