Skip to content

About

Deque's accessibility toolkit for coding agents.

Resources

Code of conduct

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

Axe Accessibility (Claude Code plugin)

Deque's accessibility toolkit for coding agents — get set up fast and teach your coding agent to ship accessible UI.

v1 focuses on the Axe MCP Server (documented against 1.6.0) and its analyze and remediate tools, including guided tests run through analyze. They're wrapped in a smooth onboarding + usage workflow. The plugin is the umbrella for Deque's agent-facing accessibility capabilities; more will be added over time.

  • Wire up the server for your IDE/MCP client — your choice of distribution (npm or Docker) and authentication (API key or OAuth 2.0).
  • Teach your agent to run the mandatory analyze → remediate → verify loop on every UI change, with correct batching and field mapping.
  • Audit on demand — analyze a page, batch-remediate the violations, and re-verify until automated accessibility violations hit zero.
  • Run guided tests on request — keyboard (focus order, traps, visibility), interactive elements (accessible name, role, state), and modal (dialog semantics, focus handling, dismissal). These are Intelligent Guided Tests a static scan cannot replace. They use AI credits, so the agent runs them only when you ask.

What's included

Component Type What it does
mcp-usage Skill (auto) Background knowledge so any agent calls analyze/remediate correctly (field mapping, guided tests, batching, credit awareness, the workflow). Loads automatically on accessibility tasks.
/axe-accessibility:mcp-setup Skill (command) Interactive setup: pick distribution (npm or Docker) and auth (API key or OAuth), configure your client, verify the connection.
/axe-accessibility:mcp-generate-instructions Skill (command) Generate/merge agent-instruction files (CLAUDE.md, .github/copilot-instructions.md, Cursor rules, AGENTS.md) that enforce the workflow.
/axe-accessibility:mcp-audit Skill (command) Drive the loop on a URL: analyze → batched remediate → apply → re-verify until 0 violations or a round cap, plus guided tests when you ask for them.
.mcp.json MCP server Ships an auth-agnostic Axe MCP Server entry using the npm distribution, started by scripts/start-axe-mcp-server.sh and pinned to axe-mcp-server@1.6.0 and @deque/axe-auth@1.6.0 — works with either API key or OAuth. Docker needs a different command shape (see client-configs.md).

Prerequisites

  • An Axe DevTools for Web subscription — the Bundle plan includes Axe MCP Server access. Without it, the tools will fail to authenticate.
  • One runtime, depending on distribution:
    • npm (default): Node.js >= 22.19.0, plus a one-time Chromium install. The bundled config runs npx -y axe-mcp-server@1.6.0, which does not download a browser for you — skip this and every scan fails with Chromium is not installed.

      Install a Chromium the server supports. Installing Playwright without a version resolves to its latest release, which can install a revision the server doesn't support. Use the Playwright version that axe-mcp-server@1.6.0 depends on:

      npx -y playwright@1.62.1 install chromium

      If a scan ever fails with Chromium is not installed, run the install command that error message prints, exactly as printed — it names the version the running server expects. See Choosing a Distribution for Linux system-library notes.

    • Docker: Docker installed and running. The server is the public image dequesystems/axe-mcp-server:v1.6.0, pulled automatically on first launch (no docker login required).

  • For OAuth on either distribution: Node.js 22 LTS+ (the config runs npx -y @deque/axe-auth@1.6.0).

Distributions

The plugin defaults to npm, which is the lower-friction path for local development:

npm (default) Docker
Command npx -y axe-mcp-server@1.6.0 docker run … dequesystems/axe-mcp-server:v1.6.0
Requires Node >= 22.19.0 Docker daemon running
Browser one-time Chromium install, Playwright pinned to the server's version bundled in the image
Reaching localhost direct needs --add-host=host.docker.internal:host-gateway, and a dev server bound to 0.0.0.0
Updates with each plugin release (pinned 1.6.0) edit the tag in your config after each plugin release (pinned v1.6.0)
AXE_CHROME_PATH supported fails at startup
Best for local development isolation, CI images, no Node toolchain

The npm package is axe-mcp-server — unscoped. @deque/axe-mcp-server does not exist; only the auth CLI is scoped (@deque/axe-auth).

Why the server is pinned to 1.6.0

Every package the plugin launches with npx, and the Docker image it documents, is pinned to an exact version, so what a user installs is exactly what was reviewed for the plugin directory — a range, @latest, or :latest could pull code that was never scanned. The pin also keeps the server in step with the guidance: the skills document the server's response shapes — for example, guided-test results arriving under data.igt, keyed by tool name — and agents follow them literally.

Where the guidance and the server ever diverge, the server wins and the agent still gets it right: the Axe MCP Server builds its tool descriptions and input schemas at startup, so the live description of analyze always carries the current parameters and response shape. The skills tell agents to treat that as authoritative. serverInfo.version in the MCP initialize response reports what is actually running.

