跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Brave Search,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
来自 Brave 独立索引的实时网页搜索:可直接用于支撑回答的网页正文(LLM Context),网页、新闻、图片和视频搜索,地点,自动补全,拼写检查以及 AI 回答。只读;需要 Brave Search API 密钥,每次调用都按你的 Brave 套餐计费。
试试这样问
Brave Search 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Brave Search、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Brave Search
来自 Brave 独立索引的实时网页搜索:可直接用于支撑回答的网页正文(LLM Context),网页、新闻、图片和视频搜索,地点,自动补全,拼写检查以及 AI 回答。只读;需要 Brave Search API 密钥,每次调用都按你的 Brave 套餐计费。
设置
设置大约需要 3 分钟。你需要一个开通了套餐的 Brave Search API 账户。
- 在 https://api-dashboard.search.brave.com 创建账户,并在 Plans 中开通套餐(需要绑定银行卡)。Search 套餐涵盖 LLM Context、网页、新闻、图片、视频和地点;Autosuggest、Spellcheck 和 Answers 各有单独的套餐。
- 打开 API Keys,添加一个密钥并复制到
BRAVE_SEARCH_API_KEY。它通过X-Subscription-Token请求头发送。 - 安装连接器;检查会用
brave_search_web执行一次网页搜索。
每次调用都计费:每次搜索都是你 Brave 套餐上的一次请求。AI 会把默认值保持在较小范围,并且不重复同一个搜索。
用哪个工具:
brave_search_llm_context是回答当前事实类问题的默认工具。它返回排名靠前网页的相关正文(片段、表格、代码),并附上每个网页的 URL 和标题,这里约 4096 个 token;研究类问题可用maximum_number_of_tokens提高到最多 32768。brave_search_web是经典的搜索结果页(标题、URL、描述、时间),相关时还包含新闻、视频、讨论、FAQ、信息框和地点。brave_search_news、brave_search_videos和brave_search_images是专门的垂直搜索。brave_search_places按地区名称或坐标查找商家、地标和兴趣点;brave_search_get_pois和brave_search_get_poi_descriptions返回最多 20 个地点 ID 的详情(地址、电话、营业时间、评分)和描述,ID 有效期为 8 小时。brave_search_suggest补全查询的开头;brave_search_spellcheck纠正查询。brave_search_get_rich_result为带enable_rich_callback的网页搜索获取实时组件(天气、股价、汇率换算、体育比分)。brave_search_answer返回 Brave 生成的完整 AI 回答(Answers 套餐,按搜索次数和 token 计费)。除非你要求使用 Brave 的回答,AI 会优先用 LLM Context 并自己撰写回答。
搜索选项:q 中可以使用搜索运算符(site:example.com、加引号的精确短语、-word、filetype:pdf)。country 是两位国家代码(默认 US),search_lang 是语言代码(默认 en);需要本地结果时两者都要设置,例如 DE 和 de。freshness 可取 pd(24 小时)、pw(7 天)、pm(31 天)、py(365 天),或 2026-01-01to2026-03-31 这样的时间范围。如果拼写检查改动了查询,query.altered 会显示实际搜索的内容。地点的 location 是不带逗号的文本:freiburg germany,在美国则为 san francisco ca united states。
不可信内容:搜索结果和网页正文来自开放网络。AI 会把其中的指令当作数据而不是命令,并注明 URL。
只读:所有工具都只读,因此没有需要确认的操作,安装时也没有被关闭的工具。
限制:网页搜索每页最多 20 条结果,新闻和视频最多 50 条,最多 10 页(offset 为 0 到 9);图片一次最多 200 张,不分页;地点最多 100 个。查询最长 400 个字符、50 个词(LLM Context 为 600 个字符、75 个词)。每秒速率和每月配额取决于你的套餐。
常见错误:401 或 403 表示密钥错误,或调用了密钥套餐不包含的端点,例如在只有 Search 的套餐上调用 Answers。422 表示参数无效或缺失,错误信息会在 error.meta 中给出参数名。429 表示每秒限额或每月配额已用完:AI 会等一秒并重试一次;用量可在 Brave 控制台查看。
该连接器不支持流式回答,不使用 Answers 的引用和研究模式,也不包括 Summarizer。
前提条件: BRAVE_SEARCH_API_KEY
本地安装连接器
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
打开 http://localhost:3000/connectors/store,选择 Brave Search 并填入前提条件中列出的环境变量。
可用工具
| Tool | What it does |
|---|---|
brave_search_llm_context | Search the web with Brave and get the relevant text of the top pages, already extracted for a model (snippets, tables, code) with the… |
brave_search_web | Brave web search: ranked results with title, URL, description and age, plus news, videos, discussions, FAQ, infobox and local places when… |
brave_search_news | Brave news search: recent articles with title, URL, description, age and source site |
brave_search_images | Brave image search: images with title, the page they appear on, the image URL, a thumbnail and the size |
brave_search_videos | Brave video search: videos with title, URL, description, age, duration, creator, publisher and views |
brave_search_suggest | Query autocompletion: Brave search suggestions for the start of a query, e.g. to see what people search around a topic or to complete a name |
brave_search_spellcheck | Spell-check a query or phrase with Brave and get the corrected version (results[].query), e.g. to fix a misspelt name before searching |
brave_search_places | Find places (businesses, landmarks, points of interest) in an area from Brave's index of over 200 million locations: name, address… |
brave_search_get_pois | Get full details of up to 20 places by their location ids from brave_search_web or brave_search_places: address, phone, opening hours… |
brave_search_get_poi_descriptions | Get AI-written descriptions of up to 20 places by their location ids from brave_search_web or brave_search_places |
brave_search_get_rich_result | Fetch a live rich result (weather, stock quote, currency conversion, sports score, calculator...) for a web search run with… |
brave_search_answer | Ask Brave Answers a question: an AI-written answer grounded in a live web search |
示例提示
- “在网上搜索欧盟《人工智能法案》本月有哪些变化,并附来源进行总结。”
- “查找过去 24 小时关于欧洲中央银行的中文新闻。”
- “上海静安区附近有哪些药店?列出地址、营业时间和评分。”
- “在 site:docs.python.org 上查找 asyncio.TaskGroup 如何处理异常,并引用相关段落。”
- “给我 10 个在美国搜索 electric bike 的联想词。”
下一步
这份指南对你有帮助吗?