https://github.com/leehanchung/bing-search-mcp
MCP Server for Bing Search
https://github.com/leehanchung/bing-search-mcp
Last synced: 9 months ago
JSON representation
MCP Server for Bing Search
- Host: GitHub
- URL: https://github.com/leehanchung/bing-search-mcp
- Owner: leehanchung
- License: mit
- Created: 2025-03-15T23:29:35.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-03-15T23:48:28.000Z (9 months ago)
- Last Synced: 2025-03-16T00:24:33.533Z (9 months ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp-servers - leehanchung/bing-search-mcp - Web search MCP server using Microsoft Bing Search API, providing Bing-powered search within the MCP protocol. ([Read more](/details/leehanchungbing-search-mcp.md)) `mcp` `web-search` `bing` `search` (Web Search MCP Servers)
- awesome-mcp-zh - Bing Web Search API
- best-of-mcp-servers - GitHub
- awesome-mcp-servers - **bing-search-mcp** - MCP Server for Bing Search API `python` `claude` `mcp` `mcp-server` `server` `pip install git+https://github.com/leehanchung/bing-search-mcp` (🤖 AI/ML)
- Awesome-MCP-Servers-directory - Bing Web Search API - Server implementation for Microsoft Bing Web Search API (Search)
- awesome-mcp-servers - Bing Web Search API - MCP Server for Bing Search API (Table of Contents / AI Services)
- toolsdk-mcp-registry - ❌ bing-search - to-date information from the internet. (python) (Search & Data Extraction / How to Submit)
- metorial-index - Bing Search - Connect to the Microsoft Bing Search API to perform comprehensive web, news, and image searches. Retrieve timely information and visual content efficiently, enhancing AI applications with search capabilities. (News and Media)
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.
[](https://smithery.ai/server/@leehanchung/bing-search-mcp)

## 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:
```bash
export BING_API_KEY="your-bing-api-key"
export BING_API_URL="https://api.bing.microsoft.com/" # Optional
```
For Windows:
```cmd
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):
```json
{
"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"
}
}
}
}
```

## Available Tools
### 1. bing_web_search
General web search for information, websites, and content.
```python
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.
```python
bing_news_search(query: str, count: int = 10, market: str = "en-US", freshness: str = "Day")
```
### 3. bing_image_search
Search for images.
```python
bing_image_search(query: str, count: int = 10, market: str = "en-US")
```
## Getting a Bing API Key
1. Visit [Microsoft Azure Portal](https://portal.azure.com/)
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](LICENSE)