LB

leehanchung/bing-search-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

81 stars 12 forks Качество 65 Тренд 0MIT

leehanchung/bing-search-mcp - кандидат на сервер MCP, импортированный из https://github.com/leehanchung/bing-search-mcp.

Обзор

leehanchung/bing-search-mcp - кандидат на сервер MCP, импортированный из https://github.com/leehanchung/bing-search-mcp.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP) для интеграции Microsoft Bing Search API, позволяющий помощникам ИИ выполнять поиск веб-страниц, новостей и изображений.

Особенности

  • Веб-поиск общей информации Поиск новостей о последних событиях и своевременной информации
  • Поиск изображений для визуального контента Ограничение ставок для предотвращения злоупотребления API
  • Комплексная обработка ошибок

Требования

Python 3.10 или выше Ключ Microsoft Bing Search API MCP-совместимый клиент (например, Claude Desktop, Cursor)

##Установка

  1. Клонировать это хранилище
  2. Установить зависимости:

Конфигурация

Установите необходимые переменные среды:

Для Windows:

Использование

Запуск сервера

Настройка с помощью Claude for Desktop

Добавьте в конфигурационный файл Claude Desktop ~/Library/Application Support/Claude/claude_desktop_config.json на macOS или %APPDATA%\Claude\claude_desktop_config.json на Windows следующее:

Доступные инструменты

###1. bing web arch Общий веб-поиск информации, веб-сайтов и контента.

Поиск новостей и текущих событий.

###3, bing image search Поиск изображений.

Получение ключа API Bing

1 Посетить Microsoft Azure Portal 2.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Bing Search MCP Server

A Model Context Protocol (MCP) server for Microsoft Bing Search API integration, allowing AI assistants to perform web, news, and image searches.

Features

  • Web search for general information
  • News search for recent events and timely information
  • Image search for visual content
  • Rate limiting to prevent API abuse
  • Comprehensive error handling

Requirements

  • Python 3.10 or higher
  • Microsoft Bing Search API key
  • MCP-compatible client (e.g., Claude Desktop, Cursor)

Installation

  1. Clone this repository
  2. Install dependencies:
    uv venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    uv pip install -e .
    

Configuration

Set the required environment variables:

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

For Windows:

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

Usage

Running the server

uvx bing-search-mcp

Configuring with Claude for Desktop

Add the following to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):

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

Available Tools

1. bing_web_search

General web search for information, websites, and content.

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

2. bing_news_search

Search for news articles and current events.

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

3. bing_image_search

Search for images.

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

Getting a Bing API Key

  1. Visit Microsoft Azure Portal
  2. Create or sign in to your Azure account
  3. Create a new Bing Search resource
  4. Go to the resource and find your API key in the “Keys and Endpoint” section

License

MIT License

Открыть полный README на GitHub

Установка

uvx /path/to/your/bing-search-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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