Skip to main content
Glama

auth-fetch-mcp

npm version npm downloads License: MIT auth-fetch-mcp MCP server

AIアシスタントが認証済みWebページからコンテンツを取得できるようにするMCPサーバーです。

AIがログインを必要とするURLを読み取ろうとすると、このツールが実際のブラウザを開いてサインインを促し、ページコンテンツをクリーンなHTMLとしてキャプチャします。セッションはローカルに保存されるため、サービスごとに一度ログインするだけで済みます。

デモ

auth-fetch-mcp demo

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は、初回実行時に存在しない場合、自動的にインストールされます。

仕組み

  1. AIに認証済みページの読み取りを依頼します(URLを貼り付けるだけです)。

  2. ブラウザウィンドウが自動的に開き、そのページに移動します。

  3. 通常通りログインします(SSO、2FA、CAPTCHAなど、すべてサポートされています)。

  4. 準備ができたら、右下の 「📸 Capture」 ボタンをクリックします。

  5. ページコンテンツがクリーンなHTMLとしてキャプチャされ(ノイズ要素が削除され、メディアタグが保持されます)、ブラウザが閉じ、AIがコンテンツを受け取ります。

ツール

auth_fetch

主要なツールです。実際のブラウザを使用してページコンテンツを取得し、必要に応じてログイン用のウィンドウを開きます。ノイズ要素(ナビゲーション、フッター、スクリプトなど)が削除され、メディアタグ(<img>, <video>, <iframe>)が保持されたクリーンなHTMLを返します。

パラメータ

必須

説明

url

string

はい

コンテンツを取得するURL

wait_for

string

いいえ

キャプチャ前に待機するCSSセレクタ(SPAで有用)

download_media

保存されたブラウザセッションを使用して、URLからファイルをダウンロードします。auth_fetchの結果で見つかった画像、動画、その他のファイルを遅延ダウンロードするために使用します。ブラウザの保存済みCookieが自動的に認証を処理するため、再度ログインする必要はありません。

パラメータ

必須

説明

urls

string[]

はい

ダウンロードする1つ以上のURL

output_dir

string

いいえ

ファイルの保存先ディレクトリ(デフォルトは ~/.auth-fetch-mcp/downloads/<timestamp>/

実行例:

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、ローカルストレージ)

~/.auth-fetch-mcp/browser-data/

初回ログイン後

はい — 再起動後も保持

ダウンロードされたメディアファイル

~/.auth-fetch-mcp/downloads/<timestamp>/

download_media 呼び出し時のみ

はい — 削除するまで保持

キャプチャされたページコンテンツ(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

Install Server
A
license - permissive license
A
quality
A
maintenance

Maintenance

Maintainers
Response time
2wRelease cycle
9Releases (12mo)
Commit activity

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

  • F
    license
    -
    quality
    -
    maintenance
    Enables 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.
  • A
    license
    -
    quality
    C
    maintenance
    Lets 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.
    130
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Enables 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.
    8
    5
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to control the user's Chrome or Firefox browser, leveraging existing sessions for tasks requiring authentication and user handoff.
    18
    44
    14
    MIT

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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