web-ui-tester
web-ui-tester
AI가 실제 웹 페이지를 빠르게 조작하고 검사할 수 있게 해주는 MCP 서버로, 도구 호출 사이에도 유지되는 브라우저 세션을 통해 작동합니다.
두 가지가 속도를 높입니다. 페이지는 스크린샷이나 원시 HTML 대신 요소 참조가 있는 접근성 트리로 노출되므로, 모델은 마크업에 컨텍스트를 소모하거나 비전을 기다리지 않고도 요소를 찾아 클릭할 수 있습니다. 또한 세션이 유지됩니다 — 쿠키, 페이지 상태, 기록이 호출 간에 유지되므로, 긴 상호작용은 반복적인 콜드 스타트 대신 일련의 저렴한 단계로 이어집니다.
또한 DevTools 수준의 진단 기능을 제공합니다 — 콘솔, 응답 본문이 포함된 네트워크, JS 평가, 계산된 스타일 — 그래서 AI는 무언가가 고장났다는 사실뿐만 아니라 왜 고장났는지도 파악할 수 있습니다.
빠른 시작
claude mcp add web-ui-tester -- npx -y web-ui-tester내장 에이전트용 키를 사용하면 ( run_task 참조):
claude mcp add web-ui-tester \
-e GOOGLE_GENERATIVE_AI_API_KEY=your-key \
-- npx -y web-ui-tester또는 모든 MCP 클라이언트의 구성 파일에서:
{
"mcpServers": {
"web-ui-tester": {
"command": "npx",
"args": ["-y", "web-ui-tester"],
"env": { "GOOGLE_GENERATIVE_AI_API_KEY": "your-key" }
}
}
}Chromium은 Playwright에서 제공됩니다. 아직 설치되지 않은 경우:
npx playwright install chromiumRelated MCP server: Charlotte
세션 작동 방식
browser_start → sessionId, kept alive across calls
browser_navigate → page state + snapshot with [ref=eN] handles
browser_click ref=e12 → act on what the snapshot showed you
browser_snapshot → fresh refs after the page changes
browser_close → done (or let it idle out after 30 minutes)browser_start 이후의 모든 것은 해당 sessionId를 사용합니다. 스냅샷은 익숙해져야 할 부분입니다:
- generic [ref=e1]:
- heading "Signup" [level=1] [ref=e2]
- textbox "Name" [ref=e5]:
- /placeholder: Your name
- combobox "Plan" [ref=e7]
- button "Create account" [ref=e10]
- link "Go to second page" [ref=e12] [cursor=pointer]:
- /url: /second.html그 참조들은 browser_click, browser_type 등에 직접 사용됩니다. 참조는 이를 생성한 페이지 상태에 속합니다: 탐색 또는 DOM 변경 후에는 다시 스냅샷을 찍으세요. 도구가 참조가 더 이상 유효하지 않다고 말하면, 재시도 대신 다시 스냅샷을 찍으세요 — 메시지가 명시적으로 그렇게 말합니다.
요소 주소 지정 도구는 이미 선택자를 알고 있고 스냅샷을 건너뛰고 싶을 때 css 또는 role + name도 허용합니다.
도구
세션 — browser_start (옵션: userAgent, viewportWidth, viewportHeight, headless, baseUrl, url, model), browser_list, browser_close.
상호작용 — browser_navigate, browser_click, browser_type, browser_press_key, browser_hover, browser_select_option, browser_scroll, browser_wait_for, browser_go_back, browser_handle_dialog.
액션은 발생시킨 결과를 보고합니다: 탐색, 새로운 콘솔 오류, 요청 수, 나타난 대화상자가 결과와 함께 반환되므로, 조용히 무언가를 깨뜨린 클릭이 성공처럼 보이지 않습니다.
대화상자에 대한 한 가지 참고 사항이 있습니다. alert/confirm/prompt는 답변을 받을 때까지 페이지를 차단하므로, 이를 연 액션이 동시에 답변할 수 없습니다 — 답변되지 않은 대화상자는 클릭을 지연시키는 대신 자동으로 해제되며, 결과에 그렇게 표시됩니다. 하나를 수락하거나 prompt에 입력하려면, 트리거하는 액션 이전에 browser_handle_dialog를 호출하면 다음 대화상자에 대한 답변이 준비됩니다.
검사 — browser_snapshot (요소별 범위 지정, depth 제한, interactiveOnly, 오프셋 페이지네이션), browser_query (역할/이름, 텍스트 또는 CSS로 찾기 — 참조와 상태 반환), browser_read_text (페이지 또는 하위 트리의 렌더링된 텍스트), browser_screenshot (사용 가능하지만, 일반적으로 트리가 더 나은 도구입니다).
진단 — browser_console (메시지 및 스택이 포함된 처리되지 않은 오류), browser_network (상태, 크기, 타이밍), browser_request_detail (헤더, 타이밍 분석, 요청 및 응답 본문), browser_evaluate (페이지에서 JS 실행), browser_inspect_element (계산된 스타일, 박스 모델, 폼 상태).
모든 결과는 문자 예산으로 제한되며, 큰 결과(browser_snapshot, browser_read_text, 본문)는 조용히 잘리는 대신 offset으로 페이지네이션됩니다.
내장 에이전트
run_task는 세션을 브라우저를 직접 조작하고 보고하는 빠른 모델에 넘깁니다:
run_task(sessionId, "Log in as demo@example.com / hunter2 and check the
dashboard loads without errors")보고가 핵심입니다. 단순한 산문이 아닌 구조화된 판정을 반환합니다:
status: success
model: google:gemini-flash-lite-latest
Logged in and opened the dashboard. The revenue widget rendered empty.
findings (3):
[error] Request failed: GET 500 [observed by the harness]
where: https://app.example.com/api/revenue
evidence: HTTP 500
[error] Console exception on the page [observed by the harness]
where: app.js:214:9
evidence: TypeError: Cannot read properties of undefined (reading 'total')
[warning] The revenue widget shows no empty state, just blank space
where: #revenue-card
evidence: card is present but contains no text발견 사항은 두 곳에서 나오며, 그 구분이 중요합니다. 에이전트는 진행하면서 report_finding을 호출합니다 — 따라서 단계 제한에 도달한 실행도 그 시점까지 발견한 모든 것을 반환합니다. 별도로, 하네스는 실행 중 발생한 모든 콘솔 오류, 실패한 요청, 대화상자를 기록하고, 에이전트가 언급했는지 여부와 관계없이 이를 [하네스가 관찰함]으로 표시하여 보고합니다. 500을 놓치거나 예외를 언급하는 것을 잊은 모델은 그것을 숨길 수 없습니다.
동일한 보고서는 선언된 출력 스키마에 대해 structuredContent로 반환되므로, 호출하는 AI는 텍스트를 파싱하는 대신 findings[].severity에 따라 분기할 수 있습니다. 작업이 성공해도 발견 사항이 있을 수 있습니다. success는 작업이 완료되었는지 여부를 반영하며, 페이지가 깨끗한지 여부는 반영하지 않습니다.
이 부분만 API 키가 필요합니다. 지연 시간을 위해 기본적으로 Gemini Flash Lite를 사용하며, Anthropic도 작동합니다:
기본 모델 | 키 | |
|
| |
Anthropic |
|
|
WUT_MODEL을 설정하여 선택합니다 (anthropic, 또는 google:gemini-flash-latest, 또는 임의의 provider:modelId). 세션은 browser_start의 model을 통해 재정의할 수 있고, 단일 호출은 run_task의 model을 통해 재정의할 수 있습니다. 다른 모든 도구는 키 없이 작동합니다.
HTTP 모드
web-ui-tester --port 7399
claude mcp add --transport http web-ui-tester http://127.0.0.1:7399/mcp이 모드에서 브라우저 세션은 클라이언트 소유 프로세스가 아닌 장기 실행 서버에 존재하므로 클라이언트 재시작 및 재연결에도 유지됩니다 — 재연결하고 동일한 sessionId를 전달하면 페이지가 여전히 있습니다. GET /health는 세션 및 연결 수를 보고합니다.
기본적으로 127.0.0.1에 바인딩되며, DNS 리바인딩 보호가 활성화되어 있습니다. --host는 이를 넓히며, 서버는 그렇게 할 때 경고합니다: 인증이 없으므로 포트에 도달할 수 있는 사람은 누구나 브라우저를 조작하고 JavaScript를 실행할 수 있습니다. 프록시나 방화벽 뒤에 두십시오.
구성
Variable | Default | Purpose |
|
|
|
| — | Gemini용 키 |
| — | Anthropic용 키 |
|
| 새 세션의 기본 User-Agent |
|
| 기본 헤드리스 모드 |
|
| 이 시간 동안 사용되지 않은 세션 종료 |
|
| 도구 결과당 문자 상한 |
|
| 단일 요소 액션에 대한 시간 제한 |
|
|
|
| — | 명시적 Chromium 바이너리 |
| — | Playwright가 브라우저를 찾는 위치 |
CLI 플래그: --port, --host, --headless / --no-headless, --idle-timeout, --version, --help.
Playwright가 기대하는 Chromium 버전이 설치되지 않았지만 다른 버전이 있다면, 서버는 실패하는 대신 그것을 찾아 사용합니다 — 사전 빌드된 컨테이너에서 유용합니다. WUT_EXECUTABLE_PATH는 검색을 완전히 재정의합니다.
개발
npm install
npm run build
npm test # agent loop (mocked model) + full end-to-end suite
npm run typechecknpm test는 스크립트된 모의 모델에 대해 에이전트 루프를 실행한 다음, 두 전송 모두에서 실제 MCP 클라이언트로 빌드된 서버를 로컬 픽스처 앱에 대해 구동합니다 — 참조, 오래된 참조 처리, 진단, 재연결 간 세션 유지, 유휴 정리를 다룹니다. npm run test:agent:live는 추가로 실제 공급자에 대해 run_task를 실행하며, 키가 설정되지 않으면 자체적으로 건너뜁니다.
CI는 모든 푸시와 풀 리퀘스트에 대해 Node 20 및 22에서 타입체크, 빌드, 두 스위트를 실행합니다. 라이브 에이전트 테스트는 실제 API 호출을 하기 때문에 별도로 실행됩니다 — Live agent test 워크플로를 통한 요청 시, 그리고 주간 — GOOGLE_GENERATIVE_AI_API_KEY 또는 ANTHROPIC_API_KEY를 리포지토리 비밀로 필요로 하며, 예약된 실행은 둘 다 설정되지 않으면 자체적으로 건너뜁니다.
라이선스
MIT
Available Tools
26 toolsbrowser_call_toolCall a page or DevTools toolA
Runs a tool from browser_list_tools against the session's page, with arguments matching its browser_tool_schema. WebMCP tools are code the site supplies: their output is the site's word, and one marked CONSEQUENTIAL can take real actions (orders, payments, messages).
Inputs: name (required), sessionId (required), arguments, timeoutMs.
browser_clickClickA
Clicks an element. Address the element by ref (from the latest browser_snapshot), or by css, or by role+name. Reports any navigation, console errors, or network activity the click triggered.
Inputs: sessionId (required), css, ref, name, +5 more.
browser_closeClose sessionA
Closes a browser session and frees its resources.
Inputs: sessionId (required).
browser_consoleConsole logA
Returns buffered console messages and uncaught page errors (with stacks). Check this whenever the page misbehaves — it usually names the failure directly.
Inputs: sessionId (required), clear, level, limit, +1 more.
browser_evaluateEvaluate JavaScriptA
Runs JavaScript in the page and returns the JSON-serialized result. Accepts a bare expression ("document.title") or a function ("el => el.value"). When an element is targeted, it is bound to el. Use it to read state the accessibility tree does not expose.
Inputs: sessionId (required), expression (required), css, ref, +4 more.
browser_go_backGo backB
Navigates back in history and returns the new page state with fresh refs.
Inputs: sessionId (required).
browser_handle_dialogHandle dialogA
Answers an alert/confirm/prompt. A dialog blocks the page until it is answered, so an unanswered one is dismissed automatically rather than stalling the action that opened it. Call this BEFORE the action that triggers a dialog to arm the answer — that is the only way to accept one or supply prompt() text. Called while a dialog is open, it answers that dialog immediately.
Inputs: accept (required), sessionId (required), promptText.
browser_hoverHoverA
Hovers an element, e.g. to reveal a menu or tooltip. Address the element by ref (from the latest browser_snapshot), or by css, or by role+name.
Inputs: sessionId (required), css, ref, name, +2 more.
browser_inspect_elementInspect elementARead-only
DevTools-style inspection of one element: tag, attributes, box model, form state, and computed styles. Use it to diagnose layout and visibility problems.
Inputs: sessionId (required), css, ref, name, +3 more.
browser_listList sessionsARead-only
Lists open browser sessions with their current URL, age, and idle time.
Inputs: no named parameters.
browser_list_toolsList page and DevTools toolsARead-only
Lists tools beyond this server's own that can run against the session's page, by qualified name: "webmcp." for tools the site itself publishes through WebMCP (read live — they change as the page navigates), and "devtools." for chrome-devtools-mcp's tools (performance traces, Lighthouse, emulation, heap snapshots…), which this server runs for you — no extra MCP server to configure. Follow with browser_tool_schema, then browser_call_tool.
Inputs: sessionId (required), source.
browser_networkNetwork logARead-only
Lists network requests the session has made, with status, size, and duration. Each line carries an #id for browser_request_detail. WebSockets appear as WS entries with their frame counts. Filter by URL substring or by failure status.
Inputs: sessionId (required), limit, filter, status.
browser_press_keyPress keyB
Presses a key, optionally focused on an element. Key names follow Playwright ("Enter", "Escape", "ArrowDown", "Control+a").
Inputs: key (required), sessionId (required), css, ref, +3 more.
browser_queryQuery elementsARead-only
Finds elements by role+name, visible text, or CSS, and returns a compact line per match including its ref and visible/enabled state. Use this instead of a full snapshot when you already know what you are looking for.
Inputs: sessionId (required), css, name, role, +2 more.
browser_read_textRead textARead-only
Returns the rendered text of the page or of one element subtree — the readable content without markup. Use it to verify copy, read results, or check an error message.
Inputs: sessionId (required), css, ref, name, +4 more.
browser_request_detailRequest detailARead-only
Inspects one request from browser_network: headers, timing breakdown, request body, or response body. Small text responses are cached, so they stay readable after navigation. For a WebSocket entry, any part returns its frame stream.
Inputs: id (required), sessionId (required), part, offset, +1 more.
browser_screenshotScreenshotARead-only
Captures a JPEG of the page or an element. Use this only for genuinely visual questions (layout, styling, rendering); browser_snapshot and browser_read_text are faster and cheaper for finding and verifying content.
Inputs: sessionId (required), css, ref, name, +3 more.
browser_scrollScrollA
Scrolls an element into view, or scrolls the page by a pixel delta when no element is given.
Inputs: sessionId (required), dx, dy, css, +4 more.
browser_select_optionSelect optionA
Selects one or more options in a . Address the element by ref (from the latest browser_snapshot), or by css, or by role+name.
Inputs: values (required), sessionId (required), css, ref, +3 more.
browser_snapshotSnapshot pageARead-only
Returns the accessibility tree of the page as compact YAML, with a [ref=eN] handle on every element. This is the primary way to see the page — use these refs to click and type. Far cheaper than HTML or screenshots. Scope it with ref/css/role, cap it with depth, or page through it with offset when a page is large.
Inputs: sessionId (required), css, ref, name, +7 more.
browser_startStart browser sessionA
Opens a new browser session and returns its sessionId. The session (cookies, storage, page state) stays alive across tool calls until closed or idle-timed-out, so you can interact with the same page over many turns.
Inputs: tab, url, model, cdpUrl, +7 more.
browser_tool_schemaGet a tool's schemaARead-only
Full description and JSON input schema of a tool from browser_list_tools, e.g. "webmcp.search" or "devtools.performance_start_trace".
Inputs: name (required), sessionId (required).
browser_typeType textA
Types text into an input or textarea. Address the element by ref (from the latest browser_snapshot), or by css, or by role+name.
Inputs: text (required), sessionId (required), css, ref, +5 more.
browser_wait_forWait for conditionA
Waits for text to appear, text to disappear, or a selector to become visible. Use after actions that trigger async updates.
Inputs: sessionId (required), text, selector, textGone, +1 more.
run_taskRun UI taskA
Delegates a multi-step UI task to a fast built-in browser agent, which drives the session itself and reports back. Use it for goal-shaped work ("log in as demo@example.com and check the dashboard loads", "walk the checkout flow and report anything broken") rather than driving each click yourself.
Returns a structured report: a success flag, a summary, and findings — each with a severity, what is wrong, where, and the evidence observed. Findings come from two places: what the agent noticed, and what the harness itself recorded (console errors, failed requests, dialogs), so problems are reported even when the agent does not mention them or runs out of steps. The session is left on whatever page the agent ended on, so you can inspect it further with the browser_* tools.
Inputs: sessionId (required), instruction (required), model, maxSteps, +1 more. Returns: model, steps, success, summary, +6 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 26 tools
Most tools have clearly distinct purposes: interaction (click/type/hover/press_key/select_option), navigation, and session management are unambiguous. The main soft overlap is among the page-reading tools (browser_snapshot, browser_query, browser_read_text, browser_inspect_element, browser_screenshot), but the descriptions explicitly explain when to prefer each, so misselection risk is low.
Nearly all tools use a browser_ prefix with snake_case, which is highly predictable. Slight deviation: some are verb-first (browser_navigate, browser_click) while others are noun-first (browser_console, browser_network, browser_snapshot), and run_task drops the prefix, but the style is coherent overall.
At 26 tools the surface is on the heavy side, but browser automation is a genuinely broad domain spanning sessions, interaction, inspection, network, dialogs, and delegation. Few tools feel redundant, though the count is borderline rather than tightly scoped.
The surface covers the full automation lifecycle: session start/list/close, navigation and history, element interaction, form filling, dialog handling, waiting, accessibility/text/visual inspection, JS evaluation, console and network diagnostics, plus a meta-tool layer and a delegated run_task agent. No obvious dead ends for typical UI testing.
Maintenance
Related MCP Connectors
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Hosted browser for AI agents: screenshots, post-JS DOM, console, WCAG. No install, no API key.
Find UI bugs, verify fixes and run tests on your web app from your AI coding agent.
Let your AI agent operate any website through a real, logged-in browser session.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to browse and interact with web pages through a persistent headless Chromium session, serving compact structured orientations, targeted element queries, and full detail only when explicitly requested. It supports navigation, observation, form filling, monitoring, and session management while cutting token overhead by up to ~140x versus raw accessibility-tree dumps.4 npm-
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to browse and interact with websites through a persistent headless Chromium session, returning compact structured page representations instead of full accessibility-tree dumps. Agents can navigate, query specific elements and forms, click, type, manage tabs and cookies, and monitor console or network activity while paying a fraction of the tokens.4 npm-
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to browse and interact with web pages through a token-efficient, structured page representation — orientation summaries, targeted element queries, and full detail only on request — instead of raw accessibility-tree dumps. Supports navigation, interaction, forms, screenshots, console and network monitoring, session/tab management, and browser-based development auditing.4 npm-
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to browse and interact with web pages through a persistent headless Chromium session, returning compact structured page summaries, targeted element queries, and full detail only on request. This keeps token usage far below full accessibility-tree snapshots while still supporting navigation, forms, screenshots, and session control.4 npm-