Opensearch Mcp

io.github.mrfentmen由 GitHub 帳號 mrfentmen 發布v1.0.2更新於 Oct 30, 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.2最新Sep 22, 2026
  2. v1.0.1Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。