Accessibility Audit MCP Guide

How the Accessibility Audit MCP fits your workflow, what to expect, and how we use LLM-oriented WCAG A/AA coverage in audit_accessibility_violations and fix_accessibility_violations.

Overview

The Accessibility Audit MCP helps you scan and fix web accessibility issues in your codebase. It checks for compliance with WCAG 2.0 / 2.1 / 2.2 Level A and AA — the standard most teams use for web accessibility.

This guide walks you through using it effectively: auditing, reading the report, and applying fixes.

What can it do?

Audit accessibility violations

Fix accessibility violations

Getting started: 3 simple steps

Step 1: Run an audit

Tell the tool where your code lives and which file types to include.

Tool name: audit_accessibility_violations

Required parameters

Optional parameters

What happens

  1. Files under target_path are scanned
  2. Violations may be annotated with inline comments (depending on configuration)
  3. A report file such as accessibility-report.md is generated
Example comments in code
<!-- VIOLATION 1.1.1: Image missing alt attribute -->
<img src="logo.png">

<!-- VIOLATION 1.4.3: Insufficient color contrast (2.5:1, needs 4.5:1) -->
<p style="color: #777;">Low contrast text</p>

Step 2: Review the report

Open accessibility-report.md. You should see:

Step 3: Apply fixes

Tool name: fix_accessibility_violations

Required parameters

Optional parameters

What happens

  1. The tool reads the report
  2. Applies fixes it supports, in a WCAG-aligned way
  3. Strips violation comments where fixes landed
  4. Writes a summary of changes

What violations does it check for?

Audits are organized around the four WCAG principles (Level A and AA scope in this MCP flow):

Perceivable
  • Missing alternative text on images
  • Missing or insufficient captions / alternatives for media (where applicable)
  • Poor color contrast
  • Text sizing and readability issues surfaced by rules
Operable
  • Keyboard access and focus
  • Interactive components that fail keyboard or focus expectations
  • Motion / flashing content rules where checked
  • Skip links and navigation patterns (where applicable)
Understandable
  • Labels, instructions, and predictable behavior
  • Form inputs and naming
  • Consistent navigation and identification (where rules apply)
Robust
  • Valid, parseable markup patterns the rules target
  • ARIA usage and roles where checked
  • Compatibility with assistive technology expectations in scope

Common violations and how they are fixed

Issue WCAG rule (typical) Fix direction
Image with no alt text 1.1.1 Add a descriptive alt (or appropriate pattern for decorative images)
Low color contrast 1.4.3 Adjust foreground/background to meet contrast ratio (commonly 4.5:1 for normal text)
Button with no accessible name 4.1.2 Add visible text, aria-label, or associated labelling
Form input without label 1.3.1 Associate <label> with for/id or equivalent
Non-semantic controls 1.3.1 / 4.1.2 Prefer native elements (<button>, headings, landmarks) where possible
Missing keyboard support 2.1.1 Ensure operability via keyboard; add handlers only when needed

Tips for best results

Start small

Run the audit on one folder (for example /src/components) before scanning the whole repo.

Review before bulk fixes

Read accessibility-report.md first. Use auto_fix: false when you want suggestions without writing files.

Iterate

Re-run the audit after fixes. Some items stay manual (context-heavy or design decisions).

Learn WCAG

The report and inline comments tie back to criteria. Understanding “why” helps you avoid repeats. Authoritative reference: WCAG Quick Reference.

Verify with assistive tech

Spot-check with a screen reader (NVDA, VoiceOver) and keyboard-only navigation after meaningful changes.

File support

Format Typically supported
HTML Yes
Vue Yes
React (JSX) Yes
TypeScript (TSX) Yes
JavaScript / TypeScript Yes (when templates or a11y patterns appear in scope)
Other Add extensions via file_extensions if your MCP tool supports them

Important notes

Limitations

Safety

Compliance levels (reminder)

This MCP guide focuses on A and AA coverage in the audit instruction set.

Next steps

  1. Run your first audit on a bounded path
  2. Read accessibility-report.md and triage by severity
  3. Apply fixes (manually, via MCP, or mixed)
  4. Re-audit to confirm
  5. Automate repeats in CI where your team allows (report-only is a safe start)

Need more help?

Remember: Accessibility is for everyone using your product — good patterns improve clarity and resilience for all users.

← Back to Quality Engineering Tools Suite

↑ Top of page