原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Elasticsearch

作者:TocharianOU版本 0.9.1i★ 8i在你的电脑上运行
注册名称io.github.TocharianOU/elasticsearch

安装方法

What it does

Elasticsearch MCP Server for ES 5.x-9.x with a query harness, field validation and full API access

  • Connects 在你的电脑上运行
  • Account or key Needs ES_API_KEY, ES_PASSWORD, MAX_TOKEN_CALL · 1 setting to fill in (ES_URL)
  • Category 数据库与数据集

安装

选择你使用的 AI 应用,然后复制设置。

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 Elasticsearch 的密钥(在开发者网站创建) · 需要填写 1 项设置(ES_URL) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

让 AI 帮你安装

把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude 安装 MCP server Elasticsearch,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "elasticsearch": { "command": "npx", "args": [ "-y", "@tocharianou/elasticsearch-mcp" ], "env": { "ES_URL": "your-value", "ES_API_KEY": "your-value", "ES_PASSWORD": "your-value", "MAX_TOKEN_CALL": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) ES_API_KEY, ES_PASSWORD, MAX_TOKEN_CALL, ES_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Elasticsearch 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Elasticsearch 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Elasticsearch 网站 ↗

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • ES_URL Your Elasticsearch instance URL (e.g., https://localhost:9200)

    说明仍为英文原文。

  4. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  5. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "elasticsearch": {
          "command": "npx",
          "args": [
            "-y",
            "@tocharianou/elasticsearch-mcp"
          ],
          "env": {
            "ES_URL": "your-value",
            "ES_API_KEY": "your-value",
            "ES_PASSWORD": "your-value",
            "MAX_TOKEN_CALL": "your-value"
          }
        }
      }
    }

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 退出 Claude 再重新打开

  7. 试一试

    用 Elasticsearch 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Elasticsearch,或回答中出现 Elasticsearch 的工具名称,就表示连接成功

3 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • ES_USERNAME 用于基本身份验证的 Elasticsearch 用户名
    查看英文原文Elasticsearch username for basic authentication
  • ES_CA_CERT Elasticsearch SSL/TLS 自定义 CA 证书的路径。
    查看英文原文Path to custom CA certificate for Elasticsearch SSL/TLS
  • NODE_TLS_REJECT_UNAUTHORIZED 设置为 '0' 以禁用 SSL 证书验证(仅限开发环境)。
    查看英文原文Set to '0' to disable SSL certificate validation (development only)
    · 默认值 1

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Elasticsearch

Elasticsearch 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Elasticsearch 的应用

  • 需要 Elasticsearch 的密钥(在开发者网站创建) · 需要填写 1 项设置(ES_URL) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 Elasticsearch 的密钥(在开发者网站创建) · 需要填写 1 项设置(ES_URL) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 Elasticsearch 的密钥(在开发者网站创建) · 需要填写 1 项设置(ES_URL) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 Elasticsearch 的密钥(在开发者网站创建) · 需要填写 1 项设置(ES_URL) · 需要先在电脑上安装 Node.js(只需一次)

