auth-fetch-mcp
auth-fetch-mcp
AIアシスタントが認証済みWebページからコンテンツを取得できるようにするMCPサーバーです。
AIがログインを必要とするURLを読み取ろうとすると、このツールが実際のブラウザを開いてサインインを促し、ページコンテンツをクリーンなHTMLとしてキャプチャします。セッションはローカルに保存されるため、サービスごとに一度ログインするだけで済みます。
デモ

Related MCP server: byob
クイックスタート
Claude Code
claude mcp add --scope user auth-fetch -- npx auth-fetch-mcp@latest.mcp.json (Cursor, Windsurfなど)
{
"mcpServers": {
"auth-fetch": {
"command": "npx",
"args": ["auth-fetch-mcp@latest"]
}
}
}Chromiumは、初回実行時に存在しない場合、自動的にインストールされます。
仕組み
AIに認証済みページの読み取りを依頼します(URLを貼り付けるだけです)。
ブラウザウィンドウが自動的に開き、そのページに移動します。
通常通りログインします(SSO、2FA、CAPTCHAなど、すべてサポートされています)。
準備ができたら、右下の 「📸 Capture」 ボタンをクリックします。
ページコンテンツがクリーンなHTMLとしてキャプチャされ(ノイズ要素が削除され、メディアタグが保持されます)、ブラウザが閉じ、AIがコンテンツを受け取ります。
ツール
auth_fetch
主要なツールです。実際のブラウザを使用してページコンテンツを取得し、必要に応じてログイン用のウィンドウを開きます。ノイズ要素(ナビゲーション、フッター、スクリプトなど)が削除され、メディアタグ(<img>, <video>, <iframe>)が保持されたクリーンなHTMLを返します。
パラメータ | 型 | 必須 | 説明 |
| string | はい | コンテンツを取得するURL |
| string | いいえ | キャプチャ前に待機するCSSセレクタ(SPAで有用) |
download_media
保存されたブラウザセッションを使用して、URLからファイルをダウンロードします。auth_fetchの結果で見つかった画像、動画、その他のファイルを遅延ダウンロードするために使用します。ブラウザの保存済みCookieが自動的に認証を処理するため、再度ログインする必要はありません。
パラメータ | 型 | 必須 | 説明 |
| string[] | はい | ダウンロードする1つ以上のURL |
| string | いいえ | ファイルの保存先ディレクトリ(デフォルトは |
実行例:
1. auth_fetch("https://notion.so/my-page")
→ Returns HTML with <img src="https://s3.notion.so/signed-url..."/> tags
2. AI reads the HTML, identifies an image it needs
3. download_media(["https://s3.notion.so/signed-url..."])
→ Downloads the image using saved session cookies
→ Returns { localPath: "~/.auth-fetch-mcp/downloads/.../file-1.png" }list_pages
ブラウザで開いているすべてのタブを、URLとタイトルとともに一覧表示します。
close_browser
ブラウザウィンドウを閉じます。ログインセッションは保存され、次回再利用されます。
データストレージ
すべてのデータはローカルの ~/.auth-fetch-mcp/ に保存されます。外部サーバーには何も送信されません。
内容 | 場所 | タイミング | 永続的か |
ブラウザセッション(Cookie、ローカルストレージ) |
| 初回ログイン後 | はい — 再起動後も保持 |
ダウンロードされたメディアファイル |
|
| はい — 削除するまで保持 |
キャプチャされたページコンテンツ(HTML) | ディスクに保存されません | stdio経由でAIに直接渡されます | いいえ — AIのコンテキスト内でのみ存在 |
すべてのデータを消去するには:
# Clear login sessions only
rm -rf ~/.auth-fetch-mcp/browser-data/
# Clear downloaded files only
rm -rf ~/.auth-fetch-mcp/downloads/
# Clear everything
rm -rf ~/.auth-fetch-mcp/サポートされているAIツール
Claude Code
Cursor
Windsurf
stdioトランスポートを使用するMCP互換クライアント
制限事項
ローカル環境が必要です(Webベースのチャットインターフェースでは動作しません)
各サービスへの初回アクセスには手動ログインが必要です
非常に長いページは、LLMのコンテキストウィンドウ(10万文字)に収まるように切り詰められます
強力なボット検出を行う一部のサイトでは動作しない場合があります(
wait_forオプションを試してください)
プライバシー
すべてのデータはマシン内に留まり、外部サーバーには何も送信されません
キャプチャされたHTMLはディスクに書き込まれることはなく、stdioパイプを通ってAIツールに渡されるだけです
ブラウザセッションは標準のChromiumプロファイルとしてローカルに保存されます
ダウンロードされたファイルは、ユーザーが管理するローカルディレクトリに保存されます
コントリビューション
コントリビューションを歓迎します!Issueを開くか、プルリクエストを送信してください。
git clone https://github.com/ymw0407/auth-fetch-mcp.git
cd auth-fetch-mcp
npm install
npm run buildライセンス
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-quality-maintenanceEnables AI agents to authenticate with websites using a real Chromium browser with anti-detection measures and human-in-the-loop support for captchas and 2FA. Features stealth browsing, human-like interactions, and persistent session storage to automate and resume login workflows.
- Alicense-qualityCmaintenanceLets AI assistants control your real Chrome browser to perform web tasks like reading pages, taking screenshots, clicking, and typing, using your existing logged-in sessions.130MIT
- Alicense-qualityCmaintenanceEnables AI tools to browse the web as the user by providing access to a persistent browser session with logged-in accounts, supporting recipes for email, PRs, calendar, and more.85MIT
- AlicenseAqualityDmaintenanceEnables AI agents to control the user's Chrome or Firefox browser, leveraging existing sessions for tasks requiring authentication and user handoff.184414MIT
Related MCP Connectors
AI-powered browser automation — navigate, click, fill forms, and extract data from any website.
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Reliable web access for AI agents: smart HTTP, rotating proxies, and full-browser rendering.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ymw0407/auth-fetch-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server