Skip to main content
Glama
da1y

Elasticsearch MCP Server

by da1y

Elasticsearch

用于 Elasticsearch 集群的模型上下文协议 (LLM) 服务器。使 LLM 能够管理索引并执行查询。

重要提示:这主要是通过从 postgres mcp 服务器向 claude 提供示例来构建的。

成分

工具

  • 搜索

    • 针对索引执行搜索查询

    • 输入:

      • index (字符串):目标索引名称

      • query (对象):Elasticsearch 查询 DSL

    • 返回搜索结果

  • 创建索引

    • 创建新的 Elasticsearch 索引

    • 输入:

      • index (字符串):索引名称

      • mappings (对象,可选):索引映射配置

      • settings (对象,可选):索引设置配置

  • 列表索引

    • 列出所有可用索引

    • 无需输入

    • 返回索引信息数组

  • 索引文档

    • 索引文档

    • 输入:

      • index (字符串):目标索引名称

      • id (字符串,可选):文档 ID

      • document (对象):文档内容

    • 返回索引操作结果

资源

服务器提供每个索引的映射信息:

  • 索引映射elasticsearch://<host>/<index>/schema

    • JSON 映射信息

    • 字段名称、类型和配置

    • 从元数据中自动发现

Related MCP server: OpenSearch MCP Server

与 Claude Desktop 一起使用

添加到claude_desktop_config.json的“mcpServers”部分:

{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch",
        "http://localhost:9200"
      ]
    }
  }
}

Docker 一个运行容器的内衬:

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

将 URL 替换为您的 Elasticsearch 端点。

执照

采用 MIT 许可证。可免费使用、修改和分发。详情请参阅许可证文件。

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

0Releases (12mo)

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Facilitates interaction with Elasticsearch clusters by allowing users to perform index operations, document searches, and cluster management via a Model Context Protocol server and natural language commands.
    20
    303
    Apache 2.0
  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server implementation that enables natural language interactions with OpenSearch clusters, allowing users to search documents, analyze indices, and manage clusters through simple conversational commands.
    14
    11
    Apache 2.0
  • A
    license
    A
    quality
    D
    maintenance
    A comprehensive Model Context Protocol server that integrates Elasticsearch search with file operations, document validation, and version control to transform AI assistants into powerful knowledge management systems.
    27
    27
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that enables AI assistants to directly interact with Elasticsearch for searching, aggregating, and retrieving documents from indices, supporting full-text search, semantic search, and various query modes.
    38
    MIT

View all related MCP servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/da1y/mcp-server-elasticsearch'

If you have feedback or need assistance with the MCP directory API, please join our Discord server