mcp-elasticsearch
by AeaZer·★ 9·综合分 38
功能全面的 Elasticsearch MCP 服务器,提供完整的搜索能力和多种部署方式。
概述
这个 MCP 服务器提供了与 Elasticsearch 集群的无缝集成,包括集群操作、索引管理、文档操作、搜索功能和批量操作等完整工具集。它支持多种协议(stdio、HTTP 和已弃用的 SSE),兼容 Elasticsearch 7、8 和 9 版本。服务器可以通过 Docker、从源代码编译或集成到 Claude Desktop 和 Cursor 等桌面应用程序中,并提供全面的配置选项。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您使用 Elasticsearch 集群并需要 AI 代理通过 MCP 执行数据操作、搜索查询和集群管理时,选择此服务器。
什么时候不要选它
如果您使用的是不同的搜索引擎或需要 Elasticsearch API 不支持的专门功能,请不要选择此服务器。
此 server 暴露的工具
从 README 抽取出 12 个工具es_cluster_infoGet cluster information and version details
es_cluster_healthGet cluster health status and metrics
es_index_createCreate new indices with settings and mappings
es_index_deleteDelete existing indices
es_index_existsCheck if an index exists
es_index_listList all indices with metadata
es_document_indexIndex documents with optional ID
es_document_getRetrieve documents by ID
es_document_updateUpdate existing documents
es_document_deleteDelete documents by ID
es_searchExecute search queries with filters, sorting, and field selection
es_bulkExecute multiple operations in a single request
可对比工具
安装
安装
使用 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@latestClaude 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 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。