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ファイルを作成します。BRAVE_API_KEY=your_api_key_here PORT=3001依存関係をインストールします:
npm install開発サーバーを起動します:
npm run dev
Docker デプロイメント
docker-compose を使用してビルドおよび実行します。
docker-compose up --build
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を使用してウェブ検索を実行します{ query: string; // Search query count?: number; // Number of results (1-20, default: 10) }
エラー処理
サーバーは接続されたすべてのSSEクライアントにエラーをブロードキャストします。
エラーの形式は次のようになります:
{ "type": "error", "error": "error message" }
注記
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
- Asecurity-licenseAqualityA server based on the MCP protocol that uses the Brave API for web search functionality.Last updated -61MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that integrates with Microsoft Bing Search API, allowing AI assistants to perform web, news, and image searches.Last updated -356MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables web search, scraping, crawling, and content extraction through multiple engines including SearXNG, Firecrawl, and Tavily.Last updated -42857MIT License
- Asecurity-licenseAqualityA 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 -417MIT License