Bing Search MCP Server

MIT License
19
  • Apple

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Supports configuration with Claude Desktop on macOS, allowing users to add the Bing Search MCP server to their Claude Desktop setup via the local configuration file.

Bing 搜索 MCP 服务器

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

特征

  • 网上搜索一般信息
  • 新闻搜索最近发生的事件和及时的信息
  • 视觉内容的图像搜索
  • 限制速率以防止 API 滥用
  • 全面的错误处理

要求

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

安装

  1. 克隆此存储库
  2. 安装依赖项:
    uv venv source .venv/bin/activate # On 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 for 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" } } } }

可用工具

对信息、网站和内容进行常规网络搜索。

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. 创建新的必应搜索资源
  4. 转到资源并在“密钥和端点”部分中找到您的 API 密钥

执照

MIT 许可证

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

与 Microsoft Bing Search API 集成的模型上下文协议服务器,允许 AI 助手执行网络、新闻和图像搜索。

  1. Features
    1. Requirements
      1. Installation
        1. Configuration
          1. Usage
            1. Running the server
            2. Configuring with Claude for Desktop
          2. Available Tools
            1. 1. bing_web_search
            2. 2. bing_news_search
            3. 3. bing_image_search
          3. Getting a Bing API Key
            1. License
              ID: nwtqbda2xc