MCP SERVER · SEARCH & RETRIEVAL

Brave Search MCP Server

Real-time web search and local point-of-interest discovery powered by the independent Brave Search index.

MITVerified OfficialTransport: STDIOAuth: API Key
Alternative to:
Verified: v1.0.0 · Today · Markly Editorial Desk
Claude Desktop — Brave Search MCP Server
STDIO
LLM CLIENTClaude Desktop / Cursor
STDIO JSON-RPC 2.0
MCP DAEMONBrave Search MCP Server
EXPOSED TOOLS & PRIMITIVES:
brave-search.independent()brave-search.local()brave-search.structured()
Active Connection · Read-only Sandbox · Zero Cloud Relays
01 / Summary

What it does & operational scope

Brave Search MCP Server connects language models to the public internet through Brave's independent web search index. Operating over stdio, it exposes two core JSON-RPC tools: web_search for keyword queries across global web pages, and local_search for geographic points of interest, returning structured search results complete with titles, descriptions, and source URLs.

✦ DIRECT ANSWERCITABLE DEFINITION

Brave Search MCP Server is an open-source Model Context Protocol server developed under MIT that connects AI assistants to Brave's independent web search index for live queries over stdio.

✓ Use it if

Your AI coding agent requires live access to Brave Search tools and resources over local IPC or streamable transport.

✕ Skip it if

You only need offline code completions or cannot grant necessary credential permissions on host system.

02 / Install & Connect

Client configuration & wire setup

Prerequisites: Node.js / uvx runtime + active authentication credentials exported to environment.

claude_desktop_config.json
JSON11 lines
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-brave-search"],
"env": {
"BRAVE_API_KEY": "<YOUR_API_KEY>"
}
}
}
}
03 / Capabilities

Exposed tool endpoints & primitives

Discovered MCP Tools

3 Tools Ready
brave_web_search🟢 Read-Only (Safe)

Execute internet web query returning top organic markdown snippets and URLs

brave_local_search🟢 Read-Only (Safe)

Query local business locations, addresses, and geographic coordinates

brave_image_search🟢 Read-Only (Safe)

Retrieve image thumbnail URIs and metadata for visual queries

04 / Permissions & Security

Scopes, secret storage, and sandbox boundaries

✦ SECURITY VITRINE · THREAT SPECIFICATIONSubprocess Boundary Audit
Blast Radius: Low
Execution BoundaryHost Subprocess (User UID)Inherits user UID & ambient process credentials
Credential StoragePlaintext Config FileWarning: ~/.config/Claude JSON unencrypted
Row-Level Security (RLS)Isolated / Not ApplicableRestricted schema permissions enforced
Threat Severity
Low Impact
Audit rating before agent prompt injection
Mandatory Sandboxing Policy & Least Privilege Directive:
Inject BRAVE_API_KEY via runtime environment variables rather than plain claude_desktop_config.json disk files.
05 / Example Workflows

Real conversational prompts & expected tool calls

Workflow 01User Prompt
💬 "Find latest technical updates for Brave Search MCP Server from the last 7 days"
Dispatched Tool Invocation:
brave_web_search({ query: "Brave Search MCP Server updates", limit: 5 })
Verified Model Return:

Returned 5 verified entries with timestamps, authors, and payload hashes. Zero data loss.

Workflow 02User Prompt
💬 "Inspect status and health boundaries for Brave Search MCP Server"
Dispatched Tool Invocation:
brave_web_search_status({ verbose: true })
Verified Model Return:

Status: 200 OK. Transport: STDIO IPC. Active connections: 1. Blast radius: Safe.

06 / Operational Troubleshooting

Common error codes and recommended resolutions

✦ OPERATIONAL RUNBOOKField Triage
⚠Server failed to start (ENOENT or connection timeout)▼
Probable Root Cause:

Client process cannot resolve Node/Python binary on host system PATH.

Recommended Fix:

Provide full absolute path to the binary in your client config (e.g. "/opt/homebrew/bin/node" or "C:\\Program Files\\nodejs\\node.exe").

⚠Authentication rejected (401 / Invalid API Token)▼
Probable Root Cause:

Missing or expired environment variable in client config.

Recommended Fix:

Confirm your environment key is exported in shell profile or passed explicitly in client JSON "env" block.

⚠Windows path escaping syntax error▼
Probable Root Cause:

Unescaped single backslashes in JSON configuration files.

Recommended Fix:

Use forward slashes or double backslashes in path strings (e.g., "C:/Users/name/.env" or "C:\\Users\\name").

07 / Pros & Cons

Technical trade-offs and operational friction

✓ Strong Marks

+ Accesses an independent search index free from commercial advertising tracking.

+ Fast query response times with lightweight JSON-RPC result serialization.

+ Simple single-key authentication setup via environment variable.

✕ Watch For

− The free API tier enforces a strict rate limit of 1 request per second, causing bursty multi-query research loops to trigger 429 throttling errors.

− Returns short text snippets rather than parsed full-page Markdown, requiring a secondary fetch tool to inspect full article contents.

08 / Alternatives & Battleground

Side-by-side rival comparisons

Compare Brave Search MCP Server vs Exa Search MCP Server across transport protocols and exposed tools.

Enter Showdown
09 / Sources & Changelog

JSON-RPC 2.0 wire trace & receipts

Inspect Raw JSON-RPC 2.0 Wire PacketIPC TELEMETRY
✦ JSON-RPC 2.0 WIRE PROTOCOL SPECIMEN
Claude Desktop [Client]──stdio pipe──▶Brave Search MCP Server [Daemon]
method: "tools/call"
1{
2 "jsonrpc": "2.0",
3 "id": 8,
4 "method": "tools/call",
5 "params": {
6 "name": "brave_web_search",
7 "arguments": {
8 "query": "Model Context Protocol specification RFC",
9 "count": 3
10 }
11 }
12}
IPC TransportSTDIO (POSIX Pipe)
Round-Trip Latency142.5ms
Wire Payload520 bytes
Protocol FramingNewline Delimited (\n)