MCP directory
E

Elasticsearch

by github.com/TocharianOU · v0.10.0 · updated Nov 22, 2026

Elasticsearch MCP Server for ES 5.x-9.x with a query harness, field validation and full API access

npm

Run it locally

Install the package and point your AI client at it.

npm

npx -y @tocharianou/[email protected]

Environment variables

  • ES_URLrequired

    Your Elasticsearch instance URL (e.g., https://localhost:9200)

  • ES_API_KEYsecret

    Elasticsearch API key for authentication

  • ES_USERNAME

    Elasticsearch username for basic authentication

  • ES_PASSWORDsecret

    Elasticsearch password for basic authentication

  • ES_CA_CERT

    Path to custom CA certificate for Elasticsearch SSL/TLS

  • NODE_TLS_REJECT_UNAUTHORIZED

    Set to '0' to disable SSL certificate validation (development only)

  • MAX_TOKEN_CALL

    Maximum tokens per API call

npm

npx -y @tocharianou/[email protected]

Environment variables

  • MCP_TRANSPORTrequired

    Transport mode selection

  • MCP_HTTP_PORT

    HTTP server port (when using HTTP transport)

  • MCP_HTTP_HOST

    HTTP server host (when using HTTP transport)

  • MCP_BEARER_TOKENsecret

    Bearer token required on /mcp requests (recommended for any non-localhost bind)

  • ES_URLrequired

    Your Elasticsearch instance URL (e.g., https://localhost:9200)

  • ES_API_KEYsecret

    Elasticsearch API key for authentication

  • ES_USERNAME

    Elasticsearch username for basic authentication

  • ES_PASSWORDsecret

    Elasticsearch password for basic authentication

  • ES_CA_CERT

    Path to custom CA certificate for Elasticsearch SSL/TLS

  • NODE_TLS_REJECT_UNAUTHORIZED

    Set to '0' to disable SSL certificate validation (development only)

  • MAX_TOKEN_CALL

    Maximum tokens per API call

More from github.com/TocharianOU

More MCP servers