Bing 搜索 MCP 服务器
用于 Microsoft Bing 搜索 API 集成的模型上下文协议 (MCP) 服务器,允许 AI 助手执行网络、新闻和图像搜索。

特征
网上搜索一般信息
新闻搜索最近发生的事件和及时的信息
视觉内容的图像搜索
限制速率以防止 API 滥用
全面的错误处理
要求
Python 3.10 或更高版本
Microsoft Bing 搜索 API 密钥
MCP 兼容客户端(例如 Claude Desktop、Cursor)
安装
克隆此存储库
安装依赖项:
uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate uv pip install -e .
配置
设置所需的环境变量:
export BING_API_KEY="your-bing-api-key"
export BING_API_URL="https://api.bing.microsoft.com/" # Optional
对于 Windows:
set BING_API_KEY=your-bing-api-key
set BING_API_URL=https://api.bing.microsoft.com/
用法
运行服务器
uvx bing-search-mcp
使用 Claude for Desktop 进行配置
将以下内容添加到您的 Claude Desktop 配置文件(macOS 上为~/Library/Application Support/Claude/claude_desktop_config.json或 Windows 上为%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"
}
}
}
}

可用工具
1. bing_web_search
对信息、网站和内容进行常规网络搜索。
bing_web_search(query: str, count: int = 10, offset: int = 0, market: str = "en-US")
2. bing_news_search
搜索新闻文章和时事。
bing_news_search(query: str, count: int = 10, market: str = "en-US", freshness: str = "Day")
3. bing_image_search
搜索图像。
bing_image_search(query: str, count: int = 10, market: str = "en-US")
获取 Bing API 密钥
创建或登录 Azure 帐户
创建新的必应搜索资源
转到资源并在“密钥和端点”部分中找到您的 API 密钥
执照
Related MCP Servers
- Asecurity-licenseAqualityA Model Context Protocol server that enables AI assistants to perform real-time web searches, retrieving up-to-date information from the internet via a Crawler API.Last updated -123517
- -security-license-qualityA Model Context Protocol server that provides real-time web search capabilities to AI assistants through pluggable search providers, currently integrated with the Brave Search API.Last updated -13MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables AI assistants like Claude to interact with Bing Webmaster Tools API, allowing users to manage sites, submit URLs for indexing, analyze traffic, and access other webmaster tools through natural language.Last updated -625MIT License
- -security-license-qualityA Model Context Protocol server that enables AI assistants to perform web searches using Google Search API, returning up to 20 search results in JSON format.Last updated -2Apache 2.0