Brave Search MCP Server
Provides web search capabilities using the Brave Search API, with features like freshness filters, page content fetching, and usage tracking.
Click on "Deploy 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 recent articles on quantum computing"
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 Server
An MCP (Model Context Protocol) server that provides web search via Brave Search API. Designed for Claude Code and Claude Desktop integration.
Features:
Web search with freshness filters (past day/week/month/year)
Full page content fetching with markdown extraction
AI-optimized result metadata (authority, content type, recency)
Usage tracking with monthly limits (2,000 free requests)
Prerequisites
Node.js 18+
Brave Search API key (free tier)
Related MCP server: Brave Search MCP Server
Getting a Brave API Key
Click "Get Started" or "Get API Key"
Create an account or sign in
Navigate to API keys section
Generate a new API key
Copy the key (you won't see it again)
Note: Free tier includes 2,000 requests/month with no rate limiting.
Installation
git clone <repo-url>
cd bravesearchmcp
npm install
cp .env.example .env
# Edit .env and add your BRAVE_API_KEYClaude Desktop Configuration
macOS
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/bravesearchmcp/src/index.ts"],
"env": {
"BRAVE_API_KEY": "your_api_key_here"
}
}
}
}Windows
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": ["tsx", "C:\\path\\to\\bravesearchmcp\\src\\index.ts"],
"env": {
"BRAVE_API_KEY": "your_api_key_here"
}
}
}
}Claude Code Configuration
Add to your Claude Code MCP settings:
{
"brave-search": {
"command": "npx",
"args": ["tsx", "/path/to/bravesearchmcp/src/index.ts"],
"env": {
"BRAVE_API_KEY": "your_api_key_here"
}
}
}Available Tools
Tool | Description |
| Search the web with optional freshness filter and result count |
| Fetch and extract content from a URL as markdown |
Usage Examples
Search:
Use brave_web_search to find recent articles about TypeScript 5.4 featuresFetch page:
Use brave_fetch_page to get the content from https://example.com/articleUsage Tracking
The server tracks your monthly API usage:
Displayed with each search result: "Usage: X/2000 (Y%)"
Warning at 80%: "Warning: approaching limit"
Warning at 95%: "Critical: nearly exhausted"
Counter resets on the 1st of each month
Usage stored in
.brave-usage.json(gitignored)
Troubleshooting
Issue | Solution |
"BRAVE_API_KEY environment variable is required" | Set the API key in Claude Desktop config or .env file |
"Invalid API key" | Check your key at brave.com/search/api dashboard |
"Rate limit exceeded" | Wait a moment - Brave has burst protection |
Server not appearing in Claude | Restart Claude Desktop after config changes |
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Provides AI assistants with access to Seltz's powerful Web Search capabilities.
Visit https://brave.com/search/api/ for a free API key. Search the web, local businesses, images,…
Web search, news, page retrieval, sitemaps, and trending topics through Search1API.
Web search, scraping, Google Trends and data lookups. Paid per call in USDC on Base via x402.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables web searching and local business discovery through the Brave Search API. Provides both general web search with pagination and filtering controls, plus local business search with automatic fallback to web results.2-
- FlicenseNot gradedqualityDmaintenanceEnables web and local business searches through the Brave Search API. Provides general web search with pagination and filtering, plus local business search with automatic fallback to web results.-
- AlicenseNot gradedqualityNot gradedmaintenanceIntegrates Brave Search API to enable web, image, video, news, and local business searches with filtering options like result count and content freshness.128 npm-
- AlicenseNot gradedqualityDmaintenanceIntegrates the Brave Search API to provide web and local search capabilities, including news, articles, and business information. It features smart fallbacks from local to web search and supports pagination and freshness controls.128 npm1GPL 3.0