Building a Browser Harness MCP for AI Agents
AIエージェント向けブラウザハーネス/MCPの構築
Playwright、MCP、GitHub Copilot SDKで構築されたブラウザハーネスです。
セットアップ
npm install
npx playwright install chromiumAzure 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コード実行ランタイムはセキュリティ境界ではありません。信頼できない入力でこのパターンを使用する前に、生成されたコードを分離されたプロセスまたはVMで実行してください。
This server cannot be installed
Maintenance
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
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to control browser automation through natural language prompts using Playwright, supporting visual element interaction, PDF generation, screenshots, and testing assertions.
- 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.523MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a browser through Playwright tools, allowing web automation tasks such as navigation, clicking, typing, and screenshots.7,623
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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