
mrkrsl/web-search-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ローカルLLMで使用するためのシンプルでローカルホストのWeb Search MCPサーバー
概要
TypeScript MCP(Model Context Protocol)サーバーで、APIキー不要の直接接続を用いた包括的なウェブ検索機能と、さまざまなユースケースに対応した複数のツールを提供します。 - : Bing > Brave > DuckDuckGoを優先し、最適な信頼性とパフォーマンスを実現 - : 検索結果からページ全体の内容を取得し抽出 - : 異なる用途に応じた3つの専門ツール - : 劇作家ブロワーズと高速アクシオリクエストを切り替えて結果の返送を確実にする - : 複数のページから同時にコンテンツを抽出 サーバーは異なるウェブ検索ニーズに対応する3つの専門ツールを提供します: 包括的な検索が求められた場合、サーバーは : 1 を使用します。- 専用のChromiumインスタンスを使った主方法2.- 専用のFirefoxインスタンスを使用した二次的な方法。3.- 最終的な従来型HTTP 4を使ったフォールバック。: 各検索エンジンは自動クリーンアップを備えた独自のブラウザインスタンスを持ちます。5.
概要(AI 翻訳)
TypeScript MCP(Model Context Protocol)サーバーで、APIキー不要の直接接続を用いた包括的なウェブ検索機能と、さまざまなユースケースに対応した複数のツールを提供します。
特徴
- マルチエンジンウェブ検索:最適な信頼性とパフォーマンスのために> Brave > DuckDuckGoを優先Bing
- 全ページコンテンツ抽出:検索結果から完全なページ内容を取得し抽出します
- 複数の検索ツール:異なるユースケースに特化した3つのツール
- スマートリクエスト戦略:劇作家ブロウズと高速アクシオスリクエストを切り替え、結果を確実に返す
- 同時処理:複数のページから同時にコンテンツを抽出します
仕組み
サーバーは異なるウェブ検索ニーズに対応する3つの専門ツールを提供します:
1.full-web-search(メインツール)
包括的な検索が求められた場合、サーバーは最適化された検索戦略を使用します。
- ブラウザベースのBing検索 - 専用のChromiumインスタンスを使った主な方法
- ブラウザベースのBrave Search - 専用のFirefoxインスタンスを使った二次オプション
- Axios DuckDuckGo Search - 従来型HTTPを用いた最終フォールバック
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Web Search MCP Server for use with Local LLMs
A TypeScript MCP (Model Context Protocol) server that provides comprehensive web search capabilities using direct connections (no API keys required) with multiple tools for different use cases.
Features
- Multi-Engine Web Search: Prioritises Bing > Brave > DuckDuckGo for optimal reliability and performance
- Full Page Content Extraction: Fetches and extracts complete page content from search results
- Multiple Search Tools: Three specialised tools for different use cases
- Smart Request Strategy: Switches between playwright browesrs and fast axios requests to ensure results are returned
- Concurrent Processing: Extracts content from multiple pages simultaneously
How It Works
The server provides three specialised tools for different web search needs:
1. full-web-search (Main Tool)
When a comprehensive search is requested, the server uses an optimised search strategy:
- Browser-based Bing Search - Primary method using dedicated Chromium instance
- Browser-based Brave Search - Secondary option using dedicated Firefox instance
- Axios DuckDuckGo Search - Final fallback using traditional HTTP
- Dedicated browser isolation: Each search engine gets its own browser instance with automatic cleanup
- Content extraction: Tries axios first, then falls back to browser with human behavior simulation
- Concurrent processing: Extracts content from multiple pages simultaneously with timeout protection
- HTTP/2 error recovery: Automatically falls back to HTTP/1.1 when protocol errors occur
2. get-web-search-summaries (Lightweight Alternative)
For quick search results without full content extraction:
- Performs the same optimised multi-engine search as
full-web-search - Returns only the search result snippets/descriptions
- Does not follow links to extract full page content
3. get-single-web-page-content (Utility Tool)
For extracting content from a specific webpage:
- Takes a single URL as input
- Follows the URL and extracts the main page content
- Removes navigation, ads, and other non-content elements
Compatibility
This MCP server has been developed and tested with LM Studio and LibreChat. It has not been tested with other MCP clients.
Model Compatibility
Important: Prioritise using more recent models designated for tool use.
Older models (even those with tool use specified) may not work or may work erratically. This seems to be the case with Llama and Deepseek. Qwen3 and Gemma 3 currently have the best restults.
- ✅ Works well with: Qwen3
- ✅ Works well with: Gemma 3
- ✅ Works with: Llama 3.2
- ✅ Works with: Recent Llama 3.1 (e.g 3.1 swallow-8B)
- ✅ Works with: Recent Deepseek R1 (e.g 0528 works)
- ⚠️ May have issues with: Some versions of Llama and Deepseek R1
- ❌ May not work with: Older versions of Llama and Deepseek R1
Installation (Recommended)
インストール
npx playwright install設定
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/extracted/web-search-mcp/dist/index.js"]
}
}
}