
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that exposes Elasticsearch tools for querying indices, fetching mappings, searching documents, and reading cluster health and stats.
Elasticsearch MCP server is cataloged as an MCP server attributed to macgaf. A Model Context Protocol server that exposes Elasticsearch tools for querying indices, fetching mappings, searching documents, and reading cluster health and stats. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Elasticsearch MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The project supports both Elasticsearch 7 and 8 APIs.
It defaults to stdio, suited for clients like Claude Desktop, and also supports an SSE mode as a standalone service.
README.md · 031a30abb7cc · Fetched 2026-11-13 13:27:57 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
基于 Model Context Protocol (MCP) 的 Elasticsearch 工具服务器,提供索引查询、映射获取、搜索等功能。
其他语言版本: 🇺🇸 English | 🇫🇷 Français | 🇩🇪 Deutsch | 🇯🇵 日本語
.
├── es_mcp_server/ # 服务器代码
│ ├── __init__.py # 包初始化
│ ├── server.py # 服务器主程序
│ ├── config.py # 配置管理
│ ├── client.py # ES客户端工厂
│ └── tools.py # ES MCP工具实现
├── es_mcp_client/ # 客户端代码
│ ├── __init__.py # 包初始化
│ └── client.py # 客户端测试程序
├── test/ # 单元测试
│ ├── __init__.py # 测试包初始化
│ └── test_server.py # 服务器单元测试
├── claude_config_examples/ # Claude配置示例
│ ├── elasticsearch_stdio_config.json # stdio模式配置
│ └── elasticsearch_sse_config.json # sse模式配置
├── .vscode/ # VSCode配置
│ └── launch.json # 调试配置
├── docs/ # 文档
│ └── requires.md # 需求文档
├── pyproject.toml # 项目配置文件
├── README.md # 中文说明文档
├── README.en.md # 英文说明文档
├── README.fr.md # 法语说明文档
├── README.de.md # 德语说明文档
├── README.jp.md # 日语说明文档
├── .gitignore # Git忽略文件
└── LICENSE # MIT许可证
Elasticsearch MCP 服务器提供以下工具:
# 从PyPI安装
pip install es-mcp-server
# 或从源码安装
pip install .
# 安装开发依赖
pip install ".[dev]"
服务器通过环境变量或命令行参数进行配置:
| 环境变量 | 说明 | 默认值 |
|---|---|---|
| ES_HOST | ES 主机地址 | localhost |
| ES_PORT | ES 端口 | 9200 |
| ES_USERNAME | ES 用户名 | 无 |
| ES_PASSWORD | ES 密码 | 无 |
| ES_API_KEY | ES API 密钥 | 无 |
| ES_USE_SSL | 是否使用 SSL | false |
| ES_VERIFY_CERTS | 是否验证证书 | true |
| ES_VERSION | ES 版本 (7 或 8) | 8 |
# 使用默认配置
uvx es-mcp-server
# 自定义 ES 连接
uvx es-mcp-server --host 192.168.0.13 --port 9200 --es-version 8
# 启动 SSE 服务器
uvx es-mcp-server --transport sse --host 192.168.0.13 --port 9200
项目包含一个用于验证服务器功能的客户端程序。
# 连接到默认 SSE 服务器 (http://localhost:8000/sse)
uvx es-mcp-client
# 自定义 SSE 服务器地址
uvx es-mcp-client --url http://example.com:8000/sse
Claude Desktop 可以通过 MCP 协议使用本服务,以便访问 Elasticsearch 数据。
在 Claude Desktop 中添加以下配置:
{
"mcpServers": {
"elasticsearch-mcp-server": {
"command": "uvx",
"args": ["es-mcp-server"],
"env": {
"ES_HOST": "your-es-host",
"ES_PORT": "9200",
"ES_VERSION": "8"
}
}
}
}
如果您已经启动了 SSE 模式的服务器,可以使用以下配置:
{
"mcpServers": {
"elasticsearch-mcp-server": {
"url": "http://localhost:8000/sse"
}
}
}
运行单元测试以验证功能:
pytest
本项目包含 VSCode 调试配置,打开 VSCode 后可直接使用调试功能启动服务器或客户端。
本项目的大部分代码、文档、配置示例都是用cursor的claude-3.7-sonnet根据需求文档 生成出来的(提示词:基于本文件生成项目所有程序)。
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Elasticsearch MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/es-mcp-server-macgaf)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.