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 クラスターを起動します。
これにより、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
リポジトリのクローンを作成したパスに変更する必要があります。
- 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ファイルを参照してください。
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
OpenSearch クラスターとの自然言語による対話を可能にするモデル コンテキスト プロトコル サーバーの実装。これにより、ユーザーは簡単な会話コマンドを使用してドキュメントを検索し、インデックスを分析し、クラスターを管理できます。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityFacilitates 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 -6157PythonApache 2.0
- -securityFlicense-qualityA 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 -1JavaScript
- -securityFlicense-qualityA 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
- -securityAlicense-qualityA 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 -JavaScriptMIT License