MCP WCAG Accessibility Tool
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., "@MCP WCAG Accessibility Tool Audit https://mysite.com for WCAG AA accessibility issues"
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.
MCP WCAG Accessibility Tool π¦Ύ
A powerful Model Context Protocol (MCP) server for comprehensive WCAG accessibility analysis and code remediation.
π Features
10 Professional Tools for accessibility analysis
WCAG 2.0, 2.1, 2.2 support
Multi-framework support (HTML, React, Vue, Angular)
Live URL auditing capability
ESLint configuration generator
Automatic code refactoring
GitHub WCAG repository integration
10 languages supported
Related MCP server: Accessibility MCP Server
π οΈ Available Tools
analyze_accessibility - Analyze code for WCAG violations
refactor_for_wcag - Automatically fix accessibility issues
validate_compliance - Check WCAG compliance levels (A, AA, AAA)
get_documentation - Get WCAG documentation for specific rules
annotate_code - Add inline comments with accessibility issues
accessibility_score - Calculate detailed accessibility score (0-100)
generate_component - Generate accessible component templates
eslint_config - Generate ESLint configuration with a11y rules
live_url_audit - Audit live websites for accessibility
wcag_github_sync - Sync with official WCAG GitHub repository
π Prerequisites
Node.js 18+ (tested with v22.14.0)
npm or yarn
Claude Desktop app
π§ Installation
1. Clone the repository
git clone https://github.com/YOUR_USERNAME/mcp-wcag.git
cd mcp-wcag2. Install dependencies
npm install3. Build the project
npm run build4. Verify installation
npm run verifyβοΈ Claude Desktop Configuration
Windows
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"wcag-accessibility": {
"command": "node",
"args": ["C:\\path\\to\\mcp-wcag\\dist\\index.js"]
}
}
}Mac/Linux
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"wcag-accessibility": {
"command": "node",
"args": ["/path/to/mcp-wcag/dist/index.js"]
}
}
}π§ͺ Testing
Run the test suite:
npm testTest individual tools:
node test-tools.mjsπ Usage Examples
Analyze HTML for accessibility
Analyze this HTML for WCAG AA compliance:
<html>
<img src="test.jpg">
<button></button>
</html>Generate ESLint configuration
Generate an ESLint configuration for React with TypeScript and accessibility rulesAudit a live website
Analyze https://example.com for accessibility issuesGenerate accessible component
Generate an accessible modal component in ReactποΈ Project Structure
mcp-wcag/
βββ src/
β βββ index.ts # Main server entry point
β βββ core/
β β βββ WCAGAnalyzer.ts
β β βββ CodeParser.ts
β β βββ AccessibilityFixer.ts
β βββ rules/
β β βββ wcagRules.ts
β βββ tools/
β βββ analyzeAccessibility.ts
β βββ refactorForWCAG.ts
β βββ validateCompliance.ts
β βββ ... (7 more tools)
βββ dist/ # Compiled JavaScript
βββ wcag-data/ # Local WCAG data cache
βββ package.json
βββ tsconfig.json
βββ README.mdπ Development
Watch mode
npm run devLint code
npm run lintFormat code
npm run formatπ Troubleshooting
Common Issues
Issue: require is not defined
Solution: Project uses ES modules. All imports must use
importsyntax.
Issue: Server crashes on startup
Solution: Run
npm run verifyto check installation
Issue: Tools not showing in Claude
Solution: Restart Claude Desktop after configuration
π WCAG Coverage
Automated detection: ~30-40% of WCAG criteria
Success criteria: 225 total (2.0, 2.1, 2.2)
Techniques: 850+ documented
Code examples: 500+
Languages: 10 (EN, ES, FR, DE, PT, IT, NL, JA, KO, ZH)
π€ Contributing
Fork the repository
Create your feature branch (
git checkout -b feature/AmazingFeature)Commit your changes (
git commit -m 'Add some AmazingFeature')Push to the branch (
git push origin feature/AmazingFeature)Open a Pull Request
π License
MIT License - see LICENSE file for details
π Acknowledgments
W3C WAI for WCAG specifications
Deque Systems for axe-core inspiration
Claude/Anthropic for MCP framework
WCAG community for guidelines
π§ Contact
GitHub: @YOUR_USERNAME
Project Link: https://github.com/YOUR_USERNAME/mcp-wcag
π Version History
v3.0.1 - Bug fixes for ES modules and error handling
v3.0.0 - Added GitHub WCAG sync
v2.1.0 - Added ESLint config and live URL audit
v2.0.0 - Added scoring, annotation, and component generation
v1.0.0 - Initial release with 4 core tools
Made with β€οΈ for web accessibility
Available Tools
10 toolsaccessibility_scoreB
Calculate detailed accessibility score with metrics, grades, and recommendations
Inputs: code (required), format, detailed, generateBadge.
analyze_accessibilityC
Analyze HTML/React code for WCAG accessibility issues
Inputs: code (required), level, format.
annotate_codeC
Add inline WCAG issue comments to code for better developer experience
Inputs: code (required), style, format, severity.
eslint_configC
Generate ESLint configuration with accessibility rules for your project
Inputs: level, prettier, framework, typescript, +1 more.
generate_componentC
Generate fully accessible component templates with WCAG compliance built-in
Inputs: component (required), level, styled, framework, +1 more.
get_documentationB
Get WCAG documentation for specific rules or guidelines
Inputs: ruleId, search, category.
live_url_auditC
Analyze live websites for WCAG accessibility issues
Inputs: url (required), depth, level, checkMobile, +1 more.
refactor_for_wcagC
Automatically refactor code to be WCAG compliant
Inputs: code (required), level, format, autoFix.
validate_complianceC
Validate if code meets WCAG compliance requirements
Inputs: code (required), level, format, detailed.
wcag_github_syncC
Sync and fetch WCAG data from official GitHub repository for enhanced analysis
Inputs: action (required), version, language, criterionId, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 10 tools
Most tools target distinct actions, but analyze_accessibility, validate_compliance, and accessibility_score all inspect code for WCAG-related findings and could be confused depending on whether the agent wants issues, pass/fail validation, or a score. The descriptions help somewhat, but the boundary between analysis, validation, and scoring is not fully crisp.
The tools consistently use snake_case, but the naming conventions are mixed: most are verb_noun or verb_prep_noun, while accessibility_score, live_url_audit, wcag_github_sync, and eslint_config are noun-first. The names remain readable, but the pattern is not predictable.
Ten tools is well-scoped for a WCAG accessibility server, covering analysis, refactoring, validation, scoring, documentation, live auditing, sync, component generation, and lint configuration. Each tool appears to occupy a meaningful part of the workflow without excessive surface area.
The surface covers the main accessibility lifecycle: analyzing code, auditing live URLs, validating, refactoring, annotating, scoring, generating accessible components, and producing ESLint configuration. Minor gaps remain, such as explicit batch/site-wide auditing or report export, but core workflows are well covered.
Related MCP Connectors
Scan URLs or HTML for WCAG 2.2 violations. 75-rule manifest, weighted score, shareable reports.
Free WCAG 2.2/ADA/508 accessibility MCP: scan, AI fixes, verify, vision audit, localhost tunnel
Run accessibility, contrast, and design token audits and file QA issues from your AI coding tool.
Accessibility and WCAG data for your own websites: fix lists, live checks, and fix validation.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables 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.51MIT
- AlicenseAqualityDmaintenanceProvides conversational, actionable accessibility testing for AI agents, including auditing, prioritization, and code-level fixes.22MIT
- AlicenseAqualityDmaintenanceEnables AI agents to perform conversational accessibility testing with actionable insights, code-level fixes, and support for authenticated sessions and batch audits.2234 npm2MIT
- AlicenseBqualityCmaintenanceEnables WCAG accessibility inspection of websites, with tools to check, analyze, and report on compliance issues.44 npmISC