MCP Catalogs
首页

mcp-elasticsearch

by AeaZer·9·综合分 38

功能全面的 Elasticsearch MCP 服务器,提供完整的搜索能力和多种部署方式。

databasesearchdeveloper-tools
2
Forks
0
活跃 Issue
10 个月前
最近提交
2 天前
收录于

概述

这个 MCP 服务器提供了与 Elasticsearch 集群的无缝集成,包括集群操作、索引管理、文档操作、搜索功能和批量操作等完整工具集。它支持多种协议(stdio、HTTP 和已弃用的 SSE),兼容 Elasticsearch 7、8 和 9 版本。服务器可以通过 Docker、从源代码编译或集成到 Claude Desktop 和 Cursor 等桌面应用程序中,并提供全面的配置选项。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:让 LLM 助手能够查询和与 Elasticsearch 数据存储交互
:通过 AI 工具调用实现数据管理工作流程自动化
:为 AI 应用程序提供搜索功能,无需直接 API 访问
:支持哪些 Elasticsearch 版本?
:支持哪些身份验证方法?

什么时候选它

当您使用 Elasticsearch 集群并需要 AI 代理通过 MCP 执行数据操作、搜索查询和集群管理时,选择此服务器。

什么时候不要选它

如果您使用的是不同的搜索引擎或需要 Elasticsearch API 不支持的专门功能,请不要选择此服务器。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • es_cluster_info

    Get cluster information and version details

  • es_cluster_health

    Get cluster health status and metrics

  • es_index_create

    Create new indices with settings and mappings

  • es_index_delete

    Delete existing indices

  • es_index_exists

    Check if an index exists

  • es_index_list

    List all indices with metadata

  • es_document_index

    Index documents with optional ID

  • es_document_get

    Retrieve documents by ID

  • es_document_update

    Update existing documents

  • es_document_delete

    Delete documents by ID

  • es_search

    Execute search queries with filters, sorting, and field selection

  • es_bulk

    Execute multiple operations in a single request

可对比工具

opensearch-mcpsolr-mcpelasticsearch-kibana-mcppgvector-mcp

安装

安装

使用 Docker(推荐)

docker run -d -p 8080:8080 \
  -e MCP_PROTOCOL=http \
  -e ES_ADDRESSES=http://your-elasticsearch:9200 \
  ghcr.io/aeazer/mcp-elasticsearch:latest

从源代码安装

go install github.com/AeaZer/mcp-elasticsearch@latest

Claude Desktop 配置

添加到 ~/.config/claude/config.json:

{
  "mcpServers": {
    "elasticsearch": {
      "command": "mcp-elasticsearch",
      "env": {
        "ES_ADDRESSES": "http://localhost:9200",
        "ES_VERSION": "8"
      }
    }
  }
}

FAQ

支持哪些 Elasticsearch 版本?
此服务器兼容 Elasticsearch 7、8 和 9 版本。
支持哪些身份验证方法?
支持基本身份验证(用户名/密码)、API 密钥和 Elastic Cloud 身份验证。

mcp-elasticsearch 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。