MCP2Brave
A server based on the MCP protocol that uses the Brave API for web search functionality.
mcp2everything
Tools
search_brave_with_summary
Search the web using Brave Search API
brave_search_summary
使用Brave搜索引擎搜索网络信息
get_url_content_direct
Get webpage content directly using HTTP request Args: url (str): The URL to fetch content from Returns: str: The webpage content and metadata
url_content
直接获取网页内容 参数: url (str): 目标网页地址 返回: str: 网页内容和元数据
search_news
Search news using Brave News API Args: query (str): The search query for news Returns: str: News search results including titles, sources, dates and descriptions
search_news_info
使用Brave新闻API搜索新闻 参数: query (str): 新闻搜索关键词 返回: str: 新闻搜索结果,包含标题、来源、日期和描述
README
mcp2brave
一个基于MCP协议的服务器,使用Brave API实现网络搜索功能。
系统要求
- Python 3.11+
- UV包管理器
- Brave API密钥
安装步骤
- 克隆项目
git clone <仓库地址>
cd mcp2brave
- 创建并编辑环境变量文件
# 添加Brave API密钥到.env文件
.env
- 使用UV创建虚拟环境
# 创建并激活虚拟环境
uv venv
# Windows系统使用:
.venv\Scripts\activate
# Linux/Mac系统使用:
source .venv/bin/activate
- 安装依赖
uv sync
使用方法
安装为Claude扩展
fastmcp install mcp2brave.py
开发模式与MCP检查器
要使用MCP检查器测试功能:
fastmcp dev mcp2brave.py
运行后,可以在浏览器访问MCP检查器:http://localhost:5173
可用工具
search_web(query: str)
: 使用Brave API搜索网络search_web_info(query: str)
: 同上,带中文描述
环境变量
Brave_API_KEY
: 你的Brave API密钥(必需)
注意事项
- 确保在使用前已正确设置API密钥
- 虚拟环境激活后才能运行相关命令
- 如遇到编码问题,请确保系统使用UTF-8编码
手动添加Cline Continue Claude
打开Cline Continue Claude的MCP服务器配置文件,加入以下信息
"mcp2brave": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"--with",
"python-dotenv",
"--with",
"beautifulsoup4",
"--with",
"requests",
"fastmcp",
"run",
"C:\\Users\\你的真实路径\\mcp2brave.py"
],
"env": {
"BRAVE_API_KEY": "API密钥"
}
}
详细操作步骤
Cline集成
Cline集成
Cline集成
使用示例
Recommended Servers
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Exa MCP
A Model Context Protocol server that enables AI assistants like Claude to perform real-time web searches using the Exa AI Search API in a safe and controlled manner.
Web Research Server
A Model Context Protocol server that enables Claude to perform web research by integrating Google search, extracting webpage content, and capturing screenshots.
Web Research Server
MCP web research server (give Claude real-time info from the web) - oneshot-engineering/mcp-webresearch
MCP Servers
Collection of Model Context Protocol (MCP) servers for Cursor IDE integration
Google Search Server
Web Research
A Model Context Protocol (MCP) server for web research. Bring real-time info into Claude and easily research any topic.
Bing Search
A Model Context Protocol server that integrates with Microsoft Bing Search API, allowing AI assistants to perform web, news, and image searches.

Kagi Search
Allows the use of Kagi's API for web searching and content enrichment through methods like fastgpt, enrich/web, and enrich/news.
Kagi Search
Kagi search API integration