Back to Browse

Validatehtml Cli MCP Server

Developer ToolsModerate5.6MCP RegistryLocal
Free

Server data from the Official MCP Registry

Validate HTML, CSS, JSON, XML and WCAG accessibility from an AI coding agent. No key needed.

About

Validate HTML, CSS, JSON, XML and WCAG accessibility from an AI coding agent. No key needed.

Security Report

5.6
Moderate5.6Moderate Risk

The validatehtml MCP server is a straightforward HTML/CSS/JSON/XML validator client that sends user-requested code or URLs to validatehtml.com and reads only whitelisted file extensions. Its network and file access match its stated validation purpose, and the keyed audit endpoint correctly reads its API key from an environment variable. Remaining observations are minor: the free tools send content to a third party without auth (documented), and the loopback fetch and file read paths have no size or path restrictions beyond extension checks. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.

6 files analyzed · 10 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

process_spawn

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Optional. Only audit_page needs it. 100 free calls a month.Required

Environment variable: VALIDATEHTML_API_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "validatehtml": {
      "command": "npx",
      "args": [
        "-y",
        "validatehtml@0.1.0"
      ],
      "env": {
        "VALIDATEHTML_API_KEY": "your-validatehtml-api-key-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

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 accessibility

No 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 mcp

Cursor, Windsurf, VS Code and any other MCP client:

{
  "mcpServers": {
    "validatehtml": { "command": "npx", "args": ["-y", "validatehtml", "mcp"] }
  }
}
ToolWhat it doesKey
validate_codeChecks HTML, CSS, JSON, XML, or HTML for WCAG issuesNo
validate_fileThe same on a local file, without reading it into the conversationNo
validate_urlChecks a live page, including a dev server on localhostNo
audit_pageEvery check on one deployed page: HTML, accessibility, meta tags, Open Graph, page weightYes
site_scan_linkA link for you to scan a whole site in your browserNo

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.

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.

Reviews

No reviews yet

Be the first to review this server!