Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AIFire in da houseCheck it out free

bing-search-mcp

MCP.Pizza Chef: leehanchung

The bing-search-mcp is an MCP server that integrates Microsoft Bing Search API, enabling AI assistants to perform real-time web, news, and image searches. It supports rate limiting and comprehensive error handling to ensure reliable and efficient search operations. Designed for Python 3.10+, it works seamlessly with MCP-compatible clients like Claude Desktop and Cursor, providing rich, up-to-date external information to AI workflows.

Use This MCP server To

Perform real-time web searches for up-to-date information Retrieve recent news articles for current events Fetch relevant images for visual content generation Integrate Bing search results into AI assistant workflows Implement rate-limited search queries to avoid API abuse Enable AI models to access external web data dynamically

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.

smithery badge

Bing Search MCP Server

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"
      }
    }
  }
}

Claude Code Bing Search MCP

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

bing-search-mcp FAQ

How do I configure the Bing Search MCP server?
Set the BING_API_KEY environment variable with your Microsoft Bing Search API key before running the server.
What are the system requirements for running this MCP server?
It requires Python 3.10 or higher and an MCP-compatible client like Claude Desktop or Cursor.
How does the server handle API rate limits?
The server includes built-in rate limiting to prevent exceeding Bing API usage quotas and avoid service interruptions.
Can this MCP server perform image searches?
Yes, it supports image search queries alongside web and news searches.
Is error handling implemented in the bing-search-mcp server?
Yes, it has comprehensive error handling to manage API errors and ensure stable operation.
Which MCP clients are compatible with this server?
Clients such as Claude Desktop and Cursor are compatible and can interact with this MCP server.
How do I install the bing-search-mcp server?
Clone the repository, create a Python virtual environment, activate it, and install dependencies using pip.
Can this MCP server be used for commercial applications?
Usage depends on Microsoft Bing Search API licensing; ensure compliance with their terms.