通过自然语言对话与Elasticsearch索引进行交互

17 次收藏下载次数: 0状态:社区镜像维护者:mcp(Model Context Protocol)仓库类型:镜像最近更新:1 年前
下载命令
点击查看

Elasticsearch MCP Server

Interact with your Elasticsearch indices through natural language conversations.

https://www.anthropic.com/news/model-context-protocol

MCP Info

AttributeDetails
Docker Imagehttps://hub.docker.com/repository/docker/mcp/elasticsearch
Authorhttps://github.com/elastic
Repositoryhttps://github.com/elastic/mcp-server-elasticsearch

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/elastic/mcp-server-elasticsearch/blob/b2912b2ba544060962c7fabf38eb36cc940e9098/Dockerfile
Commitb2912b2ba544060962c7fabf38eb36cc940e9098
Docker Image built byDocker Inc.
Docker 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
indexstring optionalOptional 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.
fieldsarray optionalName of the fields that need to be returned (optional)

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


Use this MCP Server

json
{
  "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"
      }
    }
  }
}

https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/

更多相关 Docker 镜像与资源

以下是 mcp/elasticsearch 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表。

轩辕镜像加速拉取命令点我查看更多 elasticsearch 镜像标签

docker pull docker.xuanyuan.run/mcp/elasticsearch:<标签>

DockerHub 原生拉取命令

docker pull mcp/elasticsearch:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持99.95% SLA 保障付费会员免广告