Skip to main content
Glama
Raghu6798

Browser Automation MCP Server

by Raghu6798

🤖 ブラウザ自動化エージェント

MCP(モデル制御プログラム)をベースに構築された強力なブラウザ自動化ツール。ウェブスクレイピング機能とLLMベースのインテリジェンスを組み合わせます。このエージェントは、Google検索、ウェブページへのナビゲーション、GitHub、Stack Overflow、ドキュメントサイトなど、様々なウェブサイトからコンテンツをインテリジェントにスクレイピングできます。

🚀 機能

  • 🔍 Google 検索統合: あらゆるクエリに対する上位の検索結果を検索して取得します

  • 🕸️ インテリジェントな Web スクレイピング: さまざまな Web サイトの種類に合わせたスクレイピング戦略:

    • 📂 GitHubリポジトリ

    • 💬 Stack Overflow の質問と回答

    • 📚 ドキュメントページ

    • 🌐 一般的なウェブサイト

  • 🧠 AIを活用した処理:スクレイピングしたコンテンツの理解と処理にMistral AIを使用

  • 🥷 ステルスモード: ブラウザの指紋保護を実装し、検出を回避します

  • 💾 コンテンツ保存: スクレイピングしたページのスクリーンショットとテキストコンテンツの両方を自動的に保存します

Related MCP server: Web Search MCP

🏗️ 建築

このプロジェクトでは、MCP を利用したクライアント サーバー アーキテクチャを使用します。

  • 🖥️ サーバー: ブラウザの自動化とWebスクレイピングタスクを処理します

  • 👤 クライアント: Mistral AI と LangGraph を使用して AI インターフェースを提供します

  • 📡 通信: クライアント・サーバー通信にstdioを使用する

⚙️ 要件

  • 🐍 Python 3.8 以上

  • 🎭 劇作家

  • 🧩 MCP(モデル制御プログラム)

  • 🔑 ミストラル AI API キー

📥 インストール

  1. リポジトリをクローンします。

git clone https://github.com/yourusername/browser-automation-agent.git
cd browser-automation-agent
  1. 依存関係をインストールします:

pip install -r requirements.txt
  1. Playwright ブラウザをインストールします。

playwright install
  1. プロジェクト ルートに.envファイルを作成し、Mistral AI API キーを追加します。

MISTRAL_API_KEY=your_api_key_here

📋 使用方法

サーバーの実行

python main.py

クライアントの実行

python client.py

サンプルインタラクション

サーバーとクライアントの両方が実行されたら:

  1. プロンプトが表示されたらクエリを入力してください

  2. エージェントは次のことを行います。

    • 🔍 Googleで関連する結果を検索する

    • 🧭 上位の結果へ移動

    • 📊 ウェブサイトの種類に基づいてコンテンツをスクレイピングする

    • 📸 スクリーンショットとコンテンツをファイルに保存する

    • 📤 処理済みの情報を返す

🛠️ ツールの機能

get_top_google_url

🔍 Google で検索し、指定されたクエリの上位の結果 URL を返します。

browse_and_scrape

🌐 URL に移動し、Web サイトの種類に基づいてコンテンツをスクレイピングします。

scrape_github

📂 GitHub リポジトリから README コンテンツとコード ブロックを抽出することに特化しています。

scrape_stackoverflow

💬 Stack Overflow ページから質問、回答、コメント、コード ブロックを抽出します。

scrape_documentation

📚 ドキュメントコンテンツとコード例の抽出に最適化されています。

scrape_generic

🌐 一般的な Web サイトから段落テキストとコード ブロックを抽出します。

📁 ファイル構造

browser-automation-agent/
├── main.py            # MCP server implementation
├── client.py          # Mistral AI client implementation
├── requirements.txt   # Project dependencies
├── .env               # Environment variables (API keys)
└── README.md          # Project documentation

📤 出力ファイル

エージェントは、タイムスタンプ付きの 2 種類の出力ファイルを生成します。

  • 📸 final_page_YYYYMMDD_HHMMSS.png : 最終ページ状態のスクリーンショット

  • 📄 scraped_content_YYYYMMDD_HHMMSS.txt : ページから抽出したテキストコンテンツ

⚙️ カスタマイズ

コード内の次のパラメータを変更できます。

  • 🖥️ ブラウザウィンドウのサイズ: browse_and_scrapewidthheight調整します

  • 👻 ヘッドレスモード: ブラウザ操作を非表示にするにはheadless=Trueを設定します

  • 🔢 Google検索結果の数: get_top_google_urlnum_resultsを変更する

❓ トラブルシューティング

  • 🔌 接続の問題: サーバーとクライアントが別々のターミナルで実行されていることを確認してください

  • 🎭 Playwright エラー: ブラウザにplaywright installされていることを確認してください

  • 🔑 APIキーエラー: Mistral APIキーが.envファイルに正しく設定されていることを確認してください

  • 🛣️ パスエラー: 必要に応じてclient.py内のmain.pyへのパスを更新してください

📜 ライセンス

MITライセンス

🤝 貢献する

貢献を歓迎します!お気軽にプルリクエストを送信してください。


🧩 MCP、🎭 Playwright、🧠 Mistral AI で構築

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (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
    B
    quality
    D
    maintenance
    Enables web searching and content scraping through Google Custom Search API. Provides tools to search the internet, extract webpage content, and automatically scrape search results for comprehensive information gathering.
    3
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables web searching through Google, DuckDuckGo, and Bing using a headless Chrome browser, returning structured results with titles, URLs, and snippets. Also supports fetching and extracting text content from any webpage.
    12
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides web search and page fetch capabilities using a browser-based approach, enabling LLMs to search DuckDuckGo, Google, or Yandex and retrieve rendered HTML from URLs.
    3
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables LLMs to fetch and extract web content using browser automation, OCR, and multiple extraction methods, handling JavaScript rendering and anti-scraping techniques.
    17
    MIT

View all related MCP servers

Related MCP Connectors

  • AI-powered browser automation — navigate, click, fill forms, and extract data from any website.

  • Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…

  • Web research for agents: quality-scored Google search, webpage extraction, and deep research.

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/Raghu6798/Browser_scrape_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server