API & MCP

Everything a person can do on Accessibility Fixer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Accessibility Fixer

Paste HTML or enter a URL and get a fix list: for every detected accessibility problem the tool shows the offending element, a corrected version generated from it (alt text, labels, lang, names, heading levels, table headers…) and how much work it is. Placeholders that need human judgement are marked TODO, and a patch-style diff is included.

Inputs of Accessibility Fixer
FieldTypeDefaultDescription
urlurl—Page URL. Static HTML only; JavaScript is not executed.
htmltextarea—Or paste HTML. Takes precedence over the URL.
includeBestPracticebooleantrueInclude best-practice and review items
maxFixesinteger80Max fixes

Example request

Checkout form with missing labels and alt text

curl -X POST https://accessibilityfixer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"html":"<html>\n<head><title>Shop</title></head>\n<body>\n<header><a href=\"/\"><img src=\"/img/logo.svg\"></a></header>\n<main>\n<h1>Checkout</h1>\n<h4>Delivery address</h4>\n<form action=\"/pay\">\n  <input type=\"text\" name=\"fullname\" placeholder=\"Full name\">\n  <select name=\"country\"><option>Germany</option><option>France</option></select>\n  <button type=\"submit\"><i class=\"icon-arrow\"></i></button>\n</form>\n<img src=\"/img/IMG_2041.jpg\" alt=\"IMG_2041.jpg\">\n</main>\n</body>\n</html>","includeBestPractice":true,"maxFixes":80}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "accessibility-fixer": { "type": "http", "url": "https://accessibilityfixer.usefulweb.site/mcp" }
  }
}