Bing Search MCP Server - MCP服务,MCP服务器,MCP教程

基本能力

产品定位

Bing Search MCP Server 是一个搜索服务,通过集成 Microsoft Bing Search API,为 AI 助手提供网页、新闻和图片搜索功能。

核心功能

  • 网页搜索:用于查找一般信息和网站内容。
  • 新闻搜索:用于查找近期事件和及时信息。
  • 图片搜索:用于查找视觉内容。
  • 速率限制:防止 API 滥用。
  • 全面的错误处理:确保服务的稳定性。

适用场景

  • AI 助手需要获取实时网页信息时。
  • 需要查找新闻或图片内容时。
  • 需要集成 Bing 搜索功能的应用程序。

工具列表

  1. bing_web_search:用于一般网页搜索。
    python
    bing_web_search(query: str, count: int = 10, offset: int = 0, market: str = "en-US")
  2. bing_news_search:用于新闻搜索。
    python
    bing_news_search(query: str, count: int = 10, market: str = "en-US", freshness: str = "Day")
  3. bing_image_search:用于图片搜索。
    python
    bing_image_search(query: str, count: int = 10, market: str = "en-US")

常见问题解答

  • 如何获取 Bing API Key?
  • 访问 Microsoft Azure Portal
  • 创建或登录您的 Azure 账户。
  • 创建一个新的 Bing Search 资源。
  • 在“Keys and Endpoint”部分找到您的 API 密钥。

使用教程

使用依赖

  • Python 3.10 或更高版本。
  • Microsoft Bing Search API 密钥。
  • MCP 兼容的客户端(如 Claude Desktop、Cursor)。

安装教程

  1. 克隆仓库。
  2. 安装依赖:
    uv venv
    source .venv/bin/activate # On Windows: .venv\Scripts\activate
    uv pip install -e .

配置

设置环境变量:
bash
export BING_API_KEY="your-bing-api-key"
export BING_API_URL="https://api.bing.microsoft.com/" # Optional

Windows 用户:
cmd
set BING_API_KEY=your-bing-api-key
set BING_API_URL=https://api.bing.microsoft.com/

调试方式

运行服务器:
uvx bing-search-mcp
配置 Claude Desktop:
在配置文件(~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json)中添加:
json
{
"mcpServers": {
"bing-search": {
"command": "uvx",
"args": [
"/path/to/your/bing-search-mcp"
],
"env": {
"BING_API_KEY": "your-bing-api-key"
}
}
}
}

点击访问

搜索工具

duckduckgo-search MCP Server - MCP服务,MCP服务器,MCP教程

2025-5-3 4:03:02

搜索工具

Shodan MCP Server - MCP服务,MCP服务器,MCP教程

2025-5-3 4:03:10

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索