Building a Browser Harness MCP for AI Agents
Создание браузерного харнесса/MCP для ИИ-агентов
Браузерный харнесс, созданный с помощью Playwright, MCP и GitHub Copilot SDK.
Настройка
npm install
npx playwright install chromiumЗадайте переменные окружения Azure OpenAI:
export AZURE_OPENAI_ENDPOINT="https://..."
export AZURE_OPENAI_API_KEY="..."
export AZURE_OPENAI_API_VERSION="2025-04-01-preview"
export AZURE_OPENAI_DEPLOYMENT="gpt-5.4"По умолчанию харнесс запускает Playwright Chromium. Чтобы вместо этого подключиться к Chrome, запустите его с выделенным профилем и экспортируйте его CDP-эндпоинт:
google-chrome \
--remote-debugging-port=9222 \
--user-data-dir="$PWD/.agent-browser" \
--no-first-run
export BROWSER_CDP_URL="http://127.0.0.1:9222"Related MCP server: playwright-browser
Запуск
npm start -- "Open example.com and print the page title."Запустите живые задачи:
npm run eval
npm run eval -- --task amazonСреда выполнения кода не является границей безопасности. Запускайте сгенерированный код в изолированном процессе или виртуальной машине, прежде чем использовать этот шаблон с недоверенными входными данными.
This server cannot be deployed
Maintenance
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Let your AI agent operate any website through a real, logged-in browser session.
Hosted browser for agents: open pages, search the web, extract data, read PDFs and take screenshots.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control browser automation through natural language prompts using Playwright, supporting visual element interaction, PDF generation, screenshots, and testing assertions.ISC
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to control a web browser using Playwright, supporting navigation, interaction, and data extraction through natural language.MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to perform browser automation using Playwright, including navigation, content extraction, screenshot analysis, and custom script execution.52 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a browser through Playwright tools, allowing web automation tasks such as navigation, clicking, typing, and screenshots.5,313 npmApache 2.0