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
- Clone this repository
- 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"
}
}
}
}
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
- Visit Microsoft Azure Portal
- Create or sign in to your Azure account
- Create a new Bing Search resource
- Go to the resource and find your API key in the "Keys and Endpoint" section
License
Metadata
Release files for bing-search-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bing_search_mcp-0.1.0.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bing_search_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / bing_search_mcp-0.1.0.tar.gz
| Download URL | bing_search_mcp-0.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c2cafea8e827604732d720b747b63b193540feac0983fb4a9ad2f461bf19201
|
|
BLAKE2b-256 checksum How to use checksums |
c6f222f2b7e4710c5c6893c0c22aec9b949a501e8e8eabeec6c45bd1fa791a62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.9
|
Release files / bing_search_mcp-0.1.0-py3-none-any.whl
| Download URL | bing_search_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d871ca8fc4c0846bc8cd0d18c53c3bcb6fc0d9116d9f054690329c0b6f3eb163
|
|
BLAKE2b-256 checksum How to use checksums |
29b6b263c9ea00ff89928d729c35fa79ccbd475ee26c1a7eb12077e822ff5bde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.9
|