visual-ui-debug-agent-mcp
This server, VUDA (Visual UI Debug Agent), provides a suite of MCP tools for visual UI debugging and testing of web applications using Playwright across local, Browserbase, Anchor, or CDP browsers. Key capabilities include:
Screenshots & Visual Capture: Capture URLs, full pages, viewports, elements, local files, and batch screenshots for side-by-side comparison; run visual comparisons with pixel-level diff highlighting.
Page Analysis & DOM Inspection: All-in-one page analyzer (screenshot, console logs, interactive element mapping, performance metrics); DOM inspector for element properties, children, and computed CSS; extract visible text or full HTML.
Workflow & Navigation Automation: Execute and validate multi-step user workflows with assertions; test navigation flows across pages; directly control the browser via navigate, click, iframe click, fill, select, hover, press key, drag, go back/forward, and evaluate JavaScript.
Console & Performance Monitoring: Capture and filter console logs; collect page load, network idle, and other performance metrics over multiple iterations.
API & Site Testing: Exercise multiple HTTP endpoints with various methods and auth support; recursively crawl sitemaps to discover pages, detect broken links, and extract content.
Session & State Management: Save and retrieve debugging notes; set up Cloudflare tunnels or store/retrieve tunnel URLs; import cookies or storage state for authenticated sessions.
Device Emulation: Emulate devices such as iPhone 13 or Pixel 5 via an optional device parameter.
Multiple Browser Providers: Support local, Browserbase, Anchor, or CDP browser environments.
Provides guidance and management for setting up Cloudflare tunnels to enable remote debugging of web applications.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@visual-ui-debug-agent-mcp screenshot https://example.com in mobile view"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
What VUDA does
VUDA (Visual UI Debug Agent) is a Model Context Protocol server for inspecting and testing web interfaces with Playwright. The MCP server runs locally over standard input/output; its browser can run locally, on Browserbase, on Anchor Browser, or at an existing CDP endpoint. Every tool uses the same selected browser runtime.
Capture full-page, viewport, element, local-file, and batch screenshots.
Map interactive elements and inspect rendered DOM and computed styles.
Execute multi-step UI workflows while preserving browser state.
Monitor console output and analyze page performance.
Compare two rendered states and return a visual diff.
Crawl sitemaps and exercise API endpoints.
Emulate supported Playwright devices.
Related MCP server: PixelCheck
Quick start
1. Run VUDA
npx -y visual-ui-debug-agent-mcpThe default local mode needs a Chromium-compatible browser. If one is not already available, install the matching browser once:
npx playwright install chromium2. Add it to an MCP client
{
"mcpServers": {
"vuda": {
"command": "npx",
"args": ["-y", "visual-ui-debug-agent-mcp"]
}
}
}Restart the client after changing its MCP configuration. The server writes protocol messages to stdout and diagnostics to its temporary log file.
No provider account is required for local mode.
Docker users can use the same stdio transport:
{
"mcpServers": {
"vuda": {
"command": "docker",
"args": ["run", "--interactive", "--rm", "ghcr.io/samihalawa/visual-ui-debug-agent-mcp:latest"]
}
}
}To use provider credentials from a file with Docker, add "--env-file", "/absolute/path/to/.env" immediately after "run" in the args array.
3. Try it
Ask your client to:
Use VUDA to inspect https://example.com, capture a screenshot, list the
interactive elements, and report console errors and obvious layout issues.Tool reference
Analysis and capture
Tool | Purpose |
| Screenshot, console, performance, and interactive-element analysis |
| Capture a URL, viewport, full page, or selected element |
| Capture multiple URLs for side-by-side review |
| Render and capture local HTML files |
| Return element properties, children, and computed styles |
| Compare two rendered pages or elements |
Workflows, diagnostics, and APIs
Tool | Purpose |
| Execute and verify a described user journey |
| Validate a sequence of browser actions |
| Capture browser console messages over a time window |
| Collect navigation and page performance metrics |
| Exercise multiple HTTP endpoints |
| Discover and inspect pages from a sitemap |
| Store or retrieve a remote tunnel URL and setup guidance |
| Keep small debugging notes during one server session |
Direct Playwright controls
playwright_navigate, playwright_click, playwright_iframe_click, playwright_fill, playwright_select, playwright_hover, playwright_evaluate, playwright_console_logs, playwright_get_visible_text, playwright_get_visible_html, playwright_go_back, playwright_go_forward, playwright_press_key, playwright_drag, and playwright_screenshot.
Configuration
VUDA reads environment variables normally and automatically loads .env from its working directory. Copy .env.example when running from a source checkout. For an npx installation, either put .env in the MCP process working directory, pass variables in the client configuration, or set DOTENV_CONFIG_PATH to an absolute .env path.
Choose the browser
Mode | Required configuration | Account state |
Local (default) |
|
|
Browserbase |
| Reuse |
Anchor Browser |
| Use an Anchor profile in |
Existing browser |
| Uses that browser context; cookie injection is optional |
Browserbase example:
VUDA_BROWSER_PROVIDER=browserbase
BROWSERBASE_API_KEY=your_api_key
BROWSERBASE_PROJECT_ID=your_project_id
BROWSERBASE_CONTEXT_ID=your_saved_context_idAnchor Browser example with a persistent authenticated profile:
VUDA_BROWSER_PROVIDER=anchor
ANCHOR_API_KEY=your_api_key
VUDA_ANCHOR_SESSION_JSON={"browser":{"profile":{"name":"vuda","persist":true}}}All 29 tools keep their existing names and inputs in every mode. Read the MCP resource browser://status to confirm the selected provider, current connection state, session ID, and whether a live view is available. CDP and live-view URLs are never returned.
Import cookies or local state
Cookie injection works with every provider. Supply a Playwright cookie array inline or by file:
VUDA_COOKIES_FILE=/absolute/path/to/cookies.json
# VUDA_COOKIES_JSON=[{"name":"session","value":"...","domain":"example.com","path":"/"}]For local mode, VUDA_STORAGE_STATE_PATH loads a Playwright storage-state file. Set VUDA_PERSIST_STORAGE_STATE=true to write the updated state back when VUDA exits cleanly. Browserbase Contexts and Anchor profiles are the provider-native choices for state that must survive multiple cloud sessions.
Provider-specific session options remain available without another wrapper or SDK:
VUDA_BROWSERBASE_SESSION_JSONis merged into Browserbase's create-session request.VUDA_ANCHOR_SESSION_JSONis sent as Anchor's create-session request.
Timeouts
All timeout settings are optional:
Variable | Default | Purpose |
|
| General Playwright timeout in milliseconds |
|
| Navigation timeout |
|
| Selector wait timeout |
|
| Delay after navigation before capture |
|
| Delay for short UI updates |
|
| Slow-page threshold |
|
| Delay between direct interactions |
Example:
{
"mcpServers": {
"vuda": {
"command": "npx",
"args": ["-y", "visual-ui-debug-agent-mcp"],
"env": {
"VUDA_NAVIGATION_TIMEOUT": "30000",
"VUDA_STABILITY_WAIT": "2000"
}
}
}
}Development
git clone https://github.com/samihalawa/visual-ui-debug-agent-mcp.git
cd visual-ui-debug-agent-mcp
npm ci
npm testnpm test builds the TypeScript server, starts it through the MCP stdio transport, verifies the exact 29-tool inventory, reads a bundled resource, exercises a stateful tool call, and captures a real browser screenshot.
It also validates Browserbase and Anchor session request/cleanup shapes, CDP selection, cookie loading, and the crawler's browser initialization. Provider calls use deterministic mocks in CI; use your own .env for a live cloud session.
Before opening a pull request, also run:
npm audit
npm pack --dry-runArchitecture
VUDA keeps one Playwright control plane across all providers. Local mode creates isolated contexts for page-level analyses; remote modes reuse the provider context so authenticated state survives across tools. VUDA returns screenshots as MCP image content and exposes generated screenshots, browser status, and debugging prompts as MCP resources.
Contributing
Issues and focused pull requests are welcome. See CONTRIBUTING.md for the development workflow and review checklist. Release history is recorded in CHANGELOG.md.
License
ISC © 2023–2026 Sami Halawa and contributors.
Available Tools
29 toolsapi_endpoint_testerB
Test multiple API endpoints and verify responses
Inputs: url (required), endpoints (required), authToken.
batch_screenshot_urlsB
Take screenshots of multiple URLs and display them in a grid
Inputs: urls (required), paths, fullPage, waitTime, +1 more.
console_monitorC
Monitor console logs on a page
Inputs: url (required), filterTypes, duration, interactionSelector.
debug_memoryB
Save and retrieve debugging context including .env variables, selectors, and issues
Inputs: action (required), key, value, category.
dom_inspectorC
Inspect DOM elements and their properties
Inputs: url (required), selector (required), includeChildren, includeStyles.
enhanced_page_analyzerC
Analyze a page with screenshots, console logs, interactive element mapping, and performance metrics
Inputs: url (required), includeConsole, mapElements, fullPage, +2 more.
performance_analysisC
Analyze page performance metrics
Inputs: url (required), iterations, waitForNetworkIdle, device.
playwright_clickC
Click an element on the page
Inputs: selector (required).
playwright_console_logsC
Retrieve console logs captured so far
Inputs: clear, limit, type.
playwright_dragC
Drag an element to a target location
Inputs: sourceSelector (required), targetSelector (required).
playwright_evaluateB
Execute JavaScript in the browser console context
Inputs: script (required).
playwright_fillC
Fill out an input field
Inputs: selector (required), value (required).
playwright_get_visible_htmlB
Get the HTML content of the current page
Inputs: no named parameters.
playwright_get_visible_textB
Get the visible text content of the current page
Inputs: no named parameters.
playwright_go_backB
Navigate back in browser history
Inputs: no named parameters.
playwright_go_forwardA
Navigate forward in browser history
Inputs: no named parameters.
playwright_hoverB
Hover over an element on the page
Inputs: selector (required).
playwright_iframe_clickA
Click an element in an iframe on the page
Inputs: iframeSelector (required), selector (required).
playwright_press_keyB
Press a keyboard key (optionally focusing an element first)
Inputs: key (required), selector.
playwright_screenshotC
Take a screenshot of the current page or a specific element
Inputs: name (required), selector, fullPage.
playwright_selectB
Select an option in a dropdown
Inputs: selector (required), value (required).
screenshot_local_filesB
Take screenshots of local HTML files in a directory
Inputs: directory, pattern, fullPage, gridSize.
screenshot_urlC
Take a screenshot of a URL
Inputs: url (required), fullPage, selector, waitForSelector, +1 more.
sitemap_crawlerB
Crawl a website recursively to generate a comprehensive sitemap with all endpoints, links, and visible text content. Perfect for detecting inconsistent content, broken links, and navigation issues.
Inputs: url (required), maxDepth, includeText, sameDomainOnly, +1 more.
tunnel_helperA
Guide user to expose local ports via Cloudflare tunnel or manage tunnel URLs
Inputs: localPort (required), action (required), tunnelUrl.
ui_workflow_validatorC
Execute and validate a sequence of UI interactions simulating a user workflow.
Inputs: startUrl (required), taskDescription (required), steps (required), captureScreenshots, +1 more.
visual_comparisonB
Compare two URLs visually and highlight differences
Inputs: url1 (required), url2 (required), threshold, fullPage, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Many tools overlap in functionality, such as multiple screenshot tools (batch_screenshot_urls, playwright_screenshot, screenshot_local_files, screenshot_url) and analysis tools (enhanced_page_analyzer, performance_analysis, visual_comparison, dom_inspector). The distinction between low-level Playwright commands and high-level compound tools is unclear, causing potential misselection.
Naming conventions vary: some tools use snake_case (api_endpoint_tester), others use 'playwright_' prefix for low-level actions, and some are standalone (visual_comparison, sitemap_crawler). This inconsistency makes it hard to predict tool names.
With 29 tools, the set is overly large for a UI debugging agent. Many tools are redundant or could be merged, such as the various screenshot and analysis tools. A more streamlined set would be more manageable.
The tool set covers basic browser automation, screenshot, DOM inspection, performance, and workflow validation. However, there are gaps like network monitoring, accessibility checks, and event listeners. Some tools (debug_memory) seem peripheral, reducing overall coverage for the stated purpose.
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
Screenshot, diff, audit and sitemap-capture any web page — 5 MCP tools for AI agents.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI-powered browser automation, web scraping, and testing using Playwright across Chromium, Firefox, and WebKit. It allows users to perform actions like navigation, clicking, typing, and taking screenshots through natural language interfaces.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI agents real browser capabilities including screenshotting, action execution, data extraction, and multi-persona auditing for frontend validation.75 npm7MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that enables AI agents to automate browser testing via Chromium, providing tools for navigation, interaction, and inspection.-
- AlicenseNot gradedqualityDmaintenanceMCP server that bridges Model Context Protocol with browser automation, offering 37 tools across three modes (Playwright, CDP, Chrome Extension) and an autonomous agent for web tasks.MIT