by mikechao
An MCP Server implementation that integrates the Brave Search API, providing, Web Search, Local Points of Interest Search, Image Search, Video Search, News Search and LLM Context Search capabilities
# Add to your Claude Code skills
git clone https://github.com/mikechao/brave-search-mcpGuides for using mcp servers skills like brave-search-mcp.
brave-search-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mikechao. An MCP Server implementation that integrates the Brave Search API, providing, Web Search, Local Points of Interest Search, Image Search, Video Search, News Search and LLM Context Search capabilities. It has 132 GitHub stars.
brave-search-mcp's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/mikechao/brave-search-mcp" and add it to your Claude Code skills directory (see the Installation section above).
brave-search-mcp is primarily written in TypeScript. It is open-source under mikechao on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh brave-search-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
An MCP Server implementation that integrates the Brave Search API, providing, Web Search, Local Points of Interest Search, Video Search, Image Search, News Search and LLM Context Search capabilities
HTTP and stdio clients must support MCP protocol revision 2026-07-28 and use server/discover. The server rejects the older initialize handshake on both transports. When using the v2 TypeScript SDK, pin the client with { versionNegotiation: { mode: { pin: '2026-07-28' } } }.
For clients that only support initialize, pin the server package to [email protected]. Use Node.js 24 for the legacy HTTP server. Node.js 20.19.0 works with the 2.1.0 stdio server, but its HTTP server requires Promise.withResolvers, which is unavailable on that runtime.
See the 3.0.0 migration guide for runtime, tool, and deployment changes.
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
brave_llm_context_search
balanced context threshold mode in compact mode and disables Brave relevance filtering in full mode.query (string): The search query. Maximum 400 characters and 50 words. When url is provided, the query only ranks retrieved snippets locally in compact mode.url (string, optional): When provided, Brave retrieves context using the URL alone in both response modes. The tool returns only snippets from that exact URL.count (number, optional, default 8): The maximum number of search results considered. Minimum 1, maximum 50.maximumNumberOfUrls (number, optional, default 8): The maximum number of URLs to include in the response. Minimum 1, maximum 50.maximumNumberOfTokens (number, optional, default 2048): The approximate maximum number of tokens in the returned context. Minimum 1024, maximum 32768.maximumNumberOfSnippets (number, optional, default 16): The maximum number of snippets across all URLs. Minimum 1, maximum 100.maximumNumberOfTokensPerUrl (number, optional, default 512): The maximum number of tokens per URL. Minimum 512, maximum 8192.maximumNumberOfSnippetsPerUrl (number, optional, default 2): The maximum number of snippets per URL. Minimum 1, maximum 100.responseMode (enum, optional, default compact): compact applies Brave's balanced relevance filtering plus local snippet filtering/truncation. full disables Brave's relevance filtering and returns raw snippets without local filtering or truncation.maxSnippetChars (number, optional, default 400): Maximum characters per snippet in compact mode. Minimum 80, maximum 4000.maxOutputChars (number, optional, default 8000): Approximate maximum serialized response size in compact mode. Minimum 1000, maximum 100000.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
Set BRAVE_API_KEY for every deployment. The other requirements depend on your transport, hosting environment, and authentication method.
| Variable | Required when | Default if unset | Purpose |
|---|---|---|---|
BRAVE_API_KEY |
Always | None | Authenticates the server to Brave Search. |
BRAVE_MCP_CALLER_ID |
Optional | None | Sets a caller identifier for local stdio connections. |
BRAVE_MCP_UI |
Optional | false |
Vercel only. Set to true to serve widget resources. For the CLI, use --ui. |
| Variable | Required when | Default if unset | Purpose |
|---|---|---|---|
HOST |
Optional | 0.0.0.0 |
Sets the bind address for standalone HTTP. |
PORT |
Optional | 3001 |
Sets the listening port for standalone HTTP. |
ALLOWED_HOSTS |
Optional | Loopback hostnames on loopback bindings. Any hostname otherwise. | Restricts the HTTP Host header to a list of hostnames. |
ALLOWED_ORIGINS |
Optional | Loopback origins on loopback bindings only. | Restricts browser Origin headers on /mcp to a list of hostnames. |
Use comma-separated hostnames such as localhost,127.0.0.1,my-app.ngrok-free.app. A configured list replaces the default. For example, ALLOWED_ORIGINS=browser.example.com allows a browser at `https://browser.exam