Skip to main content
Glama

OpenSearch MCP Server

by seohyunjun
Apache 2.0
8
  • Apple

OpenSearch MCP サーバー

概要

このリポジトリはelastic-mcp-serverからフォークされ、 opensearch-mcp-server MCPサーバーに変換されました。これは、OpenSearchとの連携を可能にするモデルコンテキストプロトコル(MCP)サーバー実装です。このサーバーは、ドキュメント検索、インデックス分析、そして一連のツールによるクラスター管理を可能にします。

OpenSearchとの連携を可能にするモデルコンテキストプロトコル(MCP)サーバー実装。このサーバーは、一連のツールを通じてドキュメントの検索、インデックスの分析、クラスターの管理を可能にします。

特徴

インデックス操作

  • list_indices : Opensearch クラスター内のすべてのインデックスを一覧表示します。
  • get_mapping : 特定のインデックスのマッピング構成を取得します。
  • get_settings : 特定のインデックスの設定構成を取得します。

ドキュメント操作

  • search_documents : Opensearch Query DSL を使用してインデックス内のドキュメントを検索します。

クラスター操作

  • get_cluster_health : クラスターのヘルスステータスを取得します。
  • get_cluster_stats : クラスターに関する統計情報を取得します。

Opensearch Clusterを起動する

Docker Compose を使用して Opensearch クラスターを起動します。

docker-compose up -d

これにより、3ノードのOpensearchクラスターとKibanaが起動します。デフォルトのOpensearchユーザー名はopensearch 、パスワードはtest123

http://localhost:5601から Kibana にアクセスできます。

Claude Desktopでの使用

ローカル開発でUVを使用する

uvを使用するには、リポジトリをローカルにクローンし、ソースコードへのパスを指定する必要があります。Claude Desktop の設定ファイルclaude_desktop_config.jsonに以下の設定を追加してください。

path/to/src/opensearch_mcp_serverリポジトリのクローンを作成したパスに変更する必要があります。

{ "mcpServers": { "opensearch": { "command": "uv", "args": [ "--directory", "path/to/src/opensearch_mcp_server", "run", "opensearch-mcp-server" ], "env": { "OPENSEARCH_HOST": "https://localhost:9200", "OPENSEARCH_USERNAME": "opensearch", "OPENSEARCH_PASSWORD": "test123" } } } }
  • macOSの場合: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

新しい MCP サーバーをロードするには、Claude Desktop を再起動します。

次のような自然言語コマンドを使用して、Claude を通じて Opensearch クラスターと対話できるようになりました。

  • 「クラスター内のすべてのインデックスを一覧表示する」
  • 「ボブという生徒は何歳ですか?」
  • 「クラスターのヘルスステータスを表示」

ライセンス

このプロジェクトは、Apache License バージョン 2.0 に基づいてライセンスされています。詳細については、 LICENSEファイルを参照してください。

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

OpenSearch クラスターとの自然言語による対話を可能にするモデル コンテキスト プロトコル サーバーの実装。これにより、ユーザーは簡単な会話コマンドを使用してドキュメントを検索し、インデックスを分析し、クラスターを管理できます。

  1. 概要
    1. 特徴
      1. インデックス操作
      2. ドキュメント操作
      3. クラスター操作
    2. Opensearch Clusterを起動する
      1. Claude Desktopでの使用
        1. ローカル開発でUVを使用する
      2. ライセンス

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          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.
          Last updated -
          6
          157
          Python
          Apache 2.0
          • Apple
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables LLMs to interact with Elasticsearch clusters, allowing them to manage indices and execute search queries using natural language.
          Last updated -
          1
          JavaScript
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables querying and analyzing Wazuh security logs stored in OpenSearch, with features for searching alerts, getting detailed information, generating statistics, and visualizing trends.
          Last updated -
          JavaScript
        • -
          security
          A
          license
          -
          quality
          A server that enables natural language interactions with Couchbase databases through the Model Context Protocol, allowing users to perform SQL++ queries on Couchbase Capella clusters using conversational commands.
          Last updated -
          JavaScript
          MIT License

        View all related MCP servers

        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/seohyunjun/opensearch-mcp-server'

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