Performs a general web search for information, websites, and content
Searches for news articles and current events
Searches for images
The Bing Search MCP server provides AI assistants with the ability to search the web for information, news articles, and images using Microsoft's Bing Search API. This integration allows AI models to access up-to-date information from the internet, enhancing their ability to provide relevant and timely responses. With support for general web searches, news searches with freshness filtering, and image searches, this MCP server offers comprehensive search capabilities. The implementation includes rate limiting to prevent API abuse and robust error handling to ensure reliable operation.
The Bing Search MCP server integrates Microsoft's Bing Search API with AI assistants, allowing them to perform web searches, news searches, and image searches. This enables AI models to access current information from the internet, significantly enhancing their capabilities.
Before installing the Bing Search MCP server, you'll need:
To use this MCP server, you'll need to obtain a Bing API key:
First, clone the repository to your local machine:
git clone https://github.com/leehanchung/bing-search-mcp.git
cd bing-search-mcp
The project uses uv
for dependency management:
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
Set the required environment variables:
For Linux/macOS:
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/
To start the MCP server:
uvx bing-search-mcp
To configure Claude Desktop to use this MCP server, add the following to your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"bing-search": {
"command": "uvx",
"args": [
"/path/to/your/bing-search-mcp"
],
"env": {
"BING_API_KEY": "your-bing-api-key"
}
}
}
}
Replace /path/to/your/bing-search-mcp
with the actual path to the repository on your system, and your-bing-api-key
with your Bing API key.
bing_web_search
toolbing_news_search
toolbing_image_search
toolcount
parameter controls how many results are returnedmarket
parameter can be adjusted for region-specific results (default is "en-US")freshness
parameter can be set to "Day", "Week", or "Month" to control how recent the news articles should be