visual-ui-debug-agent-mcp

visual-ui-debug-agent-mcp

An MCP server that enables AI agents to autonomously test, debug, and analyze web interfaces visually using Playwright, with 30 tools for screenshots, workflows, performance, and visual comparison.

Category
访问服务器

README

<p align="center"> <img src="publicresources/vuda-banner.svg" alt="VUDA - Visual UI Debug Agent" width="100%"> </p>

<p align="center"> <a href="https://www.npmjs.com/package/visual-ui-debug-agent-mcp"><img src="https://img.shields.io/npm/v/visual-ui-debug-agent-mcp.svg?style=flat-square&color=58a6ff" alt="npm version"></a> <a href="https://www.npmjs.com/package/visual-ui-debug-agent-mcp"><img src="https://img.shields.io/npm/dm/visual-ui-debug-agent-mcp.svg?style=flat-square&color=3fb950" alt="npm downloads"></a> <a href="https://github.com/samihalawa/visual-ui-debug-agent-mcp/stargazers"><img src="https://img.shields.io/github/stars/samihalawa/visual-ui-debug-agent-mcp?style=flat-square&color=f0883e" alt="GitHub stars"></a> <a href="https://github.com/samihalawa/visual-ui-debug-agent-mcp/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/visual-ui-debug-agent-mcp.svg?style=flat-square&color=a371f7" alt="License"></a> </p>

<p align="center"> <b>Autonomous MCP Server for AI-Powered Visual UI Testing & Debugging</b><br> <sub>30 powerful tools for screenshots, workflows, performance, and visual analysis</sub> </p>


What is VUDA?

VUDA (Visual UI Debug Agent) is an MCP (Model Context Protocol) server that gives AI models the power to visually analyze, test, and debug web interfaces using Playwright. It enables any AI - even those without built-in vision - to inspect web pages, find UI bugs, test user workflows, and measure performance autonomously.

<p align="center"> <img src="publicresources/features.svg" alt="VUDA Features" width="100%"> </p>

Key Capabilities

  • Visual Analysis - Capture screenshots, analyze page structure, map interactive elements
  • Workflow Testing - Automatically test user journeys with step-by-step validation
  • Performance Monitoring - Measure load times, analyze metrics, identify bottlenecks
  • API Testing - Validate backend endpoints and responses
  • Visual Comparison - Detect UI changes between versions with diff highlighting
  • Console Monitoring - Capture errors, warnings, and logs in real-time

See It In Action

<p align="center"> <img src="publicresources/link-checker-demo.jpeg" alt="VUDA Link Checker in Claude Desktop" width="100%"> </p>

<p align="center"> <i>Claude Desktop using VUDA to check links and find broken pages</i> </p>

<p align="center"> <img src="publicresources/workflow-validation-demo.jpeg" alt="VUDA Workflow Validation" width="100%"> </p>

<p align="center"> <i>Validating user registration flow with step-by-step screenshots</i> </p>

<p align="center"> <img src="publicresources/screenshot-demo.jpeg" alt="VUDA Screenshot Tool" width="100%"> </p>

<p align="center"> <i>Taking screenshots via Puppeteer MCP integration</i> </p>


Architecture

<p align="center"> <img src="publicresources/architecture-diagram.jpeg" alt="VUDA Architecture" width="100%"> </p>

<p align="center"> <img src="publicresources/mcp-flow-diagram.jpeg" alt="MCP Tool Request Flow" width="100%"> </p>

VUDA acts as a bridge between AI models and web browsers through the MCP protocol. It uses Playwright for reliable cross-browser automation and provides structured data that any AI can understand.


Automated Testing Workflow

<p align="center"> <img src="publicresources/automation-workflow.svg" alt="VUDA Automated Testing Workflow" width="100%"> </p>

One command triggers a comprehensive site analysis - crawl all pages, screenshot everything, validate user flows, and measure performance in seconds.


Quick Start

Installation

# Install globally via npm
npm install -g visual-ui-debug-agent-mcp

# Or run directly with npx (no installation needed)
npx visual-ui-debug-agent-mcp

Configure with Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "vuda": {
      "command": "npx",
      "args": ["-y", "visual-ui-debug-agent-mcp"]
    }
  }
}

Configure with Other MCP Clients

