mcp2brave
一个基于MCP协议的服务器,使用Brave API实现网络搜索功能。
系统要求
- Python 3.11+
- UV包管理器
- Brave API密钥
安装步骤
- 克隆项目
git clone <仓库地址>
cd mcp2brave
- 创建并编辑环境变量文件
# 添加Brave API密钥到.env文件
.env
- 使用UV创建虚拟环境
# 创建并激活虚拟环境
uv venv
# Windows系统使用:
.venvScriptsactivate
# 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集成

使用示例

MCP2Brave
Project Details
- mcp2everything/mcp2brave
- MIT License
- Last Updated: 3/29/2025
Recomended MCP Servers
This read-only MCP Server allows you to connect to LDAP data from Claude Desktop through CData JDBC Drivers....
An MCP server to wrap ripgrep
An MCP server for AI agents to explore DeFi yield opportunities, powered by DefiLlama.
A Model Control Protocol (MCP) server that allows Claude to communicate with locally running LLM models via LM...
A Model Context Protocol server for integrating HackMD's note-taking platform with AI assistants.
Send Nano currency from AI agents/LLMs
A modern, open-source, self-hosted knowledge management and note-taking platform designed for privacy-conscious users and organizations.
A powerful MCP tool for forging and managing AI agent personalities with customizable expert traits and behaviors.
Model Context Protocol server to allow for reading and writing from Pinecone. Rudimentary RAG
Kubernetes Control Plane Server for Managing Multiple Clusters – the central pilot for your k8s fleets✈️✈️





