mcp-elasticsearch

sonirico/mcp-elasticsearch

3.2

If you are the rightful owner of mcp-elasticsearch and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP Elasticsearch Server provides a standardized interface for querying Elasticsearch clusters, enabling seamless integration with AI assistants and other MCP clients.

The MCP Elasticsearch Server is a robust solution designed to facilitate the integration of Elasticsearch capabilities into AI assistants and other MCP clients. It offers a standardized interface for querying Elasticsearch clusters, allowing users to perform complex searches, manage indices, and retrieve schema information with ease. The server supports multiple authentication methods, ensuring secure access to Elasticsearch resources. With features like advanced search capabilities, structured JSON responses, and performance monitoring, the MCP Elasticsearch Server is an essential tool for developers and data analysts who rely on Elasticsearch for data retrieval and analysis. Its context-aware search execution ensures efficient query handling, making it a reliable choice for high-demand environments.

Features

  • Multiple Authentication Methods: Supports API key and username/password authentication for secure access.
  • Index Management: Allows listing of indices with health status and document counts.
  • Schema Discovery: Enables retrieval of field mappings to understand index structure.
  • Advanced Search: Facilitates execution of complex Elasticsearch queries with aggregations and sorting.
  • Performance Monitoring: Tracks query execution time for performance insights.

Usages

usage with claude desktop

{
  "mcpServers": {
    "elasticsearch": {
      "command": "mcp-elasticsearch",
      "env": {
        "ES_URL": "https://your-cluster.com",
        "ES_API_KEY": "your-api-key",
        "MCP_ES_LOG_LEVEL": "info"
      }
    }
  }
}

usage with apmentor

{
  "mcpServers": {
    "elasticsearch-go": {
      "command": "/usr/local/bin/mcp-elasticsearch",
      "env": {
        "ES_URL": "https://atani.es.eu-west-1.aws.found.io",
        "ES_API_KEY": "your-api-key",
        "MCP_ES_LOG_LEVEL": "info"
      }
    }
  }
}

Tools

  1. list_indices

    List all Elasticsearch indices with optional pattern filtering.

  2. get_index_mappings

    Get field mappings for one or more Elasticsearch indices.

  3. search

    Execute Elasticsearch search queries with full DSL support.