Skip to main content
Glama
mcp-elasticsearch

mcp-elasticsearch

mcp-elasticsearch

Elasticsearch MCP Server (Model Context Protocol) – nur lesender Suchzugriff.

Funktionen

Stellt nur schreibgeschützte Operationen bereit:

  • list_indices – Alle Indizes auflisten

  • get_mapping – Index-Mapping abrufen

  • search – Such-/Aggregationsabfrage ausführen

Related MCP server: Elasticsearch MCP Server

Unterstützt zwei Transportmodi

1. stdio (für lokale/eigenständige Bereitstellung)

python -m mcp_elasticsearch --transport stdio --url http://localhost:9200

2. sse (für entfernte/containerisierte Bereitstellung)

python -m mcp_elasticsearch --transport sse --host 0.0.0.0 --port 8002 --url http://elasticsearch:9200 [--api-key your-secret-key]

Umgebungsvariablen

Alle Befehlszeilenargumente können auch über Umgebungsvariablen gesetzt werden:

  • TRANSPORT – stdio oder sse (Standard: stdio)

  • HOST – Bindungs-Host für den SSE-Modus (Standard: 0.0.0.0)

  • PORT – Bindungs-Port für den SSE-Modus (Standard: 8002)

  • ELASTICSEARCH_URL – Elasticsearch-URL

  • API_KEY – Optionaler API-Schlüssel für die Client-Authentifizierung

Docker

FROM python:3.11-slim

WORKDIR /app

COPY pyproject.toml poetry.lock ./
RUN poetry install --no-dev --no-root

COPY mcp_elasticsearch/ ./mcp_elasticsearch/

EXPOSE 8002

CMD ["python", "-m", "mcp_elasticsearch"]

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    F
    maintenance
    A read-only MCP server for Elasticsearch 7.10 clusters, providing tools for cluster info, health, index listing, and Query DSL search with Google OAuth and Bearer token authentication.
    4 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server that provides tools and resources to interact with Elasticsearch clusters, including listing indices, searching, and retrieving mappings.
    3
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Read-only MCP server for Elasticsearch log querying. Enables natural language search, filtering, context retrieval, and aggregation of logs.
    -
  • A
    license
    A
    quality
    C
    maintenance
    Enables any MCP-compatible agent to query, diagnose, map, and operate Elasticsearch or OpenSearch clusters via REST, with read-only defaults and layered safety controls.
    34
    Apache 2.0