https://github.com/mcp2everything/mcp2brave
一个MCP服务器,基于Brave API让你的Claude Cline以及Langchain实现网络搜索功能。An MCP server that use Brave API allows your Claude Cline and Langchain to implement network search functions.
https://github.com/mcp2everything/mcp2brave
Last synced: 6 months ago
JSON representation
一个MCP服务器,基于Brave API让你的Claude Cline以及Langchain实现网络搜索功能。An MCP server that use Brave API allows your Claude Cline and Langchain to implement network search functions.
- Host: GitHub
- URL: https://github.com/mcp2everything/mcp2brave
- Owner: mcp2everything
- License: mit
- Created: 2025-01-11T01:52:02.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-11T01:55:55.000Z (9 months ago)
- Last Synced: 2025-04-13T15:17:06.389Z (6 months ago)
- Language: Python
- Size: 142 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp-servers - **mcp2brave** - 一个MCP服务器,基于Brave API让你的Claude Cline以及Langchain实现网络搜索功能。An MCP server that use Brave API allows your Claude Cline and Langchain to implement network search functions. `python` `mcp` `server` `api` `ai` `pip install git+https://github.com/mcp2everything/mcp2brave` (AI/ML)
- awesome-mcp-servers - **mcp2brave** - 一个MCP服务器,基于Brave API让你的Claude Cline以及Langchain实现网络搜索功能。An MCP server that use Brave API allows your Claude Cline and Langchain to implement network search functions. `python` `mcp` `server` `api` `ai` `pip install git+https://github.com/mcp2everything/mcp2brave` (AI/ML)
- mcp-index - MCP2Brave - Connects to the Brave API to perform web searches, enabling access to search results within the MCP framework. (Developer Tools)
README
# mcp2brave
一个基于MCP协议的服务器,使用Brave API实现网络搜索功能。
## 系统要求
- Python 3.11+
- UV包管理器
- Brave API密钥## 安装步骤
1. 克隆项目
```bash
git clone <仓库地址>
cd mcp2brave
```2. 创建并编辑环境变量文件
```bash
# 添加Brave API密钥到.env文件
.env
```3. 使用UV创建虚拟环境
```bash
# 创建并激活虚拟环境
uv venv
# Windows系统使用:
.venv\Scripts\activate
# Linux/Mac系统使用:
source .venv/bin/activate
```4. 安装依赖
```bash
uv sync
```## 使用方法
### 安装为Claude扩展
```bash
fastmcp install mcp2brave.py
```### 开发模式与MCP检查器
要使用MCP检查器测试功能:```bash
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服务器配置文件,加入以下信息
```json"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集成
### 使用示例
