MCP Server for Bing Search API
A Model Context Protocol (MCP) server for Microsoft Bing Search API integration, allowing AI assistants to perform web, news, and image searches.
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
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/
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"
}
}
}
}
General web search for information, websites, and content.
bing_web_search(query: str, count: int = 10, offset: int = 0, market: str = "en-US")
Search for news articles and current events.
bing_news_search(query: str, count: int = 10, market: str = "en-US", freshness: str = "Day")
Search for images.
bing_image_search(query: str, count: int = 10, market: str = "en-US")