Skip to main content
Glama
a11y-mcp-server

a11y-mcp-server

by aiuxmasters

a11y-mcp-server

An MCP server that exposes axe-core accessibility auditing as tools — so any MCP-compatible agent (Claude Desktop, Claude Code, or any other MCP client) can audit HTML without a project-specific integration.

This grew out of agentic-design-tools's a11y-review Claude Code skill: the skill is Claude Code-specific, this is the same auditing capability as a standard protocol server any agent can call.

Tools

Tool

Description

audit_html

Audit an inline HTML string

audit_file

Audit a local .html file by path

audit_url

Fetch a URL and audit the raw (server-rendered) response HTML

Each accepts an optional tags array to restrict which axe-core rule tags run, e.g. ["wcag2a", "wcag2aa"].

Scope note: audits run via jsdom, which has no real layout engine. That reliably catches structural/semantic issues — missing alt text, unlabeled form inputs, missing lang/<title>, empty link text, and similar — but rules that depend on rendered geometry or computed color (color-contrast, focus-order checks) won't reliably fire. For full WCAG coverage, run axe-core in a real browser (Playwright/Puppeteer) against the rendered page.

Security note: audit_html and audit_url execute any <script> in the input inside a sandboxed jsdom window (no Node.js API access). Only audit HTML/URLs you trust.

Related MCP server: mcp-a11y-tools

Install & configure

npm install -g @aiuxmasters/a11y-mcp-server

Add to your MCP client config (e.g. Claude Desktop's claude_desktop_config.json):

{
  "mcpServers": {
    "a11y": {
      "command": "npx",
      "args": ["-y", "@aiuxmasters/a11y-mcp-server"]
    }
  }
}

Programmatic API

import { auditHtml } from "@aiuxmasters/a11y-mcp-server";

const result = await auditHtml("<img src='logo.png'>");
console.log(result.violations); // [{ id: "image-alt", impact: "critical", ... }]

Development

npm install
npm test        # unit tests + a real end-to-end MCP client/server round trip over InMemoryTransport
npm run build

License

MIT — see LICENSE.

Available Tools

2 tools
audit_fileAudit a local HTML file for accessibility issuesB

Same checks as audit_html, reading the document from a local file path.

Inputs: path (required), tags.

audit_htmlAudit HTML for accessibility issuesA

Runs axe-core against an HTML string (via jsdom) and returns WCAG violations. Catches structural/semantic issues (missing alt text, unlabeled inputs, missing lang/title, empty link text, etc.) — layout-dependent rules like color-contrast are not reliable in jsdom.

Inputs: html (required), tags.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 2 tools

    Disambiguation4/5

    The two tools are clearly distinguished by input source (HTML string vs file path), but their core functionality is identical, which could cause minor confusion about which to use.

    Naming Consistency5/5

    Both tools follow a consistent '_audit_' prefix pattern, making their purpose and variation (input type) predictable.

    Tool Count3/5

    With only two tools, the server feels thin for a full accessibility auditing server, though it narrowly covers its stated input methods.

    Completeness2/5

    The server lacks features like rule configuration, output filtering, or detailed reporting, leaving significant gaps for practical usage beyond basic checks.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      An MCP (Model Context Protocol) server for performing accessibility audits on webpages using axe-core. Use the results in an agentic loop with your favorite AI assistants (Cline/Cursor/GH Copilot) and let them fix a11y issues for you!
      2
      401 npm
      53
      Mozilla Public 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI agents with web accessibility analysis tools via MCP, enabling checks for alt text, heading hierarchy, color contrast, ARIA validation, and form accessibility.
      42 npm
      MIT