必应搜索MCP

@leehanchung/bing-search-mcp
2 Stars 2.0k 次浏览 leehanchung 更新于 2026-08-23

一个集成了微软必应搜索API的模型上下文协议服务器,允许人工智能助手进行网络、新闻和图片搜索。

该服务暂未提供标准配置,请参考 README 手动接入

可用工具 (3 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

bing_web_search 4 个参数 需填 1 项

Performs a web search using the Bing Search API for general information and websites. Args: query: Search query (required) count: Number of results (1-50, default 10) offset: Pagination offset (default 0) market: Market code like en-US, en-GB, etc.

必填参数:query

bing_news_search 4 个参数 需填 1 项

Searches for news articles using Bing News Search API for current events and timely information. Args: query: News search query (required) count: Number of results (1-50, default 10) market: Market code like en-US, en-GB, etc. freshness: Time period of news (Day, Week, Month)

必填参数:query

bing_image_search 3 个参数 需填 1 项

Searches for images using Bing Image Search API for visual content. Args: query: Image search query (required) count: Number of results (1-50, default 10) market: Market code like en-US, en-GB, etc.

必填参数:query

服务介绍

Bing 搜索 MCP 服务器

一个用于 Microsoft Bing 搜索 API 集成的模型上下文协议 (MCP) 服务器,允许 AI 助手执行网页、新闻和图片搜索。

smithery 徽章

Bing 搜索 MCP 服务器

特性

  • 通用信息的网页搜索
  • 最新事件和及时信息的新闻搜索
  • 视觉内容的图片搜索
  • 速率限制以防止 API 滥用
  • 全面的错误处理

要求

  • Python 3.10 或更高版本
  • Microsoft Bing 搜索 API 密钥
  • 支持 MCP 的客户端(例如:Claude Desktop, Cursor)

安装

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

配置

设置所需的环境变量:

export BING_API_KEY="your-bing-api-key"
export BING_API_URL="https://api.bing.microsoft.com/"  # Optional

对于 Windows:

set BING_API_KEY=your-bing-api-key
set BING_API_URL=https://api.bing.microsoft.com/

使用

运行服务器

uvx bing-search-mcp

与 Claude Desktop 配置

将以下内容添加到您的 Claude Desktop 配置文件中(macOS 上为 ~/Library/Application Support/Claude/claude_desktop_config.json,Windows 上为 %APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "bing-search": {
      "command": "uvx",
      "args": [
        "/path/to/your/bing-search-mcp"
      ],
      "env": {
        "BING_API_KEY": "your-bing-api-key"
      }
    }
  }
}

Claude 代码 Bing 搜索 MCP

可用工具

用于搜索信息、网站和内容的一般网络搜索。

bing_web_search(query: str, count: int = 10, offset: int = 0, market: str = "en-US")

搜索新闻文章和当前事件。

bing_news_search(query: str, count: int = 10, market: str = "en-US", freshness: str = "Day")

搜索图片。

bing_image_search(query: str, count: int = 10, market: str = "en-US")

获取 Bing API 密钥

  1. 访问 Microsoft Azure 门户
  2. 创建或登录您的 Azure 帐户
  3. 创建一个新的 Bing 搜索资源
  4. 进入该资源并在“密钥和终结点”部分找到您的 API 密钥

许可证

MIT 许可证

相关 MCP 服务