Bing Search

by leehanchung

25 stars
644 downloads
Not rated
GitHub

About

Enables web, news, and image searches through Microsoft's Bing Search API, providing access to up-to-date information from the internet.

Details

Author
leehanchung
Repository
leehanchung/bing-search-mcp
GitHub stars
25
Downloads
644
License
MIT License
Categories
Search, Other, API, Developer Tools, Design, AI, Media, Knowledge Base, Infrastructure
Tags
#web

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Bing Search
    Command (node, npx, python, etc.) uvx
    Arguments
    • Argument 1 /path/to/your/bing-search-mcp
    Environment
    • BING_API_KEY your-bing-api-key

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

uvx bing-search-mcp

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

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

bing_web_search

General web search for information, websites, and content. Parameters: query (string), count (int, optional, default is 10), offset (int, optional, default is 0), market (string, optional, default is 'en-US')

bing_news_search

Search for news articles and current events. Parameters: query (string), count (int, optional, default is 10), market (string, optional, default is 'en-US'), freshness (string, optional, default is 'Day')

bing_image_search

Search for images. Parameters: query (string), count (int, optional, default is 10), market (string, optional, default is 'en-US')

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

Linux

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

Macos

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

Windows

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

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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.