B · 数据库与数据集 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 Elasticsearch 的密钥(在开发者网站创建) · 需要填写 1 项设置(ES_URL) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude Code 安装 MCP server Elasticsearch,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user elasticsearch --env ES_URL=your-value --env ES_API_KEY=your-value --env ES_PASSWORD=your-value --env MAX_TOKEN_CALL=your-value -- npx -y @tocharianou/elasticsearch-mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) ES_API_KEY, ES_PASSWORD, MAX_TOKEN_CALL, ES_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Elasticsearch 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Elasticsearch 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Elasticsearch 网站 ↗

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • ES_URL Your Elasticsearch instance URL (e.g., https://localhost:9200)

    说明仍为英文原文。

  4. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  5. 粘贴这条命令并按 Enter

    claude mcp add --scope user elasticsearch --env ES_URL=your-value --env ES_API_KEY=your-value --env ES_PASSWORD=your-value --env MAX_TOKEN_CALL=your-value -- npx -y @tocharianou/elasticsearch-mcp

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 Claude Code 中输入 /mcp

    应能看到 Elasticsearch 在列表中并显示已连接

  7. 试一试

    用 Elasticsearch 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Elasticsearch,或回答中出现 Elasticsearch 的工具名称,就表示连接成功

3 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • ES_USERNAME 用于基本身份验证的 Elasticsearch 用户名
    查看英文原文Elasticsearch username for basic authentication
  • ES_CA_CERT Elasticsearch SSL/TLS 自定义 CA 证书的路径。
    查看英文原文Path to custom CA certificate for Elasticsearch SSL/TLS
  • NODE_TLS_REJECT_UNAUTHORIZED 设置为 '0' 以禁用 SSL 证书验证(仅限开发环境)。
    查看英文原文Set to '0' to disable SSL certificate validation (development only)
    · 默认值 1

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 Elasticsearch 的密钥(在开发者网站创建) · 需要填写 1 项设置(ES_URL) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Cursor 安装 MCP server Elasticsearch,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "elasticsearch": { "command": "npx", "args": [ "-y", "@tocharianou/elasticsearch-mcp" ], "env": { "ES_URL": "your-value", "ES_API_KEY": "your-value", "ES_PASSWORD": "your-value", "MAX_TOKEN_CALL": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) ES_API_KEY, ES_PASSWORD, MAX_TOKEN_CALL, ES_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Elasticsearch 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Elasticsearch 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Elasticsearch 网站 ↗

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • ES_URL Your Elasticsearch instance URL (e.g., https://localhost:9200)

    说明仍为英文原文。

  4. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  5. 填写你的密钥

    在 Elasticsearch 的设置中,ES_API_KEY, ES_PASSWORD, MAX_TOKEN_CALL, ES_URL 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 Cursor 中以 Agent 模式打开 AI 聊天

  7. 试一试

    用 Elasticsearch 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Elasticsearch,或回答中出现 Elasticsearch 的工具名称,就表示连接成功

3 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • ES_USERNAME 用于基本身份验证的 Elasticsearch 用户名
    查看英文原文Elasticsearch username for basic authentication
  • ES_CA_CERT Elasticsearch SSL/TLS 自定义 CA 证书的路径。
    查看英文原文Path to custom CA certificate for Elasticsearch SSL/TLS
  • NODE_TLS_REJECT_UNAUTHORIZED 设置为 '0' 以禁用 SSL 证书验证(仅限开发环境)。
    查看英文原文Set to '0' to disable SSL certificate validation (development only)
    · 默认值 1

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 Elasticsearch 的密钥(在开发者网站创建) · 需要填写 1 项设置(ES_URL) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 VS Code 安装 MCP server Elasticsearch,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "elasticsearch": { "type": "stdio", "command": "npx", "args": [ "-y", "@tocharianou/elasticsearch-mcp" ], "env": { "ES_URL": "your-value", "ES_API_KEY": "your-value", "ES_PASSWORD": "your-value", "MAX_TOKEN_CALL": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) ES_API_KEY, ES_PASSWORD, MAX_TOKEN_CALL, ES_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Elasticsearch 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Elasticsearch 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Elasticsearch 网站 ↗

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • ES_URL Your Elasticsearch instance URL (e.g., https://localhost:9200)

    说明仍为英文原文。

  4. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  5. 填写你的密钥

    在 Elasticsearch 的设置中,ES_API_KEY, ES_PASSWORD, MAX_TOKEN_CALL, ES_URL 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 VS Code 中以 Agent 模式打开 AI 聊天

  7. 试一试

    用 Elasticsearch 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Elasticsearch,或回答中出现 Elasticsearch 的工具名称,就表示连接成功

3 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • ES_USERNAME 用于基本身份验证的 Elasticsearch 用户名
    查看英文原文Elasticsearch username for basic authentication
  • ES_CA_CERT Elasticsearch SSL/TLS 自定义 CA 证书的路径。
    查看英文原文Path to custom CA certificate for Elasticsearch SSL/TLS
  • NODE_TLS_REJECT_UNAUTHORIZED 设置为 '0' 以禁用 SSL 证书验证(仅限开发环境)。
    查看英文原文Set to '0' to disable SSL certificate validation (development only)
    · 默认值 1

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Elasticsearch 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user elasticsearch --env ES_URL=your-value --env ES_API_KEY=your-value --env ES_PASSWORD=your-value --env MAX_TOKEN_CALL=your-value -- npx -y @tocharianou/elasticsearch-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@tocharianou/elasticsearch-mcp"
      ],
      "env": {
        "ES_URL": "your-value",
        "ES_API_KEY": "your-value",
        "ES_PASSWORD": "your-value",
        "MAX_TOKEN_CALL": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@tocharianou/elasticsearch-mcp"
      ],
      "env": {
        "ES_URL": "your-value",
        "ES_API_KEY": "your-value",
        "ES_PASSWORD": "your-value",
        "MAX_TOKEN_CALL": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "elasticsearch": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tocharianou/elasticsearch-mcp"
      ],
      "env": {
        "ES_URL": "your-value",
        "ES_API_KEY": "your-value",
        "ES_PASSWORD": "your-value",
        "MAX_TOKEN_CALL": "your-value"
      }
    }
  }
}

需要你填写的值

  • ES_URL 必填 env
    Your Elasticsearch instance URL (e.g., https://localhost:9200)
  • ES_API_KEY 机密 必填 env
    用于身份验证的 Elasticsearch API 密钥
    查看英文原文Elasticsearch API key for authentication
  • ES_USERNAME env
    用于基本身份验证的 Elasticsearch 用户名
    查看英文原文Elasticsearch username for basic authentication
  • ES_PASSWORD 机密 必填 env
    用于基本身份验证的 Elasticsearch 密码
    查看英文原文Elasticsearch password for basic authentication
  • ES_CA_CERT env
    Elasticsearch SSL/TLS 自定义 CA 证书的路径。
    查看英文原文Path to custom CA certificate for Elasticsearch SSL/TLS
  • NODE_TLS_REJECT_UNAUTHORIZED env
    设置为 '0' 以禁用 SSL 证书验证(仅限开发环境)。
    查看英文原文Set to '0' to disable SSL certificate validation (development only)
  • MAX_TOKEN_CALL 机密 必填 env
    每次 API 调用的最大令牌数
    查看英文原文Maximum tokens per API call

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
94/周
许可证i
Apache-2.0
连接方式
在你的电脑上运行
传输方式
stdio, streamable-http
最新版本i
0.9.1
发布到注册中心i
2026年10月11日
代码最后更新i
2026年10月11日
作者
TocharianOU
软件包
npm: @tocharianou/elasticsearch-mcp
npm: @tocharianou/elasticsearch-mcp
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月15日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 TocharianOU 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于35天前

  • ✓ 通过

    有许可证

    使用 Apache-2.0

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

尚未检查

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“数据库与数据集”中的其他服务器比较i

  • 星标数多于此分类中其他 1199 个服务器的 92%
  • 发布到注册中心的时间比此分类中其他 1199 个服务器的 58% 更新
  • 基础检查结果等于或优于此分类中其他 1199 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Elasticsearch 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:ES_API_KEY, ES_PASSWORD, MAX_TOKEN_CALL

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于35天前,最新版本(0.9.1)于35天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:QueryWeaver, Supabase, Neon, DBCode, Keboola MCP

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

QueryWeaver

An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.

作者:FalkorDB正在增长★ 109614个月前更新

在你的电脑上运行✓ falkordb.com

Supabase

MCP server for interacting with the Supabase platform

作者:supabase广泛使用↓ 24.6万/周★ 3012 整个仓库的星标前天更新

电脑或云端✓ 服务方 · supabase.com

Neon

Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.

作者:neondatabase正在增长★ 6639天前更新

在云端运行✓ 服务方 · neon.com

DBCode

Query and explore 100+ databases through your DBCode connections.

作者:dbcodeio起步阶段↓ 80/周★ 366 整个仓库的星标43天前更新

在你的电脑上运行✓ 服务方 · dbcode.io

Keboola MCP

Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...

作者:keboola正在增长↓ 1421/周★ 854天前更新

电脑或云端✓ 服务方 · keboola.com
  • QueryWeaver — 需要安装在电脑上 · 不需要密钥
  • Supabase — 云端或安装在电脑上都可以 · 需要密钥 · 在 Claude 的目录中
  • Neon — 在云端运行,无需安装 · 不需要密钥
  • DBCode — 需要安装在电脑上 · 不需要密钥
  • Keboola MCP — 云端或安装在电脑上都可以 · 不需要密钥

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Elasticsearch MCP Server

Enhanced Elasticsearch MCP Server Solution - Security & Threat Analysis Focused

This is a professional security-focused solution maintained by TocharianOU. It enables comprehensive interaction with all Elasticsearch APIs, specifically optimized for security analysis, threat detection, and incident investigation. Features include advanced security monitoring, anomaly detection, threat hunting, root cause analysis, and comprehensive audit capabilities.

Key Security Features:

  • Real-time threat detection and security monitoring
  • Advanced machine learning for anomaly detection
  • Root cause analysis and attack chain tracking
  • Security incident investigation and forensics
  • Compliance monitoring and audit reporting

Note: This solution is designed for security professionals, SOC teams, and threat analysts.

Connect to your Elasticsearch data directly from any MCP Client (such as Claude Desktop) using the Model Context Protocol (MCP). Interact with your Elasticsearch security data through natural language queries for advanced threat analysis and incident response.

Prerequisites

  • An Elasticsearch instance
  • Elasticsearch authentication credentials (API key or username/password)
  • MCP Client (e.g. Claude Desktop) or HTTP client for remote access

Multi-Version Elasticsearch Support

Automatically supports Elasticsearch 5.x - 9.x with intelligent version detection:

VersionStatusClientNotes
ES 5.x✅5.6.22EOL - Basic tools only
ES 6.x✅6.8.8EOL - ILM available (6.6+)
ES 7.x✅7.17.14LTS - Full features
ES 8.x✅8.19.1Recommended - Latest features, ES\QL (8.11+)
ES 9.x+✅Auto-fallbackFuture-ready

Key Features:

  • Automatic version detection - No manual configuration needed
  • Smart client selection - Loads the right client for your ES version
  • Adaptive features - Disables unsupported tools (e.g., Data Streams on ES < 7.9, ES|QL on ES < 8.11)
  • Version-specific optimizations - Handles API differences transparently

What happens:

Connect → Detect ES version → Load matching client → Register compatible tools

The Query Harness (v0.9.0)

Since v0.9.0 the server ships a query harness: a deterministic layer between the AI model and your cluster. The design philosophy is simple:

The model steers; the harness knows.

Intent ("find failed logins by user") belongs to the model.

Correctness (real field names, aggregatability, version quirks) belongs to the harness.

What this means in practice — at the level of principles, not internals:

  • Live truth beats bundled knowledge beats model memory. Every query is checked against the cluster's actual field capabilities before it runs. A bundled ECS (Elastic Common Schema) vocabulary provides *meaning*; the live cluster provides *existence*. The model's own recollection is never trusted.
  • Unambiguous mistakes are fixed silently; ambiguous ones become guidance. The classic example: a spurious .keyword suffix on modern ECS mappings is auto-corrected (and the correction is reported); an unknown field blocks the doomed query and returns the nearest real fields instead of a provider error.
  • Field knowledge stays out of the context window. The full ECS dictionary (thousands of fields) lives in process memory. The model retrieves only the handful it needs, on demand, via lookup_fields.
  • Every failure must be actionable. Raw Elasticsearch errors are rewritten with live suggestions and index-naming advice (data stream vs. legacy Beats naming, internal indices that should be accessed via Kibana APIs, and so on).
  • The model needs zero version knowledge. Naming eras, API differences and mapping-style differences (legacy text + .keyword subfield vs. modern bare keyword) are absorbed entirely by the harness. The same model behaves identically against ES 5.6 and ES 9.x — verified by a version test matrix covering nine watershed releases (5.6 → 9.0).
  • An escape hatch always exists. Validation can be bypassed per call (skip_lint) when the model knows better — e.g. runtime fields defined outside the query. The harness assists; it never imprisons.

SSL/TLS Connection

To connect to Elasticsearch with a self-signed certificate or in a test environment, you can set the following environment variable:

NODE_TLS_REJECT_UNAUTHORIZED=0

⚠️ This disables Node.js SSL certificate validation. Use only in development or testing environments. For production, always use a trusted CA certificate.

Installation & Setup

Install (or run) the server, point it at your cluster via environment variables, register it in your MCP client, then just start a conversation — the server connects and registers the tools your ES version supports.

Configuration Options

The Elasticsearch MCP Server supports the following configuration options:

Elasticsearch Configuration
Environment VariableDescriptionRequired
ES_URLYour Elasticsearch instance URLYes
ES_API_KEYElasticsearch API key for authenticationNo
ES_USERNAMEElasticsearch username for basic authenticationNo
ES_PASSWORDElasticsearch password for basic authenticationNo
ES_CA_CERTPath to custom CA certificate for Elasticsearch SSL/TLSNo
NODE_TLS_REJECT_UNAUTHORIZEDSet to 0 to disable SSL certificate validationNo
Transport Mode Configuration (NEW in v0.3.0)
Environment VariableDescriptionDefaultValues
MCP_TRANSPORTTransport mode selectionstdiostdio, http
MCP_HTTP_PORTHTTP server port (when using HTTP transport)30001-65535
MCP_HTTP_HOSTHTTP server host (when using HTTP transport)localhostAny valid host

Transport Mode Details:

  • Stdio mode (default): For Claude Desktop and local MCP clients
  • HTTP Streamable mode: Runs as a standalone HTTP server for remote access, API integration, and web applications
Quick Start
Option 1: NPM Installation (Recommended)
  1. Install globally via NPM
   npm install -g @tocharianou/elasticsearch-mcp
  1. Run directly
   npx @tocharianou/elasticsearch-mcp
Option 2: GitHub Release (Standalone Package)
  1. Download release package
  • Go to GitHub Releases
  • Download the latest .tar.gz file and its checksum files (.sha256 and .sha512)
  1. Verify package integrity
   shasum -a 256 -c elasticsearch-mcp-v*.tar.gz.sha256

Should output: elasticsearch-mcp-v*.tar.gz: OK

  1. Extract and use
   mkdir elasticsearch-mcp && cd elasticsearch-mcp

tar -xzf ../elasticsearch-mcp-v*.tar.gz

Run with your Elasticsearch credentials

ES_URL=https://localhost:9200 ES_API_KEY=your-key node dist/index.js

Option 3: Source Installation
  1. Clone the repository
   git clone https://github.com/TocharianOU/elasticsearch-mcp.git

cd elasticsearch-mcp

  1. Install Dependencies
   npm install
  1. Build the Project
   npm run build
  1. Configure Claude Desktop App
  • Open Claude Desktop App
  • Go to Settings > Developer > MCP Servers
  • Click Edit Config and add a new MCP Server with the following configuration:

For NPM Installation:

   {

"mcpServers": { "elasticsearch-mcp-server": { "command": "npx", "args": [ "@tocharianou/elasticsearch-mcp" ], "env": { "ES_URL": "your-elasticsearch-url", "ES_USERNAME": "elastic", "ES_PASSWORD": "your_pass", "NODE_TLS_REJECT_UNAUTHORIZED": "0" } } } }

For Source Installation:

   {

"mcpServers": { "elasticsearch-mcp-server-local": { "command": "node", "args": [ "/path/to/your/elasticsearch-mcp/dist/index.js" ], "env": { "ES_URL": "your-elasticsearch-url", "ES_USERNAME": "elastic", "ES_PASSWORD": "your_pass", "NODE_TLS_REJECT_UNAUTHORIZED": "0" } } } }

  1. Debugging with MCP Inspector (optional)
   ES_URL=your-elasticsearch-url ES_USERNAME=elastic ES_PASSWORD=your_pass npm run inspector
Installation & Integration Notes

If `npm install -g` misbehaves:

  • *Permission errors (EACCES) on global install* — don't sudo. Either skip the global install entirely and let your MCP client run npx @tocharianou/elasticsearch-mcp (npx fetches on demand), or set a user-level prefix: npm config set prefix ~/.npm-global and add it to your PATH.
  • *Slow or blocked registry* — use a mirror for the install only: npm install -g @tocharianou/elasticsearch-mcp --registry=https://registry.npmmirror.com.
  • *Node version* — requires Node 18+ (node --version). Older Node fails at startup with ESM/fetch errors, not at install time.
  • *npx cold start* — the first npx run downloads the package; if your MCP client times out on first connect, run npx @tocharianou/elasticsearch-mcp once in a terminal to warm the cache, then reconnect.
  • *Fully offline hosts* — use the GitHub Release tarball (Option 2) and point your client at node /path/to/dist/index.js; nothing is fetched at runtime.

Claude Desktop — Settings → Developer → MCP Servers → Edit Config, then add the JSON block shown above. Restart the app after editing; the server appears in the tools list of a new conversation.

Claude Code (CLI) — register the server per-project or globally:

claude mcp add elasticsearch \

-e ES_URL=https://your-es:9200 -e ES_API_KEY=your-key \ -- npx @tocharianou/elasticsearch-mcp

Any other MCP client / platform integration — run in HTTP mode (MCP_TRANSPORT=http, see below) and point the client at http://host:port/mcp; this is the recommended shape for containerized platforms, one server instance per cluster connection.

Credentials hygiene — the env vars end up in your client's config file in plain text. Prefer a scoped, read-only API key (see *Elasticsearch Access Control* below) over superuser credentials.

Method 3: HTTP Streamable Mode (NEW in v0.3.0)

Run the server as a standalone HTTP service for remote access and API integration:

# Start HTTP server (default port 3000)

MCP_TRANSPORT=http \ ES_URL=your-elasticsearch-url \ ES_USERNAME=elastic \ ES_PASSWORD=your_pass \ npx @tocharianou/elasticsearch-mcp

Or with custom port and host

MCP_TRANSPORT=http \ MCP_HTTP_PORT=9000 \ MCP_HTTP_HOST=0.0.0.0 \ ES_URL=your-elasticsearch-url \ ES_USERNAME=elastic \ ES_PASSWORD=your_pass \ npx @tocharianou/elasticsearch-mcp

**HTTP Streamable

只显示了开头部分;其余内容请在仓库中阅读