Updating for a new server release (maintainers): users get a new server only through a plugin release. Update every reference to the server version (npm version and v<version> Docker image tag) and the Playwright version together, including prose like "pinned 1.6.0" and the API key option's description in .claude-plugin/plugin.json: grep -rnE --exclude=CHANGELOG.md '1\.6\.0|1\.62\.1' . lists them all. The new Playwright version is npm view axe-mcp-server@<version> dependencies.playwright. Re-check the documented response shapes and update skills/mcp-usage/references/field-mapping.md if anything moved. Users get the change with the next release.

Run /axe-accessibility:mcp-setup to configure either one, for any supported client. Full snippets for all four distribution × auth combinations are in skills/mcp-setup/references/client-configs.md.

Installation

Run locally for development:

claude --plugin-dir /path/to/axe-accessibility

Install from the Deque-hosted marketplace (this repo doubles as one):

/plugin marketplace add dequelabs/axe-accessibility
/plugin install axe-accessibility

Once the plugin is accepted into the Claude plugin directory, no marketplace step is needed: Claude Code surfaces that directory as the built-in claude-plugins-official marketplace for every user, so /plugin finds it directly.

Development

Requires the Node version in .nvmrc and pnpm (corepack enable picks up the pinned version). pnpm install also installs a pre-commit hook that formats, lints, and spell-checks staged files, and checks that pinned versions still agree.

pnpm check runs every check CI runs except the PR title check (CI requires a Conventional Commit title) and the Release PR check. Each one also runs on its own:

Command Checks
pnpm check:format Formatting (Prettier; pnpm fmt fixes it)
pnpm check:lint Lint for JavaScript, JSON, and Markdown (ESLint)
pnpm check:spelling Spelling (cspell); add legitimate words to project-words.txt
pnpm check:shell Shell scripts (ShellCheck; install it locally, e.g. brew install shellcheck)
pnpm check:manifests claude plugin validate --strict on both manifests in .claude-plugin/
pnpm check:links Links in Markdown files, local and external (linkinator)
pnpm check:workflow-timeouts Every GitHub Actions job sets timeout-minutes
pnpm check:versions Pinned server, axe-auth, Playwright, and plugin versions agree everywhere
pnpm test Tests for the repo's scripts and the names customers' settings reference

Publishing

Two distribution paths, not mutually exclusive. Each receives releases differently; RELEASING.md covers how to cut one:

  1. Self-hosted marketplace — this repo doubles as one. /plugin marketplace add dequelabs/axe-accessibility reads .claude-plugin/marketplace.json from main, and its entry installs the plugin from the latest release's tag, never from main. Changes to the entry's own metadata, such as its description, still reach users from main directly. Existing installs move to a new release when the user runs claude plugin update axe-accessibility@deque, or on their own if the user turned on auto-update for the deque marketplace; Claude Code replaces an install only when the version changes. Between merging a release PR and the Release workflow pushing the tag, usually under a minute, fresh installs fail and updates keep the previous version.

  2. Claude plugin directory — the community-driven directory that Claude Code exposes as the built-in claude-plugins-official marketplace. Submission requires a public GitHub repo (closed source is not accepted) and a passing validate:

    claude plugin validate .claude-plugin/plugin.json --strict
    claude plugin validate .claude-plugin/marketplace.json --strict

    Submit through one of Anthropic's in-app forms — claude.ai, which needs a Team or Enterprise org plus directory-management access (Owners have it by default), or Console, which needs a Developer, Admin, or Owner role. Submission status and reviewer feedback appear on the Directory page in organization settings. Anthropic runs automated screening on every submission; the "Anthropic Verified" badge is an additional, discretionary quality-and-safety review with no application path.

    The directory serves whichever commit the listing's tracked branch or tag points to, which is set in Anthropic's developer portal rather than in this repo. Making it serve only releases is tracked in #22.

    This is a different directory from the Connectors Directory, which lists remote MCP servers only. The Axe MCP Server ships as a local stdio server, so the plugin directory is its route; see Anthropic's review criteria, which both directories share.

Quick start

  1. /axe-accessibility:mcp-setup — choose API key or OAuth and connect the server. Verify with /mcp.
  2. /axe-accessibility:mcp-generate-instructions all — bake the workflow into your repo's agent instructions.
  3. /axe-accessibility:mcp-audit http://localhost:3000 — analyze, remediate, and verify until clean.

Authentication

Two mechanisms are supported; choose during /axe-accessibility:mcp-setup:

  • API key — create one at the Axe Account Portal (API Keys → "Axe MCP Server" product), then enter it in the plugin's Axe API key option. Claude Code asks when you enable the plugin; change it later under /plugin (manage axe-accessibility). Sensitive options don't appear in /config. It is stored in your system keychain, not in settings.json.
  • OAuth 2.0 — npx -y @deque/axe-auth@1.6.0 login (browser PKCE flow; tokens stored in the OS keychain with auto-refresh).

