Server facts
brave-search-mcp-server
GitHub stars
1,594
Last commit
Nov 24, 2026
Runtime
node
License
MIT
Project
- Author
- brave
- Repository
- github.com/brave/brave-search-mcp-server
- License
- MIT
- Category
- Search & Web Data
Tech
- Runtime
- node
- Transports
- stdiohttp
- Remote access
- No
- Authentication
- API Key (BRAVE_API_KEY)
Activity
- GitHub stars
- 1,594
- Last commit
- Data as of
Tags
- Video Search
- Web Search
- grounding
- image search
- page snippets
- rag search
- search engine
Overview
Connecting an AI client directly to live search results eliminates stale training cutoffs without scraping fragile browser pages. Maintained officially by Brave under the MIT license, this server wraps the Brave Search API across web, news, image, video, local business, geographic place, LLM context, and grounded Answers endpoints. Version 2.x defaults to STDIO transport for smooth desktop integration and trims raw base64 payloads from image searches to keep context windows lean, while still allowing HTTP mode on port 8080 via BRAVE_MCP_TRANSPORT=http or --transport http.
Setup takes an API key from the Brave Search API dashboard configured through BRAVE_API_KEY or a mounted BRAVE_API_KEY_FILE secret, launched via npx @brave/brave-search-mcp-server or the docker.io/mcp/brave-search image in Claude Desktop, VS Code, Claude Code, Cursor, or fx. Administrators can narrow exposed capabilities with BRAVE_MCP_ENABLED_TOOLS or BRAVE_MCP_DISABLED_TOOLS and protect HTTP deployments against DNS rebinding via BRAVE_MCP_ALLOWED_ORIGINS and BRAVE_MCP_ALLOWED_HOSTS. Note plan boundaries during troubleshooting: brave_answers requires an Answers subscription, full brave_local_search needs a Pro plan, and legacy brave_summarizer is deprecated in favor of brave_answers.
Install & configure
Requirements
- Brave Search API key (Search, Pro, or Answers plan depending on tools used)
- Node.js 22.x or higher for local builds, or NPX / Docker runtime
npx -y @brave/brave-search-mcp-server --transport stdioLaunch via `npx -y @brave/brave-search-mcp-server --transport stdio` or `docker.io/mcp/brave-search` with `BRAVE_API_KEY` (or `BRAVE_API_KEY_FILE` for Docker secrets). Pass `--transport http` or set `BRAVE_MCP_TRANSPORT=http` to serve HTTP on `127.0.0.1:8080/mcp`.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server",
"--transport",
"stdio"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server",
"--transport",
"stdio"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"brave-search": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server",
"--transport",
"stdio"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server",
"--transport",
"stdio"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"brave-search": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server",
"--transport",
"stdio"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| brave_web_search | Runs web searches with country, language, pagination, safesearch, freshness filters, custom goggles re-ranking, and Pro extra snippets. |
| brave_local_search | Finds local businesses and places with ratings, opening hours, and descriptions on Pro plans, falling back to web search otherwise. |
| brave_place_search | Queries geographic points of interest via coordinates, radius, or city strings, returning structured addresses, hours, contacts, ratings, photos, and timezone. |
| brave_news_search | Retrieves current news articles with freshness controls (defaulting to the last 24 hours), breaking indicators, and custom goggles. |
| brave_video_search | Searches videos with metadata, thumbnails, freshness controls, and safesearch filtering. |
| brave_image_search | Searches images returning URLs, dimensions, and confidence scores without context-heavy base64 data. |
| brave_answers | Streams AI-grounded markdown answers over Server-Sent Events with optional inline citations and multi-search research mode; replaces deprecated brave_summarizer. |
| brave_llm_context | Returns pre-extracted web snippets tuned for AI agent grounding and RAG pipelines with token, URL, and snippet budgets. |
| brave_summarizer | Deprecated summarizer retained for existing Pro AI subscribers; pairs with a summary key from brave_web_search. |
Use cases
- Feed token-budgeted web excerpts into coding agents and RAG workflows using brave_llm_context.
- Track breaking news, documentation updates, and API releases with freshness-filtered web and news queries.
- Generate cited, web-grounded answers or run multi-search research directly in chat via brave_answers.
- Look up verified local business details, opening hours, and geographic POIs using brave_place_search.
Strengths
- Official Brave repository covering web, news, media, POI, LLM grounding context, and streamed Answers in a single package.
- Supports both STDIO and HTTP transports (including stateless mode for Amazon Bedrock AgentCore) plus origin/host DNS-rebinding guards.
- Tool whitelisting and blacklisting let teams restrict exposed tools to minimize prompt bloat.
Limitations
- Requires a Brave Search API subscription key; brave_answers and full brave_local_search require separate paid plan tiers.
- Multi-search research in brave_answers can run for minutes and may hit client request timeouts near 60 seconds unless research_maximum_number_of_seconds is lowered.
- HTTP transport has no built-in authentication and should stay bound to loopback 127.0.0.1 unless placed on a trusted network.
brave-search-mcp-server setup notes
- Check BRAVE_API_KEY in the brave-search-mcp-server configuration if startup or authentication fails.
- brave-search-mcp-server's example uses stdio, while its catalog transports are stdio / http; use the example's connection type.