Brave Search MCP Server provides a powerful integration with Brave Search API, enabling web, image, news, video, and local points of interest search capabilities through the Model Context Protocol.
docker build -t brave-search-mcp:latest -f ./Dockerfile .
No additional installation steps are required when using NPX.
Add the following configuration to your claude_desktop_config.json
:
{
"mcp-servers": {
"brave-search": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BRAVE_API_KEY",
"brave-search-mcp"
],
"env": {
"BRAVE_API_KEY": "YOUR API KEY HERE"
}
}
}
}
Add this to your claude_desktop_config.json
:
{
"mcp-servers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"brave-search-mcp"
],
"env": {
"BRAVE_API_KEY": "YOUR API KEY HERE"
}
}
}
}
Add this to your librechat.yaml
configuration:
brave-search:
command: sh
args:
- -c
- BRAVE_API_KEY=API KEY npx -y brave-search-mcp
The Brave Search MCP Server provides several powerful search tools:
Execute web searches using Brave's API:
query
(string): The term to search the internet forcount
(number, optional): The number of results to return (max 20, default 10)Get images from the web relevant to your query:
query
(string): The term to search for imagescount
(number, optional): The number of images to return (max 3, default 1)Search the web for news articles:
query
(string): The term to search for news, trending topics, or recent eventscount
(number, optional): The number of results to return (max 20, default 10)Find local businesses, services, and points of interest:
query
(string): Local search termcount
(number, optional): The number of results to return (max 20, default 5)Search the web for videos:
query
(string): The term to search for videoscount
(number, optional): The number of videos to return (max 20, default 10)There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.