{
  "mcpServers": {
    "vuda": {
      "command": "node",
      "args": ["/path/to/visual-ui-debug-agent-mcp/dist/index.js"]
    }
  }
}

Complete Tool Reference (30 Tools)

Visual Analysis Tools

Tool Description
enhanced_page_analyzer Comprehensive page analysis with element mapping, performance metrics, and console logs
screenshot_url Capture high-quality screenshots of any URL with device emulation
batch_screenshot_urls Screenshot multiple URLs in a single operation
screenshot_local_files Capture screenshots of local HTML files
visual_comparison Compare two pages/states and highlight visual differences
dom_inspector Inspect DOM elements with computed styles and properties

Workflow & Testing Tools

Tool Description
ui_workflow_validator Test complete user journeys with step-by-step validation
navigation_flow_validator Validate multi-step navigation sequences
api_endpoint_tester Test API endpoints with authentication support

Performance & Monitoring Tools

Tool Description
performance_analysis Measure page load performance and Core Web Vitals
console_monitor Monitor and capture console logs, errors, and warnings
sitemap_crawler Crawl sitemaps and analyze page structure

Playwright Direct Controls

Tool Description
playwright_navigate Navigate to URLs
playwright_click Click on elements
playwright_iframe_click Click elements inside iframes
playwright_fill Fill form fields
playwright_select Select dropdown options
playwright_hover Hover over elements
playwright_evaluate Execute JavaScript in page context
playwright_console_logs Get console output
playwright_get_visible_text Extract visible text content
playwright_get_visible_html Get rendered HTML
playwright_go_back Navigate back
playwright_go_forward Navigate forward
playwright_press_key Press keyboard keys
playwright_drag Drag and drop elements
playwright_screenshot Take custom screenshots

Utility Tools

Tool Description
tunnel_helper Guide and manage Cloudflare tunnel setup for remote debugging
debug_memory Save and retrieve debugging context across sessions

Usage Examples

Take a Screenshot

Ask Claude: "Take a screenshot of https://example.com"

The AI will use screenshot_url to capture the page and return the image.

Analyze a Page

Ask Claude: "Analyze the UI of https://myapp.com/dashboard and find any issues"

VUDA will use enhanced_page_analyzer to map all elements, check console for errors, and report findings.

Test a Login Flow

Ask Claude: "Test the login flow on https://myapp.com - use test@example.com and password123"

The AI will use ui_workflow_validator to:

  1. Navigate to the login page
  2. Fill in credentials
  3. Click submit
  4. Verify successful login
  5. Capture screenshots at each step

Compare Two Versions

Ask Claude: "Compare the homepage before and after our CSS update"

Using visual_comparison, VUDA will highlight all visual differences between the two states.

Monitor Performance

Ask Claude: "Check the performance of our checkout page"

performance_analysis will measure load times, analyze Core Web Vitals, and identify bottlenecks.


Advanced Configuration

Environment Variables

# Set browser options
PLAYWRIGHT_HEADLESS=true
PLAYWRIGHT_SLOW_MO=100

# Debug mode
DEBUG=vuda:*

Programmatic Usage

import { Server } from "@modelcontextprotocol/sdk/server/index.js";

// VUDA exposes all tools through the MCP protocol
const result = await client.callTool("enhanced_page_analyzer", {
  url: "https://example.com",
  includeConsole: true,
  mapElements: true,
  fullPage: true
});

Why VUDA?

<p align="center"> <img src="publicresources/before-after-mockup.svg" alt="VUDA Before and After Comparison" width="100%"> </p>

Feature VUDA Other Solutions
MCP Native Built for AI integration Often REST-only
30 Specialized Tools Comprehensive coverage Limited toolsets
Vision for Any AI Works without built-in vision Requires vision models
Autonomous Testing AI-driven workflows Manual scripting
Cross-Browser Playwright-powered Single browser
Zero Config Works out of the box Complex setup

Requirements

  • Node.js 18 or higher
  • npm or npx
  • Works on macOS, Linux, and Windows

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the ISC License.


<p align="center"> <sub>Built with Playwright and the Model Context Protocol</sub><br> <sub>Made by <a href="https://github.com/samihalawa">@samihalawa</a></sub> </p>

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选