Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Brave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
BRAVE_API_KEY标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server"
],
"env": {
"BRAVE_API_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add brave-search --env BRAVE_API_KEY=your-value -- npx -y @brave/brave-search-mcp-server运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server"
],
"env": {
"BRAVE_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"brave-search": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server"
],
"env": {
"BRAVE_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 brave 验证,该账户拥有此仓库
代码最后更新于4天前
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:BRAVE_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于4天前,最新版本(2.1.3)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
An MCP server implementation that integrates the Brave Search API, providing comprehensive search capabilities including web search, local business search, place search, image search, video search, news search, LLM context, and AI-powered summarization. This project supports both STDIO and HTTP transports, with STDIO as the default mode.
To follow established MCP conventions, the server now defaults to STDIO. If you would like to continue using HTTP, you will need to set the BRAVE_MCP_TRANSPORT environment variable to http, or provide the runtime argument --transport http when launching the server.
brave_image_searchVersion 1.x of the MCP server would return base64-encoded image data along with image URLs. This dramatically slowed down the response, as well as consumed unnecessarily context in the session. Version 2.x removes the base64-encoded data, and returns a response object that more closely reflects the original Brave Search API response. The updated output schema is defined in src/tools/images/schemas/output.ts.
brave_web_search)Performs comprehensive web searches with rich result types and advanced filtering options.
Parameters:
query (string, required): Search terms (max 400 chars, 50 words)country (string, optional): Country code (default: "US")search_lang (string, optional): Search language (default: "en")ui_lang (string, optional): UI language (default: "en-US")count (number, optional): Results per page (1-20, default: 10)offset (number, optional): Pagination offset (max 9, default: 0)safesearch (string, optional): Content filtering ("off", "moderate", "strict", default: "moderate")freshness (string, optional): Time filter ("pd", "pw", "pm", "py", or date range)text_decorations (boolean, optional): Include highlighting markers (default: true)spellcheck (boolean, optional): Enable spell checking (default: true)result_filter (array, optional): Filter result types (default: ["web", "query"])goggles (array, optional): Custom re-ranking definitionsunits (string, optional): Measurement units ("metric" or "imperial")extra_snippets (boolean, optional): Get additional excerpts (Pro plans only)summary (boolean, optional): Enable summary key generation for AI summarizationbrave_local_search)Searches for local businesses and places with detailed information including ratings, hours, and AI-generated descriptions.
Parameters:
brave_web_search with automatic location filteringNote: Requires Pro plan for full local search capabilities. Falls back to web search otherwise.
brave_video_search)Searches for videos with comprehensive metadata and thumbnail information.
Parameters:
query (string, required): Search terms (max 400 chars, 50 words)country (string, optional): Country code (default: "US")search_lang (string, optional): Search language (default: "en")ui_lang (string, optional): UI language (default: "en-US")count (number, optional): Results per page (1-50, default: 20)offset (number, optional): Pagination offset (max 9, default: 0)spellcheck (boolean, optional): Enable spell checking (default: true)safesearch (string, optional): Content filtering ("off", "moderate", "strict", default: "moderate")freshness (string, optional): Time filter ("pd", "pw", "pm", "py", or date range)brave_image_search)Searches for images with metadata including URLs, dimensions, and confidence scores.
Parameters:
query (string, required): Search terms (max 400 chars, 50 words)country (string, optional): Country code (default: "US")search_lang (string, optional): Search language (default: "en")count (number, optional): Results per page (1-200, default: 50)safesearch (string, optional): Content filtering ("off", "strict", default: "strict")spellcheck (boolean, optional): Enable spell checking (default: true)brave_news_search)Searches for current news articles with freshness controls and breaking news indicators.
Parameters:
query (string, required): Search terms (max 400 chars, 50 words)country (string, optional): Country code (default: "US")search_lang (string, optional): Search language (default: "en")ui_lang (string, optional): UI language (default: "en-US")count (number, optional): Results per page (1-50, default: 20)offset (number, optional): Pagination offset (max 9, default: 0)spellcheck (boolean, optional): Enable spell checking (default: true)safesearch (string, optional): Content filtering ("off", "moderate", "strict", default: "moderate")freshness (string, optional): Time filter (default: "pd" for last 24 hours)extra_snippets (boolean, optional): Get additional excerpts (Pro plans only)goggles (array, optional): Custom re-ranking definitionsbrave_summarizer)Generates AI-powered summaries from web search results using Brave's summarization API.
Parameters:
key (string, required): Summary key from web search results (use summary: true in web search)entity_info (boolean, optional): Include entity information (default: false)inline_references (boolean, optional): Add source URL references (default: false)Usage: First perform a web search with summary: true, then use the returned summary key with this tool.
brave_place_search)Searches for points of interest (POIs) in a specified geographic area using Brave's Place Search API. Returns rich, structured place data including name, address, opening hours, contact info, ratings, photos, categories, and timezone.
Parameters:
query (string, optional): Query string used to refine the POI search (max 400 chars, 50 words). When omitted, returns general points of interest in the supplied area.latitude (number, optional): Latitude of the search center (-90 to 90). Typically paired with longitude.longitude (number, optional): Longitude of the search center (-180 to 180). Typically paired with latitude.location (string, optional): Location string used as an alternative to latitude/longitude. For US locations prefer the form (e.g., san francisco ca united states); for non-US locations use (e.g., tokyo japan).radius (number, optional): Search radius around the supplied coordinates, in meters. If omitted, the search is performed globally.count (number, optional): Number of results to return (1-50, default 20).country (string, optional): Two-letter country code (default US).search_lang (string, optional): Search language (default en).ui_lang (string, optional): UI language (default en-US).units (string, optional): Distance units (metric or imperial, default metric).safesearch (string, optional): Safe search level (off, moderate, strict, default strict).spellcheck (boolean, optional): Whether to spellcheck the query (default true).geoloc (string, optional): Optional geolocation token used to refine results.Optional request headers:
api-version (string, optional): Brave API version (YYYY-MM-DD)accept (string, optional): Response media type (application/json or */*)cache-control (string, optional): Use no-cache to request fresh contentuser-agent (string, optional): User agent originating the requestbrave_llm_context)Retrieves pre-extracted web content optimized for AI agents, LLM grounding, and RAG pipelines.
Parameters:
query (string, required): Search query (max 400 chars, 50 words)country (string, optional): Search country codesearch_lang (string, optional): Search language codecount (number, optional): Maximum number of search results considered (1-50)spellcheck (boolean, optional): Enable spell checkingmaximum_number_of_urls (number, optional): Maximum number of URLs to include (1-50)maximum_number_of_tokens (number, optional): Approximate maximum number of context tokens (1024-32768)maximum_number_of_snippets (number, optional): Maximum number of snippets to include (1-256)context_threshold_mode (string, optional): Threshold mode ("disabled", "strict", "lenient", "balanced")maximum_number_of_tokens_per_url (number, optional): Maximum tokens per URL (512-8192)maximum_number_of_snippets_per_url (number, optional): Maximum snippets per URL (1-100)goggles (string or array, optional): Goggle URL or definition for custom re-rankingfreshness (string, optional): Time filter ("pd", "pw", "pm", "py", or date range)enable_local (boolean, optional): Enable local recallenable_source_metadata (boolean, optional): Include source metadata enrichmentOptional request headers:
x-loc-lat (number, optional): Client latitude (-90 to 90)x-loc-long (number, optional): Client longitude (-180 to 180)x-loc-city (string, optional): Client city namex-loc-state (string, optional): Client state or region codex-loc-state-name (string, optional): Client state or region namex-loc-country (string, optional): Client country codex-loc-postal-code (string, optional): Client postal codeapi-version (string, optional): Brave API version (YYYY-MM-DD)accept (string, optional): Response media type ("application/json" or "*/*")cache-control (string, optional): Use no-cache to request fresh contentuser-agent (string, optional): User agent originating the requestThe server supports the following environment variables:
BRAVE_API_KEY: Your Brave Search API key (required unless BRAVE_API_KEY_FILE is set)BRAVE_API_KEY_FILE: Path to a file containing your Brave Search API key. When set, this takes precedence over BRAVE_API_KEY. Useful for Docker secrets and similar mounted-secret setups.BRAVE_MCP_TRANSPORT: Transport mode ("http" or "stdio", default: "stdio")BRAVE_MCP_PORT: HTTP server port (default: 8080)BRAVE_MCP_HOST: HTTP server host (default: "127.0.0.1"). Binds to loopback only by default; set to "0.0.0.0" to expose the server on all interfaces (required inside containers and on Amazon Bedrock AgentCore). Only do this on a trusted network, since the HTTP endpoint is unauthenticated.BRAVE_MCP_ALLOWED_ORIGINS: Space- or comma-separated list of additional Origin header values permitted for the HTTP transport. Loopback origins are always allowed; browser requests carrying any other Origin are rejected with HTTP 403 to guard against DNS rebinding. Set this when a browser-based client on a real domain needs access.BRAVE_MCP_ALLOWED_HOSTS: Space- or comma-separated list of hostnames permitted in the Host header of the HTTP transport. Matching is on the hostname