Brave Search MCP Server
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エンドポイント
Related MCP server: WebSearch-MCP
前提条件
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エンドポイント
GET http://your-server:3001/sseSSEエンドポイントはリアルタイム検索結果を提供します。EventSource APIを使用して接続してください。
const eventSource = new EventSource('http://your-server:3001/sse');
eventSource.onmessage = (event) => {
const data = JSON.parse(event.data);
// Handle the search results
console.log(data);
};
eventSource.onerror = (error) => {
console.error('SSE Error:', error);
eventSource.close();
};メッセージエンドポイント
POST http://your-server:3001/messages
Content-Type: application/json
{
"query": "your search query",
"count": 10 // optional, default: 10, max: 20
}このエンドポイントを使用して、接続されているすべての 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接続はクライアントが閉じるまで開いたままになります。
各検索結果は接続されているすべてのクライアントにブロードキャストされます
サーバーは自動的に切断とクリーンアップを処理します
本番環境では、メッセージエンドポイントの認証を実装することを検討してください。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Visit https://brave.com/search/api/ for a free API key. Search the web, local businesses, images,…
MCP server for Google search results via SERP API
Related MCP Servers
- -licenseNot gradedqualityAmaintenanceAn MCP server implementation that integrates the Brave Search API, providing both web and local search capabilities.13,25090,042MIT
- AlicenseBqualityCmaintenanceA Model Context Protocol server that enables AI assistants to perform real-time web searches, retrieving up-to-date information from the internet via a Crawler API.16540ISC
- AlicenseAqualityBmaintenanceA Model Context Protocol server that provides real-time web search capabilities to AI assistants through pluggable search providers, currently integrated with the Brave Search API.516MIT
- AlicenseAqualityDmaintenanceAn MCP Server implementation that integrates the Brave Search API, providing, Web Search, Local Points of Interest Search, Image Search, Video Search, News Search and LLM Context Search capabilities5196125GPL 3.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/isaacgounton/Brave-Search-MCP-SSE'
If you have feedback or need assistance with the MCP directory API, please join our Discord server