
Brave Search
STDIOMCP server using Brave Search API for web and local search with proxy support.
MCP server using Brave Search API for web and local search with proxy support.
An MCP server leveraging the Brave Search API for web and local search, with optional HTTP proxy configuration.
This repository forks from the Model Context Protocol servers and replaces the native fetch
implementation with the library node-fetch-native.
The server will use the http_proxy
and https_proxy
environment variables to route requests through the proxy server by default if they are set.
You also can set the BRAVE_SEARCH_PROXY
environment variable to use a different proxy server.
brave_web_search
query
(string): Search termscount
(number, optional): Results per page (max 20)offset
(number, optional): Pagination offset (max 9)brave_local_search
query
(string): Local search termscount
(number, optional): Number of results (max 20)Add this to your claude_desktop_config.json
:
{ "mcpServers": { "brave-search": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "BRAVE_API_KEY", "mcp/brave-search" ], "env": { "BRAVE_API_KEY": "YOUR_API_KEY_HERE", "BRAVE_SEARCH_PROXY": "https://example.com:10890" // Optional, remove if not needed } } } }
{ "mcpServers": { "brave-search": { "command": "npx", "args": [ "-y", "@kwp-lab/mcp-brave-search" ], "env": { "BRAVE_API_KEY": "YOUR_API_KEY_HERE", "BRAVE_SEARCH_PROXY": "https://example.com:10890" // Optional, remove if not needed } } } }
For quick installation, use the one-click installation buttons below...
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P
and typing Preferences: Open User Settings (JSON)
.
Optionally, you can add it to a file called .vscode/mcp.json
in your workspace. This will allow you to share the configuration with others.
Note that the
mcp
key is not needed in the.vscode/mcp.json
file.
{ "mcp": { "inputs": [ { "type": "promptString", "id": "brave_api_key", "description": "Brave Search API Key", "password": true } ], "servers": { "brave-search": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "BRAVE_API_KEY", "mcp/brave-search" ], "env": { "BRAVE_API_KEY": "${input:brave_api_key}", "BRAVE_SEARCH_PROXY": "https://example.com:10890" // Optional, remove if not needed } } } } }
{ "mcp": { "inputs": [ { "type": "promptString", "id": "brave_api_key", "description": "Brave Search API Key", "password": true } ], "servers": { "brave-search": { "command": "npx", "args": ["-y", "@kwp-lab/mcp-brave-search"], "env": { "BRAVE_API_KEY": "${input:brave_api_key}", "BRAVE_SEARCH_PROXY": "https://example.com:10890" // Optional, remove if not needed } } } } }
Docker build:
docker build -t mcp/brave-search:latest -f ./Dockerfile .
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.