Cover image
Try Now
2025-01-11

一个 MCP 服务器 , 基于 API valiente 让你的 Claude Cline 以及 Langchain 实现网络搜索功能。an MCP Server que usa API Brave permite que su Cline y Langchain de Claude implementen funciones de búsqueda de red.

3 years

Works with Finder

1

Github Watches

3

Github Forks

1

Github Stars

mcp2brave

一个基于MCP协议的服务器,使用Brave API实现网络搜索功能。

系统要求

  • Python 3.11+
  • UV包管理器
  • Brave API密钥

安装步骤

  1. 克隆项目
git clone <仓库地址>
cd mcp2brave
  1. 创建并编辑环境变量文件
# 添加Brave API密钥到.env文件
.env
  1. 使用UV创建虚拟环境
# 创建并激活虚拟环境
uv venv
# Windows系统使用:
.venv\Scripts\activate
# Linux/Mac系统使用:
source .venv/bin/activate
  1. 安装依赖
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集成

配置

使用示例

搜索示例

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • XLwebDev.com
  • PR Professional: Guiding You to Get Media Placements and Publicity Quickly and Effectively

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • OffchainLabs
  • Implementación de la prueba de estaca Ethereum

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

    Reviews

    1 (1)
    Avatar
    user_JcNdINwi
    2025-04-15

    As a loyal user of MCP OpenMetadata, I can confidently say it has revolutionized the way I manage and organize metadata. The user-friendly interface and comprehensive features help streamline data management significantly. Kudos to the author, pfldy2850, for creating such an essential tool! Highly recommended for anyone looking to optimize their metadata processes.