QA Testing MCP Server
Enables AI agents to perform comprehensive web application testing including visual, functional, performance, accessibility, and SEO analysis using browser automation without requiring API keys.
README
QA Testing MCP Server
An AI-driven testing and QA MCP (Model Context Protocol) server that enables AI agents like Claude, Claude Code, or Cursor to perform comprehensive web application testing without requiring API keys.
Features
- Visual Testing: Screenshot capture, responsive design analysis, layout consistency checks
- Functional Testing: Form validation, link integrity, interactive element testing, navigation analysis
- Performance Testing: Core Web Vitals measurement, resource analysis, optimization opportunities
- Accessibility Testing: WCAG compliance (A, AA, AAA), color contrast, ARIA validation
- SEO Analysis: Meta tags, heading structure, content analysis, technical SEO
- Report Generation: Comprehensive Markdown reports with prioritized recommendations
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ User (Cursor/Claude) │
│ "Test https://example.com" │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ QA Testing MCP Server │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌───────────┐ │
│ │ Visual │ │ Functional │ │ Performance │ │Accessibility│ │
│ │ Testing │ │ Testing │ │ Testing │ │ Testing │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ └───────────┘ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────────────┐ │
│ │ SEO │ │ Report │ │ Full Test Suite Runner │ │
│ │ Analysis │ │ Generator │ │ │ │
│ └─────────────┘ └─────────────┘ └─────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ chrome-devtools-mcp │
│ (Browser automation & inspection) │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Chrome Browser │
│ (Web application under test) │
└─────────────────────────────────────────────────────────────────┘
Prerequisites
- Node.js v22.12.0 or newer
- npm (comes with Node.js)
- Chrome browser (stable, beta, or canary)
- Cursor IDE or Claude with MCP support
Installation
1. Clone and Build
# Clone the repository
git clone <repository-url>
cd emerge
# Install dependencies
npm install
# Build the project
npm run build
2. Configure MCP Servers
Add the following to your MCP client configuration:
For Cursor (Settings → MCP → Add Server):
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["chrome-devtools-mcp@latest"]
},
"qa-testing": {
"command": "node",
"args": ["/absolute/path/to/emerge/dist/index.js"]
}
}
}
For Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["chrome-devtools-mcp@latest"]
},
"qa-testing": {
"command": "node",
"args": ["/absolute/path/to/emerge/dist/index.js"]
}
}
}
3. Verify Installation
After configuring, restart your MCP client and verify the tools are available:
List all available MCP tools
You should see tools like run_visual_test, run_performance_test, run_full_test, etc.
Usage
Quick Start
Simply ask the AI to test a website:
Test https://example.com and generate a full QA report
Available Tools
| Tool | Description |
|---|---|
run_visual_test |
Screenshots, viewport analysis, layout checks |
run_functional_test |
Forms, links, interactions, navigation |
run_performance_test |
Core Web Vitals, resource metrics |
run_accessibility_test |
WCAG compliance, ARIA, contrast |
run_seo_test |
Meta tags, headings, technical SEO |
run_full_test |
All tests + comprehensive report |
generate_report |
Compile results into Markdown report |
Example Prompts
Full Test Suite:
Run a comprehensive test on https://mywebsite.com including visual, functional, performance, accessibility, and SEO analysis. Generate a detailed report.
Specific Testing:
Check the accessibility of https://mywebsite.com against WCAG 2.1 Level AA standards.
Analyze the performance of https://mywebsite.com - measure Core Web Vitals and identify optimization opportunities.
Test the mobile responsiveness of https://mywebsite.com at 375px, 768px, and 1440px viewports.
Combined with chrome-devtools-mcp:
Navigate to https://mywebsite.com, take screenshots at mobile and desktop sizes, then run a performance trace and accessibility check. Generate a report with all findings.
See sample-prompts/test-prompts.md for more example prompts.
Report Structure
Generated reports include:
# Web Application Test Report
## Executive Summary
- Overall score and status
- Test coverage
- Issues overview (critical, major, minor)
- Key highlights
## Visual Testing Results
- Viewports tested
- Layout issues
- Responsiveness checks
## Functional Testing Results
- Forms analysis
- Links analysis
- Interactive elements
- Navigation structure
## Performance Testing Results
- Core Web Vitals
- Resource metrics
- Optimization opportunities
## Accessibility Testing Results
- WCAG compliance level
- Violations found
- ARIA usage
- Color contrast
## SEO Analysis Results
- Meta tags
- Heading structure
- Content analysis
- Technical SEO
## Recommendations
- High priority
- Medium priority
- Low priority
## Raw Data
- Complete JSON data (collapsible)
Chrome DevTools MCP Options
The chrome-devtools-mcp server supports various configuration options:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--headless=true", // Run headless for CI/CD
"--isolated=true", // Use temporary profile
"--channel=canary" // Use Chrome Canary
]
}
}
}
Connect to Running Chrome:
# Start Chrome with remote debugging
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9222 \
--user-data-dir=/tmp/chrome-profile
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--browser-url=http://127.0.0.1:9222"
]
}
}
}
Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode (development)
npm run dev
# Run tests
npm test
Project Structure
emerge/
├── package.json # Project configuration
├── tsconfig.json # TypeScript configuration
├── README.md # This file
├── src/
│ ├── index.ts # Entry point
│ ├── server.ts # MCP server implementation
│ ├── tools/
│ │ ├── index.ts # Tool exports
│ │ ├── visual-test.ts # Visual testing
│ │ ├── functional-test.ts# Functional testing
│ │ ├── performance-test.ts# Performance testing
│ │ ├── accessibility-test.ts# Accessibility testing
│ │ └── seo-test.ts # SEO analysis
│ ├── report/
│ │ ├── generator.ts # Report generation
│ │ └── templates.ts # Markdown templates
│ └── types/
│ └── index.ts # TypeScript types
├── prompts/
│ └── test-prompts.md # Example prompts
├── mcp-config.example.json # MCP configuration example
└── cursor-mcp-settings.json # Cursor-specific config
How It Works
- User Input: You provide a URL and testing scope through Cursor or Claude
- AI Processing: The AI interprets your request and calls the appropriate testing tools
- Browser Automation: chrome-devtools-mcp controls Chrome to load pages and gather data
- Analysis: Each tool analyzes specific aspects (visual, performance, etc.)
- Report Generation: Results are compiled into a comprehensive Markdown report
- Recommendations: Prioritized suggestions for improvement
Security Considerations
- The chrome-devtools-mcp server exposes browser content to MCP clients
- Avoid testing pages with sensitive information during sessions
- Use
--isolated=truefor temporary profiles that clear after testing - Be cautious with
--remote-debugging-portas it opens browser control
Limitations
- Real-time metrics require actual browser automation via chrome-devtools-mcp
- Some tests provide guidance for AI to execute rather than direct measurements
- Performance metrics are most accurate with multiple test runs
- Accessibility testing should be complemented with manual review
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
License
MIT License - see LICENSE file for details.
Resources
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。