The bundled .mcp.json is auth-agnostic: it mints an OAuth token and passes exactly one credential — the OAuth AXE_ACCESS_TOKEN if you're logged in, otherwise the key from the Axe API key option. Leave the option blank if you use OAuth. The bundled config does not read an AXE_API_KEY exported in your shell; if you relied on one before 0.3.1, enter it in the option instead. The server rejects having both set, so the config unsets the API key when a token is present. Set AXE_SERVER_URL for private cloud / on-prem deployments; see client-configs.md for the full environment-variable table (AXE_ADVANCED_RULES, AXE_CHROME_PATH, BROWSER_TIMEOUT_MS, LOG_LEVEL).

Note: two things consume AI credits from your organization's allocation: remediate and guided tests. A plain analyze doesn't, so re-verifying is cheap. The agent runs guided tests only when you ask for what they cover, never by default. remediate is charged per issue in the batch — not per call. It is a batched tool: send every issue from one scan in a single call (up to 25). That is the contract, not a discount, so cost scales with issue count. The plugin's guidance sends every issue instance rather than collapsing repeats by rule — remediation is tailored per element, and one rule spans very different fixes — and asks before remediating unusually large scans.

Findings are not all deterministic

Since server 1.4.0, analyze merges Advanced Rules findings (screenshots + computer vision + LLMs) into its results, catching things axe-core cannot — pseudo-headings, unhelpful alt text, contrast over gradients and images. Each issue carries an isAdvanced flag, and the plugin's guidance treats the two classes differently:

  • isAdvanced: false — deterministic axe-core, tuned for zero false positives. Authoritative.
  • isAdvanced: true — probabilistic. A strong signal to verify against the real UI, not a verdict.

Tune per scan with the advancedRules parameter (precise | balanced | thorough | disabled, or the 90%/70%/50% aliases), or set a server-wide default with AXE_ADVANCED_RULES. Because the parameter is per scan, plain requests work — "run a11y analysis with thorough advanced rules", "scan with advanced rules disabled" — and the plugin's guidance tells the agent to pass it.

Every analyze response reports what actually applied in an advancedRules block. Its source is worth reading: tool_arg/env_var/org_default say which input won, while org_policy_locked means a fixed org policy rejected your override, and tier_locked/unavailable mean Advanced Rules aren't enabled for the account — so no advanced findings will appear regardless of what you pass. On those accounts the server also drops advancedRules from the tool's published schema, so its absence signals entitlement, not an old server.

Privacy Policy

Deque's privacy policy applies to this plugin and the Axe MCP Server it configures: https://www.deque.com/privacy-policy/ — privacy questions to privacyinquiry@deque.com.

The plugin itself is configuration and instructions: the skills and .mcp.json in this repo collect, store, and transmit nothing on their own. Data leaves your machine only through the Axe MCP Server they configure.

  • What stays local. The server runs on your machine and drives a local Chromium against the URL you give it. Page content is read in that local browser.
  • What is sent to Deque. Requests to the Axe API (AXE_SERVER_URL, Deque's cloud by default) carry your credential plus the data needed to serve the call: authentication and entitlement/credit checks; for Advanced Rules, page context and screenshots processed with computer vision and LLMs; for guided tests, the markup and element screenshots of the elements under test, analyzed with AI; for remediate, the issue details you batch into the call, used to generate fix guidance. analyze sends no page content for AI processing when advancedRules is disabled and no igtTools are requested; it still authenticates and meters against the API.
  • Credentials. Either an API key you enter in the plugin's Axe API key option (Claude Code keeps it in your system keychain), or OAuth tokens that @deque/axe-auth stores in your OS keychain and refreshes. Either one is passed only to the local Axe MCP Server, which sends it to AXE_SERVER_URL (Deque's cloud by default) to authenticate. Neither is written into this repo or into the plugin's files.
  • You choose what gets scanned. Because the URL is yours to pick, scanning an authenticated or internal page means sending that page's content to Deque under the terms above. When a page should not be processed by AI: scope the scan with selector, set advancedRules: "disabled", and don't pass igtTools — guided tests are a separate opt-in from Advanced Rules, and disabling one does not disable the other.

Collection, use, storage, third-party sharing, retention, and regional processing are governed by the privacy policy linked above together with your Axe DevTools agreement.

Ownership

This plugin is owned and maintained by Deque's MCP team (@dequelabs/mcp-team).

License

MIT © Deque Systems, Inc.

About

Deque's accessibility toolkit for coding agents.

Resources

Code of conduct

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages