Brave Search MCP Server
Integrates with Brave Search API to provide real-time search capabilities, allowing queries to be performed and results delivered via Server-Sent Events (SSE)
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Brave Search MCP Serversearch for latest AI developments in 2024"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: WebSearch-MCP
Prerequisites
Brave Search API key
Node.js 18+
Docker (for containerized deployment)
Coolify instance
Local Development
Clone the repository
Create a
.envfile with your Brave API key:BRAVE_API_KEY=your_api_key_here PORT=3001Install dependencies:
npm installStart development server:
npm run dev
Docker Deployment
Build and run using docker-compose:
docker-compose up --build
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 buildStart Command:
npm startPort: 3001
Environment Variables:
BRAVE_API_KEY=your_api_key_here
PORT=3001
Using the SSE Integration
SSE Endpoint
GET http://your-server:3001/sseThe SSE endpoint provides real-time search results. Connect to it using the 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();
};Messages Endpoint
POST http://your-server:3001/messages
Content-Type: application/json
{
"query": "your search query",
"count": 10 // optional, default: 10, max: 20
}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{ query: string; // Search query count?: number; // Number of results (1-20, default: 10) }
Error Handling
The server broadcasts errors to all connected SSE clients
Errors are formatted as:
{ "type": "error", "error": "error message" }
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
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 Servers
- -license-qualityAmaintenanceAn MCP server implementation that integrates the Brave Search API, providing both web and local search capabilities.25,82989,405MIT
- 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.18639ISC
- 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.515MIT
- AlicenseBqualityCmaintenanceA Model Context Protocol server that enables LLM clients like VSCode, Copilot, and Claude Desktop to search the web using Google Programmable Search Engine API.12411Apache 2.0
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,…
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/etugrand/Brave-Search-MCP-SSE'
If you have feedback or need assistance with the MCP directory API, please join our Discord server