Opensearch Mcp

io.github.mrfentmen由 GitHub 账号 mrfentmen 发布v1.0.3更新于 Nov 8, 2026

Search OpenSearch indices, manage documents, check health and stats.

已验证STDIO仅桌面数据库安全与监控

概览

AI 生成的概览

本地 MCP 服务器,让助手搜索 OpenSearch 索引、管理文档与索引,并查看集群健康状态和统计信息。

可以做什么
  • 用简单查询或原生 OpenSearch 查询 DSL 搜索索引,列出文档或按 ID 获取文档
  • 新增和删除文档,创建和删除索引
  • 列出索引,获取索引详情和映射
  • 检查集群健康状态、实例与集群统计、异步任务、分片和节点
适用场景
适合需要查询或维护 OpenSearch 集群的场景,例如搜索商品或日志索引、统计文档数量、检查集群是否健康。
运行要求
通过 npx 在本地运行(需要 Node.js)。需要可访问的 OpenSearch 服务器地址,由 OPENSEARCH_URL 指定(默认 OPENSEARCH_API_KEY 中的 API 密钥,或通过 OPENSEARCH_USERNAME 与 OPENSEARCH_PASSWORD 使用基本认证。
安装前请注意
该服务器可以创建和删除索引与文档,助手的操作可能修改或删除集群中的数据。它需要集群凭据(OPENSEARCH_API_KEY 或 OPENSEARCH_USERNAME/OPENSEARCH_PASSWORD),以环境变量形式传入,应授予最小必要权限。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Opensearch Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

OpenSearch MCP

An MCP server for OpenSearch, the community-driven, Apache 2.0 search and analytics suite.

What it does

Search through OpenSearch indices, manage documents, create/delete indexes, check cluster health, and monitor statistics. Perfect for AI agents that need to query search indexes.

Tools

  • check_health - Check cluster health status
  • list_indices - List all indices
  • get_index - Get index details
  • create_index - Create a new index
  • delete_index - Delete an index
  • search_index - Search documents in an index
  • search_raw - Search with raw OpenSearch query DSL
  • get_documents - List documents in an index
  • get_document - Get a single document by ID
  • index_document - Add a document to an index
  • delete_document - Delete a document by ID
  • get_stats - Get instance-wide statistics
  • get_cluster_stats - Get cluster statistics
  • get_tasks - List async tasks
  • get_mappings - Get index mappings
  • list_shards - List all shards
  • list_nodes - List all cluster nodes

Install

bash
npx opensearch-mcp

Environment Variables

  • OPENSEARCH_URL - OpenSearch server URL (default: http://localhost:9200)
  • OPENSEARCH_API_KEY - API key for authentication (preferred)
  • OPENSEARCH_USERNAME / OPENSEARCH_PASSWORD - Basic auth credentials

Claude Desktop setup

json
{  "mcpServers": {    "opensearch": {      "command": "npx",      "args": ["-y", "opensearch-mcp"],      "env": {        "OPENSEARCH_URL": "http://localhost:9200",        "OPENSEARCH_API_KEY": "your-api-key"      }    }  }}

Example usage

"Search my products index for 'wireless headphones'" "Check if my OpenSearch cluster is healthy" "Create a new index called 'blog-posts'" "How many documents are in my logs index?"

License

MIT

来源:README.md,提交 03a0dd9

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v1.0.2Sep 22, 2026
  2. v1.0.1Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。