pdf-a11y-mcp
by Sedhu2429
README.md
# PDF Accessibility Checker (agent skill)
[](https://github.com/Sedhu2429/pdf-accessibility-checker-/actions/workflows/ci.yml) [](LICENSE)
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](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).
## 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](CONTRIBUTING.md) | [SECURITY.md](SECURITY.md) (report vulnerabilities privately) | [CHANGELOG.md](CHANGELOG.md) | [MIT License](LICENSE)
Contact: sedhuinit@gmail.com (security reports: see SECURITY.md).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues