Skip to main content
Glama

PDF Accessibility Checker (agent skill)

CI License: MIT

Checks a PDF against WCAG 2.2 AA and PDF/UA-1, simulates a screen reader, and reports each issue with its location, the standards it breaks and how to fix it. Works as an agent skill and as a plain Python CLI.

Works with any agent: a plain CLI (pdf-a11y), an MCP server (pdf-a11y-mcp), a SKILL.md skill folder (open format), generated instruction files for Codex/Cursor/Copilot/Gemini/Cline/Aider, and a function-calling schema. See docs/SETUP.md for each agent.

  • Skill folder: skills/pdf-accessibility-checker/ (SKILL.md + scripts); single-file variant in its dist/

  • Engine: Python package pdf_a11y (pyproject.toml), CLI pdf-a11y, MCP server pdf-a11y-mcp

  • Agent hints: AGENTS.md, GEMINI.md, CONVENTIONS.md, .github/, .cursor/, .clinerules/ (generated by tools/build_adapters.py)

pip install "pdf-accessibility-checker[all] @ git+https://github.com/Sedhu2429/pdf-accessibility-checker-.git"
pdf-a11y file.pdf --format md
pdf-a11y file.pdf --json --report report.html

Outputs: Markdown (--format md), JSON (--json), HTML report with screenshots (--report), PNG files (--shots-dir). Needs Python 3.8+ and pypdf (screenshots and contrast also need pypdfium2 and pillow; installed automatically unless PDF_A11Y_NO_INSTALL=1).

Privacy and safety

Redaction is on by default (--privacy redact; strict removes document text and screenshots). URLs must be https and public (no SSRF), passwords go through PDF_PASSWORD, outputs are written owner-only and never overwrite foreign files, and PDF-derived text is treated as untrusted. Screenshots are not redacted. Never commit generated reports (.gitignore excludes them).

Related MCP server: mcp-a11y-tools

Limits

Automated checks cannot judge alt-text quality, true reading order, or contrast over images. Verify with PAC, Acrobat's checker or a real screen reader (NVDA, JAWS, VoiceOver).

Tests

python tests/test_guardrails.py (needs pypdf, reportlab); python tests/test_mcp.py (needs mcp, Python 3.10+)

After changing the skill, regenerate: python skills/pdf-accessibility-checker/build_single_file.py and python tools/build_adapters.py

Status and disclaimer

Tested with Claude Code, the CLI, the MCP server (official MCP Python client, SDK 1.x and 2.x), Docker and Python 3.8-3.12. Setup snippets for other agents follow their public docs and are not yet verified in those clients; please report problems.

This tool gives automated, heuristic results. It is not a certification, a legal opinion or a substitute for manual testing, and a clean run does not make a PDF WCAG or PDF/UA compliant. WCAG, PDF/UA, Acrobat, NVDA, JAWS, VoiceOver, PAC and other names belong to their owners and are used only to identify standards and tools; this project is not affiliated with them.

Contributing, security, license

CONTRIBUTING.md | SECURITY.md (report vulnerabilities privately) | CHANGELOG.md | MIT License

Contact: sedhuinit@gmail.com (security reports: see SECURITY.md).

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      An MCP server for accessibility auditing that provides WCAG 2.2 criteria lookup, HTML remediation guidance, and automated documentation generation for UI components. It enables users to analyze code snippets for issues and generate professional accessibility audit reports.
      MIT
    • 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
    • A
      license
      A
      quality
      D
      maintenance
      EasyAccessPDF is a production MCP server for PDF accessibility and document conversion. Five tools: convert documents (PDF/DOCX/PPT/XLS/HTML/EPUB/RTF/ODT/TXT) to clean Markdown; export PDFs to JSON/HTML/text/annotated-PDF; run veraPDF PDF/UA-1 (ISO 14289) accessibility audits with graded reports; auto-tag and remediate PDFs for WCAG 2.1/2.2, Section 508, ADA Title II and EAA/EN 301 549 compliance.
      5
      MIT