by leehanchung
Bing-Search-MCP is an MCP server integrated with the Microsoft Bing Search API, enabling AI assistants to perform web, news, and image searches. It is designed to provide real-time information retrieval capabilities for AI assistants and applications.
bing-search-mcp is a Model Context Protocol (MCP) server that integrates with the Microsoft Bing Search API. It allows AI assistants, such as Claude Desktop, to perform various types of searches including web, news, and image searches.
To use bing-search-mcp, you need Python 3.10 or higher and a Microsoft Bing Search API key. First, clone the repository and install dependencies using uv venv
and uv pip install -e .
. Then, set your BING_API_KEY
and optionally BING_API_URL
as environment variables. You can run the server using uvx bing-search-mcp
. For integration with Claude Desktop, you need to add a specific configuration to its claude_desktop_config.json
file, specifying the command to run the MCP server and your Bing API key.
Q: What are the available tools? A: The project provides three main tools:
bing_web_search(query: str, count: int = 10, offset: int = 0, market: str = "en-US")
: For general web searches.bing_news_search(query: str, count: int = 10, market: str = "en-US", freshness: str = "Day")
: For searching news articles.bing_image_search(query: str, count: int = 10, market: str = "en-US")
: For searching images.Q: How do I get a Bing API Key? A: You can obtain a Bing API key by visiting the Microsoft Azure Portal, creating or signing in to your Azure account, creating a new Bing Search resource, and then finding your API key in the "Keys and Endpoint" section of the resource.
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")
Reviews feature coming soon
Stay tuned for community discussions and feedback