
leehanchung/bing-search-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
leehanchung/bing-search-mcp は [https://github.com/leehanchung/bing-search-mcp.] からインポートされた MCP サーバーの候補です
概要
leehanchung/bing-search-mcp は [https://github.com/leehanchung/bing-search-mcp.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
Microsoft Bing Search API 統合用のモデルコンテキストプロトコル(MCP)サーバーで、AI アシスタントが Web、ニュース、画像検索を実行できるようにします。
##特徴
- 一般的な情報のWeb検索
- 最近のイベントやタイムリーな情報を検索するニュース
- ビジュアルコンテンツの画像検索
- API の乱用を防ぐ率制限
- 包括的なエラー処理
要件
- Python 3.10以上
- Microsoft Bing Search APIキー
- MCP対応クライアント(例、Claude Desktop、Cursor)
インストール
- このリポジトリをクローンする
- 依存関係を取付けて下さい:
設定
必要な環境変数を設定します。
Windowsの場合:
使用法
サーバーの実行
デスクトップ用のClaudeで設定する
macOS または %APPDATA%\Claude\claude_desktop_config.json の Claude デスクトップ設定ファイル ([~/Library/Application Support/Claude/claude_desktop_config.json) に次のファイルを追加します。
利用可能なツール
##1. ビング web search 情報、ウェブサイト、コンテンツの一般的なWeb検索。
##2. ビンズ news search ニュース記事やイベントを検索します。
##3. ビン image search 画像検索
Bing API キーの取得
1。 Microsoft Azureポータルにアクセス 2.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
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
uvx bing-search-mcp
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": "uvx",
"args": [
"/path/to/your/bing-search-mcp"
],
"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
インストール
uvx /path/to/your/bing-search-mcp設定
{
"mcpServers": {
"bing-search": {
"command": "uvx",
"args": [
"/path/to/your/bing-search-mcp"
],
"env": {
"BING_API_KEY": "your-bing-api-key"
}
}
}
}