Building a Browser Harness MCP for AI Agents
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Building a Browser Harness/MCP for AI Agents
A browser harness built with Playwright, MCP, and the GitHub Copilot SDK.
Setup
npm install
npx playwright install chromiumSet the Azure OpenAI environment variables:
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"By default, the harness launches Playwright Chromium. To attach to Chrome instead, start it with a dedicated profile and export its CDP endpoint:
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
Run
npm start -- "Open example.com and print the page title."Run the live tasks:
npm run eval
npm run eval -- --task amazonThe code-execution runtime is not a security boundary. Run generated code in an isolated process or VM before using this pattern with untrusted input.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Playwright browser automation — navigate, click, fill forms, extract, screenshot — 17 agent tools.
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.
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.520 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a browser through Playwright tools, allowing web automation tasks such as navigation, clicking, typing, and screenshots.8,604 npmApache 2.0