ブラウザを取得
AIエージェントがAPIキーを必要とせずにウェブコンテンツを取得し、Google検索を実行できる、強力なヘッドレスブラウザMCPサーバーです。最新のウェブ標準に準拠し、AIプラットフォームとのシームレスな統合を実現します。
特徴
- APIキーは不要: 洗練されたヘッドレスブラウザアプローチを使用してコンテンツを直接取得します
- スマートGoogle検索:
- Google検索から構造化された結果を抽出する
- ウェブとニュースの両方の検索結果をサポート
- 設定可能な結果数(1~100)
- 検索結果の完全なコンテンツ取得
- 自動再試行とエラー処理
- ユニバーサルコンテンツフェッチ:
- あらゆるウェブページやAPIエンドポイントのサポート
- 複数の出力形式(HTML、JSON、テキスト、マークダウン)
- コンテンツタイプの自動検出
- 応答サイズの制限とタイムアウト保護
- レート制限保護
- フォーマット変換:
- クリーンなHTMLからMarkdownへの変換
- きれいに印刷されたJSONレスポンス
- 構造化されたHTML出力
- 適切な書式のプレーンテキスト
ツール
1. Google 検索ツール ( google_search
)
Google 検索を実行し、結果の完全なコンテンツを取得します。
{
query: "your search query",
responseType: "markdown", // or "json", "html", "text"
maxResults: 10, // 1-100 results
topic: "web" // or "news"
}
2. URLフェッチャーツール( fetch_url
)
任意の URL からコンテンツを取得します。
{
url: "https://example.com",
responseType: "markdown", // or "json", "html", "text"
timeout: 30000 // optional, in milliseconds
}
インストール
スミザリー経由
# For Claude
npx -y @smithery/cli install @TheSethRose/fetch-browser --client claude
# For Cursor
npx -y @smithery/cli install @TheSethRose/fetch-browser --client cursor
# For TypeScript
npx -y @smithery/cli install @TheSethRose/fetch-browser --client typescript
手動インストール
# Clone the repository
git clone https://github.com/TheSethRose/fetch-browser.git
cd fetch-browser
# Install dependencies
npm install
# Build the project
npm run build
# Start the server
npm start
発達
# Watch mode with auto-rebuild
npm run watch
# Run with inspector
npm run inspector
# Debug mode
npm run debug
# Debug with watch mode
npm run debug:watch
応答形式
1. マークダウン形式
## [Page Title](https://example.com)
Content converted to clean markdown with:
- Lists
- **Bold text**
- *Italic text*
- [Links](https://example.com)
2. JSON形式
{
"url": "https://example.com",
"content": "Extracted content...",
"error": null
}
3. HTML形式
<div class="search-result">
<h2><a href="https://example.com">Page Title</a></h2>
<div class="content">
Original HTML content
</div>
</div>
4. テキスト形式
### https://example.com
Plain text content with preserved formatting
==========
エラー処理
- 指数バックオフによる自動再試行
- レート制限保護
- タイムアウト処理
- 詳細なエラーメッセージ
- 個別結果エラー追跡
セキュリティ機能
- レスポンスサイズの制限
- リクエストタイムアウト
- レート制限保護
- APIキーやシークレットは不要
- 適切なエラー処理
クレジット
セス・ローズ作:
ライセンス
MITライセンス - 詳細はライセンスを参照