MCP Integration
The Accessibility Suite includes an MCP server (a11y-mcp-tools) that exposes accessibility evidence capture and WCAG diagnosis as tools for AI assistants. This page explains how to configure your MCP client to use it.
What MCP provides
Section titled “What MCP provides”Once connected, your AI assistant gains two capabilities:
| Tool | What it does |
|---|---|
a11y.evidence | Capture tamper-evident evidence bundles from HTML files, CLI logs, or other inputs. Each bundle includes DOM snapshots, screenshots, and SHA-256 integrity digests. |
a11y.diagnose | Run WCAG rule checks over an evidence bundle with provenance verification. Returns findings with severity, rule IDs, and fix guidance. |
This means you can ask your AI assistant to scan a page, verify provenance, and suggest fixes — all within a single conversation.
Configuration
Section titled “Configuration”Using npx (recommended)
Section titled “Using npx (recommended)”Add this to your MCP client configuration file. This works with Claude Desktop, Cursor, VS Code, and any other MCP-compatible client:
{ "mcpServers": { "a11y": { "command": "npx", "args": ["-y", "@accessibility-suite/mcp-tools"] } }}The npx -y flag ensures the package is installed automatically if it is not already present.
Using a global install
Section titled “Using a global install”If you have already installed the package globally:
npm install -g @accessibility-suite/mcp-toolsThen configure your MCP client with:
{ "mcpServers": { "a11y": { "command": "a11y-mcp" } }}Pointing to an evidence directory
Section titled “Pointing to an evidence directory”If you want the MCP server to start with a pre-existing evidence directory:
mcp-server-a11y --evidence-dir .a11y_artifactsWhere to put the configuration
Section titled “Where to put the configuration”The configuration file location depends on your MCP client:
| Client | Config file |
|---|---|
| Claude Desktop | claude_desktop_config.json (Settings > Developer > Edit Config) |
| Cursor | .cursor/mcp.json in your project root |
| VS Code | .vscode/mcp.json in your project root |
| Claude Code | .claude/mcp.json in your project root |
Typical workflow
Section titled “Typical workflow”- Open a conversation with your AI assistant
- Ask it to scan a page or evidence bundle: “Scan
index.htmlfor accessibility issues” - The assistant calls
a11y.evidenceto capture a tamper-evident bundle - Ask for diagnosis: “Diagnose the evidence bundle and verify provenance”
- The assistant calls
a11y.diagnose, checks integrity, and returns findings with fix guidance - Iterate on fixes within the conversation
Integration with CI
Section titled “Integration with CI”Most teams combine MCP with CI:
- CI runs
a11y-lintanda11y-ci gateon every pull request - The gate uploads
.a11y_artifacts/as CI artifacts - Developers forward
evidence.jsonto MCP tools for interactive diagnosis and remediation - The AI assistant helps fix issues, and the next CI run verifies the fixes
This creates a feedback loop: automated detection in CI, interactive remediation via MCP, and automated verification on the next push.