KM

kimtth/mcp-aoai-web-browsing

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

35 stars 14 forks 品質 77 トレンド 8MIT

kimtth/mcp-aoai-web-browsing は [https://github.com/kimtth/mcp-aoai-web-browsing. からインポートされた MCP サーバー候補です

概要

kimtth/mcp-aoai-web-browsing は [https://github.com/kimtth/mcp-aoai-web-browsing. からインポートされた MCP サーバー候補です

概要(AI 翻訳)

Azure OpenAI/OpenAIとPlaywrightブラウジングアプリケーション、およびフォーカス例 MCP v1/v2、OAuth、インタラクティブなMCPアプリ。

  1. 元の閲覧アプリケーション — Azure OpenAI/OpenAI の統合、セットアップおよびクライアント接続。
  2. MCP v1 と v2 のサンプル — ブラウザツールとローカル OAuth フロー。 3。 MCP アプリケーションのサンプル — プレハブで構築されたインタラクティブなツール応答UI。

#1. MCPアプリケーションを閲覧するウェブ

TkinterチャットUIとMCP-to-LLMブリッジを備えたローカルブラウジングアプリケーション。

  • 元のサーバーはスタンドアローン[fastmcp]]のパッケージを使用します; Playwright制御 目に見えるChromiumブラウザで、ツール呼び出し間で現在のページを保持します。
  • ローカル client bridge の実装は MCP に対応 OpenAIチャット完了機能の呼び出しにツールの定義。 それは支えます 処理中の FastMCP サーバーまたは外部 stdio サーバー。
  • GUI は Azure OpenAI を使用します。 Python の発信者は標準のための橋を構成することができます OpenAIは、元のブラウザサーバが独自にAzureを初期化 セレクタ抽出ツールのクライアント。

セットアップと実行

要件: Python 3.13 または newer、Tkinter、グラフィカルデスクトップセッション、 そして紫外線。 コマンド

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP in Practice: Web Browsing, Protocols, and Apps

A Playwright browsing application with Azure OpenAI/OpenAI, plus focused examples of MCP v1/v2, OAuth, and interactive MCP Apps.

  1. Original browsing application — Azure OpenAI/OpenAI integration, setup and client connections.
  2. MCP v1 and v2 samples — browser tools and local OAuth flows.
  3. MCP Apps samples — interactive tool-response UIs built with Prefab.

1. Web browsing MCP application

A local browsing application with a Tkinter chat UI and an MCP-to-LLM bridge.

  • The original server uses the standalone fastmcp package; Playwright controls a visible Chromium browser and keeps the current page between tool calls.
  • The local client_bridge implementation adapts MCP tool definitions to OpenAI Chat Completions function calling. It supports an in-process FastMCP server or an external stdio server.
  • The GUI uses Azure OpenAI. Python callers can configure the bridge for standard OpenAI, but the original browser server separately initializes its own Azure client for the selector-extraction tool.

Setup and run

Requirements: Python 3.13 or newer, Tkinter, a graphical desktop session, and uv. The commands below use uv to manage this project’s environment; MCP itself does not require a particular Python package manager. Run them from the repository root.

  1. Copy .env.template to a local .env file, keeping the template intact. Configure an existing Azure OpenAI deployment that supports Chat Completions tool calling:

    AZURE_OPEN_AI_ENDPOINT=
    AZURE_OPEN_AI_API_KEY=
    AZURE_OPEN_AI_DEPLOYMENT_MODEL=
    AZURE_OPEN_AI_API_VERSION=
    

    The API version is needed for the legacy Azure endpoint, not the /openai/v1 path described below. Keep .env out of source control; it is gitignored.

  2. Install the Python dependencies and the Chromium browser binary:

    uv sync
    uv run playwright install chromium
    

    On Linux, Playwright may also require system dependencies; see its installation guide. Tkinter must be available in the selected Python installation.

  3. Launch the GUI in the project environment:

    uv run python chatgui.py
    

The root dependency declarations use minimum versions, not compatibility caps. The inspected environment uses FastMCP 3.2.0 and MCP SDK 1.27.0; this is not a guarantee that a fresh resolution of newer major versions will work. Keep the learning samples in their separate environments.

Azure v1 endpoint and model parameters

For an endpoint ending in /openai/v1, set AZURE_OPEN_AI_ENDPOINT to the full

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "browser-navigator": { "command": "uv", "args": ["--directory", "/path/to/mcp-aoai-web-browsing", "run", "fastmcp", "run", "server/browser_navigator_server.py:app", "--transport", "stdio"] } } }