Elasticsearch MCP 服务器和客户端
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"es-mcp-server","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Elasticsearch MCP 服务器 基于 [Model Context Protocol (MCP)](https://github.com/modelcontextprotocol/python-sdk) 的 Elasticsearch 工具服务器,提供索引查询、映射获取、搜索等功能。 其他语言版本: [🇺🇸 English](./README.en.md) | [🇫🇷 Français](./README.fr.md) | [🇩🇪 Deutsch](./README.de.md) | [🇯🇵 日本語](./README.jp.md) ## 项目目录结构 ``` . ├── 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 服务器提供以下工具: 1. **list_indices** - 显示 ES 集群的所有索引 2. **get_mappings** - 返回指定索引的字段映射信息 3. **search** - 在指定索引中执行搜索查询,支持高亮显示 4. **get_cluster_health** - 获取 ES 集群的健康状态信息 5. **get_cluster_stats** - 获取 ES 集群的运行状态统计信息 ### 安装 ```bash # 从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 | …
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.