Brave Search MCP Server
Enables web search via Brave Search API with freshness filters, full page content fetching, and usage tracking. Designed for Claude integration.
README
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)
Getting a Brave API Key
- Go to https://brave.com/search/api/
- 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_KEY
Claude 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 |
|---|---|
brave_web_search |
Search the web with optional freshness filter and result count |
brave_fetch_page |
Fetch and extract content from a URL as markdown |
Usage Examples
Search:
Use brave_web_search to find recent articles about TypeScript 5.4 features
Fetch page:
Use brave_fetch_page to get the content from https://example.com/article
Usage 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.