Elasticsearch 模型上下文协议服务器

Elasticsearch 模型上下文协议服务器

为 Elasticsearch 集群提供模型上下文协议服务器,支持索引管理与查询执行。

快速入门

  1. 使用 Docker 启动 Elasticsearch 容器: docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:8.11.3
  2. 在 Claude Desktop 中添加配置,在 claude_desktop_config.json 文件的 mcpServers 节点中加入以下内容: { "mcpServers": { "elasticsearch": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-elasticsearch", "http://localhost:9200" ] } } }
  3. 支持的功能包括搜索、创建索引、列出索引和文档索引。
  4. 查看更多细节,请参考 README 文档。