Accessibility Testing MCP
Enables accessibility testing of websites and HTML content using axe-core and IBM Equal Access engines. Supports WCAG compliance checking, multi-viewport testing, and provides detailed violation reports with remediation guidance.
README
Accessibility Testing MCP
An MCP server for accessibility testing using axe-core and IBM Equal Access. Choose your testing engine or use both for comprehensive coverage.
Example Prompts
- "Test the accessibility of https://example.com"
- "Test the accessibility of https://example.com" blockers only output issues in chat: What is the Issue, Who it Impacts, How to Fix, WCAG, Severity, Code Snippet"
Dual Engine Support
- Axe-core (Deque) - Industry standard, zero false positives
- IBM Equal Access - Comprehensive IBM accessibility requirements
Multi-Screen Testing
Test at multiple viewport sizes to catch responsive accessibility issues.
Tools
| Tool | Description |
|---|---|
analyze_url |
Test any URL for accessibility issues |
analyze_url_json |
URL test with raw JSON output |
analyze_html |
Test HTML content directly |
analyze_html_json |
HTML test with raw JSON output |
get_rules |
List available accessibility rules |
All tools accept an optional engine parameter ("axe" or "ace").
Installation
npm install
npm run build
Configuration
Environment Variables
Configure via MCP config env section:
| Variable | Values | Default | Description |
|---|---|---|---|
A11Y_ENGINE |
axe, ace |
axe |
Testing engine |
WCAG_LEVEL |
2.0_A, 2.0_AA, 2.1_A, 2.1_AA, 2.2_AA, etc. |
2.1_AA |
WCAG version & level |
BEST_PRACTICES |
true, false |
true |
Include best practices/recommendations |
SCREEN_SIZES |
Comma-separated WIDTHxHEIGHT |
1280x1024 |
Viewport sizes to test |
HEADLESS_BROWSER |
true, false |
true |
Run browser in headless mode; set to false to open visible browser |
The WCAG_LEVEL setting automatically configures both Axe-core tags and IBM Equal Access policies.
VS Code (GitHub Copilot)
Add to VS Code settings (JSON):
"mcp": {
"servers": {
"accessibility-testing-mcp": {
"type": "stdio",
"command": "node",
"args": ["/path/to/accessibility-testing-mcp/build/index.js"],
"env": {
"A11Y_ENGINE": "axe",
"WCAG_LEVEL": "2.2_AA",
"BEST_PRACTICES": "true",
"SCREEN_SIZES": "1280x1024,320x640",
"HEADLESS_BROWSER": "true"
}
}
}
}
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"accessibility": {
"command": "node",
"args": ["/path/to/accessibility-testing-mcp/build/index.js"],
"env": {
"A11Y_ENGINE": "ace",
"WCAG_LEVEL": "2.2_AA",
"BEST_PRACTICES": "true"
}
}
}
}
Understanding Results
Axe-core Output
- Violations: Definite accessibility failures
- Incomplete: Needs manual review
- Passes: Rules that passed
- Inapplicable: Rules that don't apply
IBM Equal Access Output
- Violations: Accessibility failures
- Potential Violations: Needs review
- Recommendations: Suggested improvements (when BEST_PRACTICES=true)
- Manual Checks: Requires human testing
WCAG_LEVEL Values
| Level | Description |
|---|---|
2.0_A |
WCAG 2.0 Level A |
2.0_AA |
WCAG 2.0 Level AA |
2.1_A |
WCAG 2.1 Level A |
2.1_AA |
WCAG 2.1 Level AA (default) |
2.1_AAA |
WCAG 2.1 Level AAA |
2.2_A |
WCAG 2.2 Level A |
2.2_AA |
WCAG 2.2 Level AA |
2.2_AAA |
WCAG 2.2 Level AAA |
Dependencies
- @modelcontextprotocol/sdk - MCP server framework
- axe-core - Deque accessibility testing engine
- accessibility-checker - IBM Equal Access engine
- playwright - Headless browser automation
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。