
jae-jae/fetcher-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Playwrightヘッドレスブラウザを使ったMCPサーバーでウェブページコンテンツ取得が可能です。
概要
中文 |ドイツ語 |スペイン語 |フランス語 |日本語 |한국어 |ポルトゲス |Русский Playwrightヘッドレスブラウザを使ったMCPサーバーでウェブページコンテンツ取得が可能です。 🌟 : OllaMan - 強力なOllama AIモデルマネージャー。 - : 従来のウェブスクレイパーとは異なり、Fetcher MCPはPlaywrightを使ってJavaScriptを実行し、動的なウェブコンテンツや最新のウェブアプリケーションを扱うことが可能です。 - : 組み込みの可読性アルゴリズムがウェブページから主要な内容を自動的に抽出し、広告やナビゲーション、その他の不要な要素を除去します。 - : HTMLとMarkdownの両方の出力フォーマットをサポートし、さまざまな下流アプリケーションとの統合が容易です。 - : fetch_urlsツールは複数のURLを同時にフェッチし、バッチ操作の効率を大幅に向上させます。 - : 不要なリソース(画像、スタイルシート、フォント、メディア)を自動的にブロックし、帯域幅の使用を削減しパフォーマンスを向上させる。
概要(AI 翻訳)
中文 | ドイツ語| スペイン語 | フランス語 | 日本語 | 한국어 | ポルトゲス | Русский
フェッチャーMCP
Playwrightヘッドレスブラウザを使ったMCPサーバーでウェブページコンテンツ取得が可能です。
🌟 推奨:OllaMan - 強力なOllama AIモデルマネージャー。
利点
-
JavaScriptサポート:従来のウェブスクレイパーとは異なり、Fetcher MCPはPlaywrightを使ってJavaScriptを実行し、動的なウェブコンテンツや最新のウェブアプリケーションの処理が可能です。
-
インテリジェントコンテンツ抽出:組み込みの可読性アルゴリズムにより、ウェブページから主要なコンテンツを自動的に抽出し、広告やナビゲーション、その他重要でない要素を削除します。
-
柔軟な出力フォーマット:HTMLとMarkdownの両方の出力形式をサポートし、さまざまな下流アプリケーションとの統合が容易です。
-
並列処理:
fetch_urlsツールは複数のURLを同時にフェッチすることを可能にするため、バッチ操作の効率が大幅に向上します。 -
リソース最適化:不要なリソース(画像、スタイルシート、フォント、メディア)を自動的にブロックし、帯域幅の使用を減らしパフォーマンスを向上させます。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
中文 | Deutsch | Español | français | 日本語 | 한국어 | Português | Русский
Fetcher MCP
MCP server for fetch web page content using Playwright headless browser.
🌟 Recommended: OllaMan - Powerful Ollama AI Model Manager.
Advantages
-
JavaScript Support: Unlike traditional web scrapers, Fetcher MCP uses Playwright to execute JavaScript, making it capable of handling dynamic web content and modern web applications.
-
Intelligent Content Extraction: Built-in Readability algorithm automatically extracts the main content from web pages, removing ads, navigation, and other non-essential elements.
-
Flexible Output Format: Supports both HTML and Markdown output formats, making it easy to integrate with various downstream applications.
-
Parallel Processing: The
fetch_urlstool enables concurrent fetching of multiple URLs, significantly improving efficiency for batch operations. -
Resource Optimization: Automatically blocks unnecessary resources (images, stylesheets, fonts, media) to reduce bandwidth usage and improve performance.
-
Robust Error Handling: Comprehensive error handling and logging ensure reliable operation even when dealing with problematic web pages.
-
Configurable Parameters: Fine-grained control over timeouts, content extraction, and output formatting to suit different use cases.
Quick Start
Run directly with npx:
npx -y fetcher-mcp
First time setup - install the required browser by running the following command in your terminal:
npx playwright install chromium
HTTP and SSE Transport
Use the --transport=http parameter to start both Streamable HTTP endpoint and SSE endpoint services simultaneously:
npx -y fetcher-mcp --log --transport=http --host=0.0.0.0 --port=3000
After startup, the server provides the following endpoints:
/mcp- Streamable HTTP endpoint (modern MCP protocol)/sse- SSE endpoint (legacy MCP protocol)
Clients can choose which method to connect based on their needs.
Debug Mode
Run with the --debug option to show the browser window for debugging:
npx -y fetcher-mcp --debug
Configuration MCP
Configure this MCP server in Claude Desktop:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
インストール
npx -y fetcher-mcp設定
{
"mcpServers": {
"fetcher": {
"command": "npx",
"args": ["-y", "fetcher-mcp"]
}
}
}