SSE サポートを備えた Brave Search MCP
これは、Server-Sent Events(SSE)統合によるBrave Search機能を提供するModel Context Protocol(MCP)サーバーです。Coolifyにデプロイして、リアルタイム検索サービスとして使用できます。
特徴
MCP を介した Brave Search API の統合
SSEを使用したリアルタイム検索結果
DockerとCoolifyに対応
TypeScript実装
Express.js SSEエンドポイント
前提条件
Brave Search APIキー
Node.js 18歳以上
Docker(コンテナ化されたデプロイメント用)
Coolifyインスタンス
地域開発
リポジトリをクローンする
Brave API キーを使用して
.env
ファイルを作成します。依存関係をインストールします:
開発サーバーを起動します:
Docker デプロイメント
docker-compose を使用してビルドおよび実行します。
Coolify デプロイメント
Coolifyダッシュボードで新しいサービスを作成します
「ソースからデプロイ」を選択する
以下を設定します。
リポジトリ URL: リポジトリ URL
支店: メイン
ビルドコマンド:
npm run build
起動コマンド:
npm start
ポート: 3001
環境変数:
BRAVE_API_KEY=APIキーを入力してください
ポート=3001
SSE統合の使用
SSEエンドポイント
SSEエンドポイントはリアルタイム検索結果を提供します。EventSource APIを使用して接続してください。
メッセージエンドポイント
このエンドポイントを使用して、接続されているすべての SSE クライアントにブロードキャストされる検索をトリガーします。
MCPの使用
サーバーは次の MCP ツールを提供します。
brave_web_search
: Brave Search APIを使用してウェブ検索を実行します
エラー処理
サーバーは接続されたすべてのSSEクライアントにエラーをブロードキャストします。
エラーの形式は次のようになります:
注記
SSE接続はクライアントが閉じるまで開いたままになります。
各検索結果は接続されているすべてのクライアントにブロードキャストされます
サーバーは自動的に切断とクリーンアップを処理します
本番環境では、メッセージエンドポイントの認証を実装することを検討してください。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Brave Search API と統合し、Server-Sent Events (SSE) を通じてリアルタイム検索機能を提供するモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- -securityAlicense-qualityA server based on the MCP protocol that uses the Brave API for web search functionality.Last updated -1MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that integrates with Microsoft Bing Search API, allowing AI assistants to perform web, news, and image searches.Last updated -355MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables web search, scraping, crawling, and content extraction through multiple engines including SearXNG, Firecrawl, and Tavily.Last updated -47455MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables semantic search capabilities by providing tools to manage Qdrant vector database collections, process and embed documents using various embedding services, and perform semantic searches across vector embeddings.Last updated -411MIT License