validatehtml
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
validatehtml
Validate HTML, CSS, JSON, XML and accessibility from your terminal or your AI coding agent. Errors are spec violations, warnings are best practices, and modern valid code stays clean.
npx validatehtml index.html
npx validatehtml https://example.com
npx validatehtml http://localhost:3000 --type accessibilityNo account and no key. Exit code 0 when it passes, 1 when it fails, 2 when it could not run, so it fits in a script or a build.
For AI coding agents (MCP)
Claude Code:
claude mcp add validatehtml -- npx -y validatehtml mcpCursor, Windsurf, VS Code and any other MCP client:
{
"mcpServers": {
"validatehtml": { "command": "npx", "args": ["-y", "validatehtml", "mcp"] }
}
}Tool | What it does | Key |
| Checks HTML, CSS, JSON, XML, or HTML for WCAG issues | No |
| The same on a local file, without reading it into the conversation | No |
| Checks a live page, including a dev server on localhost | No |
| Every check on one deployed page: HTML, accessibility, meta tags, Open Graph, page weight | Yes |
| A link for you to scan a whole site in your browser | No |
Agent skill
skills/validatehtml/SKILL.md tells an agent
when to validate and how to read the result (fix errors, report warnings, never
claim WCAG compliance). Copy the folder into .claude/skills/ (or your agent's
skills folder) next to the MCP server.
Related MCP server: accessibility-mcp-server
Command line
validatehtml <file|url|-> [--type html|css|json|xml|accessibility]
[--audit] [--fail-on error|warning] [--format text|json]
validatehtml mcp- reads standard input. --audit needs a key.
Key
--audit and audit_page use VALIDATEHTML_API_KEY. Create one at
https://validatehtml.com/dashboard. A free account includes 100 calls a month;
larger allowances are on the pricing page.
What leaves your machine
The code or file you ask to check is sent to validatehtml.com, checked in memory
and not stored. A page on localhost is read on your machine and sent the same
way. Only .html, .htm, .css, .json, .xml and .svg files can be read,
up to 1 MB. Each call also counts the tool used and the package version, never
the content.
Licence
MIT for this client. The licence does not cover the ValidateHTML name.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Audit public webpages and supplied markup for HTML, CSS, SEO, JSON-LD, and link issues.
Website checker for AI coding agents. Measures your site in a real browser, with evidence.
Run accessibility, contrast, and design token audits and file QA issues from your AI coding tool.
Hosted browser for AI agents: screenshots, post-JS DOM, console, WCAG. No install, no API key.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI coding assistants to test web accessibility by scanning URLs, detecting violations, and running focused audits on keyboard navigation, screen reader compatibility, and WCAG criteria — all within the assistant's loop.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to perform comprehensive web accessibility checks (WCAG 2.1/2.2) including color contrast analysis, ARIA validation, and full accessibility report generation without requiring any API key.8MIT
- AlicenseAqualityBmaintenanceEnables AI coding assistants to validate HTML/CSS markup using W3C APIs, perform technical SEO audits, check broken links, and validate JSON-LD schemas directly in local workspaces.39983 npm10MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants and coding agents to audit, compare, and optimize websites for performance, SEO, AEO, GEO, and AI crawler accessibility directly from chat or development workflows.MIT