leehanchung_bing_search_mcp

leehanchung_bing_search_mcp

by leehanchung

License

Skip to content

You signed in with another tab or window. Reload
to refresh your session. You signed out in another tab or window. Reload
to refresh your session. You switched accounts on another tab or window. Reload
to refresh your session. Dismiss alert

leehanchung / bing-search-mcp Public

MCP Server for Bing Search API

License

MIT license

13 stars
0 forks
Branches
Tags
Activity

Star

Notifications
You must be signed in to change notification settings

leehanchung/bing-search-mcp

main

1 Branch
0 Tags


Go to file

Code

Folders and files

| Name | | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| Latest commit
-------------

leehanchung
leehanchung

chore: update rules

Mar 16, 2025

c972403
 · Mar 16, 2025

History
-------

10 Commits

| | |
| assets | | assets | docs: fix images | Mar 16, 2025 |
| mcp_server_bing_search | | mcp_server_bing_search | refactor: format to conform to sentry and sqlite mcp naming | Mar 16, 2025 |
| .gitignore | | .gitignore | chore: adding CLAUDE.md, .gitignore, and LICENSE | Mar 15, 2025 |
| .python-version | | .python-version | 🎉: init | Mar 15, 2025 |
| .windsurfrules | | .windsurfrules | chore: update rules | Mar 16, 2025 |
| CLAUDE.md | | CLAUDE.md | chore: update rules | Mar 16, 2025 |
| Dockerfile | | Dockerfile | refactor: format to conform to sentry and sqlite mcp naming | Mar 16, 2025 |
| LICENSE | | LICENSE | chore: adding CLAUDE.md, .gitignore, and LICENSE | Mar 15, 2025 |
| README.md | | README.md | docs: fix images | Mar 16, 2025 |
| pyproject.toml | | pyproject.toml | refactor: format to conform to sentry and sqlite mcp naming | Mar 16, 2025 |
| smithery.yaml | | smithery.yaml | refactor: format to conform to sentry and sqlite mcp naming | Mar 16, 2025 |
| uv.lock | | uv.lock | refactor: format to conform to sentry and sqlite mcp naming | Mar 16, 2025 |
| View all files | | |

Repository files navigation

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

uv run -m mcp_server_bin_search

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": "uv",
      "args": [\
        "--directory",\
        "/path/to/your/folder",\
        "run",\
        "-m",\
        "mcp_server_bin_search"\
      ],
      "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

About

MCP Server for Bing Search API

Topics

mcp
claude
mcp-server

Resources

Readme

License

MIT license

Activity

Stars

13 stars

Watchers

1 watching

Forks

0 forks

Report repository

Releases


No releases published

Packages 0


No packages published

Languages

You can’t perform that action at this time.

Features & Capabilities

Categories
mcp_server model_context_protocol

Implementation Details

Stats

0 Views
13 GitHub Stars

Repository Info

leehanchung Organization

Similar MCP Servers

continuedev_continue by continuedev
25049
21423
9300