An MCP Server implementation that integrates the Brave Search API, providing, Web Search, Local Points of Interest Search, Video Search, Image Search and News Search capabilities - Web Search: Perform a regular search on the web - Image Search: Search the web for images. - News Search: Search the web for news - Video Search: Search the web for videos - Local Points of Interest Search: Search for l
Add this skill
npx mdskills install mikechao/brave-search-mcpClear setup and tool descriptions for web and local search via Brave API
An MCP Server implementation that integrates the Brave Search API, providing, Web Search, Local Points of Interest Search, Video Search, Image Search and News Search capabilities
brave_web_search
query (string): The term to search the internet forcount (number, optional): The number of results to return (max 20, default 10)offset (number, optional, default 0): The offset for paginationfreshness (enum, optional): Filters search results by when they were discovered
brave_image_search
query (string): The term to search the internet for images ofcount (number, optional): The number of images to return (max 50, default 10)brave_news_search
query (string): The term to search the internet for news articles, trending topics, or recent eventscount (number, optional): The number of results to return (max 20, default 10)offset (number, optional, default 0): The zero-based offset for pagination (max 9)freshness (enum, optional): Filters search results by when they were discovered
brave_local_search
query (string): Local search termcount (number, optional): The number of results to return (max 20, default 5)offset (number, optional, default 0): The zero-based offset for pagination (max 9)brave_video_search
query: (string): The term to search for videoscount: (number, optional): The number of videos to return (max 20, default 10)offset (number, optional, default 0): The zero-based offset for pagination (max 9)freshness (enum, optional): Filters search results by when they were discovered

▶️ Click to watch the demo video
There is now support for OpenAI Apps and MCP Apps in this MCP Server. When UI mode is enabled for each tool there is a corresponding UI widget that let's you control what gets added to the model's context. See the directions in usage with ChatGPT section.
By default the MCP server runs in stdio mode.
BRAVE_API_KEY="your_key_here" npx -y brave-search-mcp
To enable Streamable HTTP mode:
BRAVE_API_KEY="your_key_here" npx -y brave-search-mcp --http
By default the server listens on port 3001. The URL is:
http://0.0.0.0:3001/mcp
When running in HTTP mode, the following environment variables are supported:
BRAVE_API_KEY (required): Brave Search API key.PORT (optional): HTTP port (default: 3001).HOST (optional): Interface to bind to (default: 0.0.0.0).ALLOWED_HOSTS (optional): Comma-separated list of allowed hostnames for Host header validation.
ALLOWED_HOSTS=localhost,127.0.0.1,my-app.ngrok-free.appmy-app.ngrok-free.app not https://my-app.ngrok-free.app/mcpExamples:
# Local only
HOST=127.0.0.1 ALLOWED_HOSTS=localhost,127.0.0.1 BRAVE_API_KEY="your_key_here" npx -y brave-search-mcp --http
# Local with ngrok tunnel
HOST=127.0.0.1 ALLOWED_HOSTS=localhost,127.0.0.1,my-app.ngrok-free.app BRAVE_API_KEY="your_key_here" npx -y brave-search-mcp --http --ui
The Brave Search MCP Server can be used with the web UI of ChatGPT. It takes a few steps.
Settings → Apps → Advanced settings → Developer mode
Additional instructions here
BRAVE_API_KEY="your_key_here" npx -y brave-search-mcp --http --ui
Sign up and configure ngrok, the free plan works.
ngrok http 3001
Take note of the forwarding URL.
...
Forwarding https://john-joe-asdf.ngrok-free.dev -> http://localhost:3001
...
Click Apps
Click Create Apps
Fill out the form using the URL from step 3 as the MCP Server URL, but add /mcp.
https://john-joe-asdf.ngrok-free.dev/mcp
For Authentication, select 'No Auth'
Tick the checkbox for 'I understand and want to continue'
Then click Create.
In the ChatGPT UI, click the '+' button, scroll to '...more', select the newly created Brave Search app, and enter your query.
For Claude Code users, run this command:
Windows:
claude mcp add-json brave-search '{"command":"cmd","args":["/c","npx","-y","brave-search-mcp"],"env":{"BRAVE_API_KEY":"YOUR_API_KEY_HERE"}}'
Linux/macOS:
claude mcp add-json brave-search '{"command":"npx","args":["-y","brave-search-mcp"],"env":{"BRAVE_API_KEY":"YOUR_API_KEY_HERE"}}'
Replace YOUR_API_KEY_HERE with your actual Brave Search API key.
mcpb file from the Releasesdocker build -t brave-search-mcp:latest -f ./Dockerfile .
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 librechat.yaml
brave-search:
command: sh
args:
- -c
- BRAVE_API_KEY=API KEY npx -y brave-search-mcp
Contributions are welcome! See CONTRIBUTING.md for development setup, monorepo structure, and release instructions.
This library is not officially associated with Brave Software. It is a third-party implementation of the Brave Search API with a MCP Server.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Install via CLI
npx mdskills install mikechao/brave-search-mcpBrave Search MCP Server is a free, open-source AI agent skill. An MCP Server implementation that integrates the Brave Search API, providing, Web Search, Local Points of Interest Search, Video Search, Image Search and News Search capabilities - Web Search: Perform a regular search on the web - Image Search: Search the web for images. - News Search: Search the web for news - Video Search: Search the web for videos - Local Points of Interest Search: Search for l
Install Brave Search MCP Server with a single command:
npx mdskills install mikechao/brave-search-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
Brave Search MCP Server works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.