Skip to main content
Glama
jiin-kim109

Building a Browser Harness MCP for AI Agents

by jiin-kim109

Создание браузерного харнесса/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

Среда выполнения кода не является границей безопасности. Запускайте сгенерированный код в изолированном процессе или виртуальной машине, прежде чем использовать этот шаблон с недоверенными входными данными.

A
license - permissive license
Not graded
quality - not tested
C
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

View all related MCP servers

Related MCP Connectors

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

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

  • Live browser debugging for AI assistants — DOM, console, network via MCP.

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/jiin-kim109/Building-a-Browser-Harness-MCP-for-AI-Agents'

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