Elasticsearch

Elasticsearch

Interact with your Elasticsearch indices through natural language conversations.

4.0K

5

5 Tools

Signed
Built by Docker
Requires Configuration
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

About

Elasticsearch MCP Server

Interact with your Elasticsearch indices through natural language conversations.

What is an MCP Server?

Characteristics

AttributeDetails
Docker Imagemcp/elasticsearch
Authorelastic
Repositoryhttps://github.com/elastic/mcp-server-elasticsearch
Dockerfilehttps://github.com/elastic/mcp-server-elasticsearch/blob/v0.4.0/Dockerfile
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/elasticsearch --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceApache License 2.0

Available Tools (5)

Tools provided by this ServerShort Description
esqlElasticsearch ES
get_mappingsGet ES index mappings
get_shardsGet ES shard information
list_indicesList ES indices
searchElasticsearch search DSL query

Tools Details

Tool: esql

Perform an Elasticsearch ES|QL query.

ParametersTypeDescription
querystringComplete Elasticsearch ES

This tool is read-only. It does not modify its environment.


Tool: get_mappings

Get field mappings for a specific Elasticsearch index

ParametersTypeDescription
indexstringName of the Elasticsearch index to get mappings for

This tool is read-only. It does not modify its environment.


Tool: get_shards

Get shard information for all or specific indices.

ParametersTypeDescription
indexstringoptionalOptional index name to get shard information for

This tool is read-only. It does not modify its environment.


Tool: list_indices

List all available Elasticsearch indices

ParametersTypeDescription
index_patternstringIndex pattern of Elasticsearch indices to list

This tool is read-only. It does not modify its environment.


Tool: search

Perform an Elasticsearch search with the provided query DSL.

ParametersTypeDescription
indexstringName of the Elasticsearch index to search
query_bodyobjectComplete Elasticsearch query DSL object that can include query, size, from, sort, etc.
fieldsarrayoptionalName of the fields that need to be returned (optional)

This tool is read-only. It does not modify its environment.


Use this MCP Server

{
  "mcpServers": {
    "elasticsearch": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ES_URL",
        "-e",
        "ES_API_KEY",
        "mcp/elasticsearch",
        "stdio"
      ],
      "env": {
        "ES_URL": "http://localhost:9200",
        "ES_API_KEY": "your-api-key"
      }
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Manual installation

You can install the MCP server using:

Installation for

Related servers