Execute web searches with pagination and filtering options
Search for local businesses and services with automatic fallback to web search if no local results are found
The Brave Search integration provides powerful search capabilities through the Brave Search API. It offers both web search functionality for general queries, news, and articles, as well as local search for finding businesses and services. With flexible filtering options and smart fallbacks, this integration delivers comprehensive search results while maintaining user privacy.
Brave Search is an MCP server that integrates with the Brave Search API to provide comprehensive search capabilities. It offers both web search for general queries and local search for finding businesses and services in specific locations.
To use the Brave Search MCP server, you'll need to obtain an API key:
You can install the Brave Search MCP server using either Docker or NPX.
Add the following configuration to your client's settings:
{
"mcpServers": {
"brave-search": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BRAVE_API_KEY",
"mcp/brave-search"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Add the following configuration to your client's settings:
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
For VS Code users, you can add the Brave Search MCP server to your settings by adding the following to your User Settings (JSON) file:
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "brave_api_key",
"description": "Brave Search API Key",
"password": true
}
],
"servers": {
"brave-search": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-brave-search"],
"env": {
"BRAVE_API_KEY": "${input:brave_api_key}"
}
}
}
}
}
Alternatively, you can create a .vscode/mcp.json
file in your workspace with the same configuration (without the mcp
key) to share it with others.
To perform a web search, use the brave_web_search
tool:
I need information about renewable energy sources. Can you search for that?
To find local businesses or services, use the brave_local_search
tool:
Find Italian restaurants in Boston
The Brave Search MCP server supports various configuration options through environment variables:
BRAVE_API_KEY
: Your Brave Search API key (required)BRAVE_SEARCH_ENDPOINT
: Custom API endpoint (optional)BRAVE_SEARCH_TIMEOUT
: Request timeout in milliseconds (optional)If you encounter issues with the Brave Search MCP server:
For additional help, refer to the Brave Search API documentation.