Integrates with Brave Search API to provide real-time search capabilities, allowing queries to be performed and results delivered via Server-Sent Events (SSE)
Brave Search MCP with SSE Support
This is a Model Context Protocol (MCP) server that provides Brave Search capabilities with Server-Sent Events (SSE) integration. It can be deployed to Coolify and used as a real-time search service.
Features
Brave Search API integration through MCP
Real-time search results using SSE
Docker and Coolify ready
TypeScript implementation
Express.js SSE endpoint
Prerequisites
Brave Search API key
Node.js 18+
Docker (for containerized deployment)
Coolify instance
Local Development
Clone the repository
Create a
.env
file with your Brave API key:Install dependencies:
Start development server:
Docker Deployment
Build and run using docker-compose:
Coolify Deployment
In your Coolify dashboard, create a new service
Choose "Deploy from Source"
Configure the following:
Repository URL: Your repository URL
Branch: main
Build Command:
npm run build
Start Command:
npm start
Port: 3001
Environment Variables:
BRAVE_API_KEY=your_api_key_here
PORT=3001
Using the SSE Integration
SSE Endpoint
The SSE endpoint provides real-time search results. Connect to it using the EventSource API:
Messages Endpoint
Use this endpoint to trigger searches that will be broadcast to all connected SSE clients.
MCP Usage
The server provides the following MCP tool:
brave_web_search
: Performs a web search using the Brave Search API
Error Handling
The server broadcasts errors to all connected SSE clients
Errors are formatted as:
Notes
The SSE connection will stay open until the client closes it
Each search result is broadcast to all connected clients
The server automatically handles disconnections and cleanup
For production deployment, consider implementing authentication for the messages endpoint
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.
A Model Context Protocol server that integrates with Brave Search API to provide real-time search capabilities through 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