web-browser-mcp-server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • The server leverages CSS selectors for smart content extraction from web pages, allowing targeted retrieval of specific elements from websites.

✨ 特徴

🌐 AI アシスタントがシンプルな MCP インターフェースを介して Web からコンテンツを閲覧および抽出できるようにします。

WebブラウザMCPサーバーは、メッセージ制御プロトコル(MCP)を介してAIモデルにウェブサイトの閲覧、コンテンツの抽出、ウェブページの理解機能を提供します。CSSセレクターによるスマートなコンテンツ抽出と堅牢なエラー処理を実現します。

🤝**貢献する• 📝バグを報告する**

✨ コア機能

  • 🎯スマートコンテンツ抽出: CSSセレクターで必要なものを正確にターゲットします
  • 超高速: 非同期処理で最適なパフォーマンスを実現
  • 📊豊富なメタデータ: タイトル、リンク、構造化コンテンツをキャプチャします
  • 🛡️堅牢性と信頼性: エラー処理とタイムアウト管理が組み込まれています
  • 🌍クロスプラットフォーム: Pythonが動作する場所ならどこでも動作します

🚀 クイックスタート

Smithery経由でインストール

Smithery経由で Claude Desktop の Web ブラウザ サーバーを自動的にインストールするには:

npx -y @smithery/cli install web-browser-mcp-server --client claude

手動でインストールする

uv を使用してインストールします。

uv tool install web-browser-mcp-server

開発の場合:

# Clone and set up development environment git clone https://github.com/blazickjp/web-browser-mcp-server.git cd web-browser-mcp-server # Create and activate virtual environment uv venv source .venv/bin/activate # Install with test dependencies uv pip install -e ".[test]"

🔌 MCP統合

この構成を MCP クライアント構成ファイルに追加します。

{ "mcpServers": { "web-browser-mcp-server": { "command": "uv", "args": [ "tool", "run", "web-browser-mcp-server" ], "env": { "REQUEST_TIMEOUT": "30" } } } }

開発の場合:

{ "mcpServers": { "web-browser-mcp-server": { "command": "uv", "args": [ "--directory", "path/to/cloned/web-browser-mcp-server", "run", "web-browser-mcp-server" ], "env": { "REQUEST_TIMEOUT": "30" } } } }

💡 利用可能なツール

サーバーは強力な Web 閲覧ツールを提供します。

ウェブページを参照

オプションの CSS セレクターを使用して Web ページからコンテンツを参照および抽出します。

# Basic webpage fetch result = await call_tool("browse_webpage", { "url": "https://example.com" }) # Target specific content with CSS selectors result = await call_tool("browse_webpage", { "url": "https://example.com", "selectors": { "headlines": "h1, h2", "main_content": "article.content", "navigation": "nav a" } })

⚙️ 構成

環境変数を使用して設定します。

変数目的デフォルト
REQUEST_TIMEOUTウェブページリクエストのタイムアウト(秒)30

🧪 テスト

テスト スイートを実行します。

python -m pytest

📄 ライセンス

MITライセンスに基づいてリリースされています。詳細はLICENSEファイルをご覧ください。


Pear Labsチームが心を込めて作りました

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

BeautifulSoup4を使用してWebブラウジング機能を有効にします

  1. ✨ Core Features
    1. 🚀 Quick Start
      1. Installing via Smithery
      2. Installing Manually
      3. 🔌 MCP Integration
    2. 💡 Available Tools
      1. browse_webpage
    3. ⚙️ Configuration
      1. 🧪 Testing
        1. 📄 License
          ID: 3hphahzvql