Valida HTML, CSS, JSON, XML e conformidade de acessibilidade WCAG para arquivos locais ou URLs ao vivo.
Também conhecido como theodcrx/validatehtml-cli, validatehtml-cli
- Stars
- 0
- Ferramentas
- —
- Downloads, 30 dias
- —
- Versão mais recente
- 0.1.0
- Último commit
- 10 de nov. de 2026
- Licença
- MIT
O que é o MCP validatehtml?
Valida HTML, CSS, JSON, XML e conformidade de acessibilidade WCAG para arquivos locais ou URLs ao vivo.
Resumo gerado a partir do README do projeto
Sobre o MCP server de validatehtml
O validatehtml permite verificar a sintaxe do código e a conformidade de acessibilidade diretamente de dentro de um agente de codificação de IA. Desenvolvedores podem usar esta ferramenta para verificar arquivos HTML, CSS, JSON e XML, ou para testar URLs ao vivo e servidores de desenvolvimento local. Ele funciona através de vários clientes MCP como Claude Code, Cursor, Windsurf e VS Code via npx.
O MCP server fornece ferramentas específicas, incluindo validate_code, validate_file e validate_url para lidar com diferentes tarefas de validação. Para verificações mais abrangentes, a ferramenta audit_page examina meta tags, dados de Open Graph e o peso da página, embora esta função específica exija uma VALIDATEHTML_API_KEY. Enquanto a validação básica não requer conta, o recurso de auditoria está sujeito a limites mensais de chamadas baseados no seu plano.
Arquivos enviados para validação, como .html, .css, .json, .xml ou .svg, são processados em memória e não são armazenados. O sistema suporta arquivos de até 1 MB e pode ler a partir do stdio. Ele retorna códigos de saída específicos para facilitar a integração em scripts de build automatizados ou fluxos de trabalho no terminal.
O que você pode fazer com ele
- 1Automatizar a validação em scripts de buildIntegre a validação em um pipeline de CI/CD usando códigos de saída para sinalizar sucesso ou falha.
Escrito a partir do README do projeto. Cada caso de uso é verificado com uma citação dele.
Como instalar o MCP validatehtml
Formatos verificados em 10 nov 2026Adicionar ao CursorAdicionar ao GooseInstalar o MCP validatehtml no Claude Code
$ claude mcp add --env 'VALIDATEHTML_API_KEY=<YOUR_VALIDATEHTML_API_KEY>' validatehtml-cli -- npx -y validatehtmlInstalar o MCP validatehtml no Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"validatehtml-cli": {
"command": "npx",
"args": [
"-y",
"validatehtml"
],
"env": {
"VALIDATEHTML_API_KEY": "<YOUR_VALIDATEHTML_API_KEY>"
}
}
}
}Instalar o MCP validatehtml no VS Code
.vscode/mcp.json
{
"servers": {
"validatehtml-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"validatehtml"
],
"env": {
"VALIDATEHTML_API_KEY": "<YOUR_VALIDATEHTML_API_KEY>"
}
}
}
}Instalar o MCP validatehtml no VS Code CLI
$ code --add-mcp '{"name":"validatehtml-cli","type":"stdio","command":"npx","args":["-y","validatehtml"],"env":{"VALIDATEHTML_API_KEY":"<YOUR_VALIDATEHTML_API_KEY>"}}'Instalar o MCP validatehtml no Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"validatehtml-cli": {
"command": "npx",
"args": [
"-y",
"validatehtml"
],
"env": {
"VALIDATEHTML_API_KEY": "<YOUR_VALIDATEHTML_API_KEY>"
}
}
}
}Instalar o MCP validatehtml no Codex
$ codex mcp add validatehtml-cli --env 'VALIDATEHTML_API_KEY=<YOUR_VALIDATEHTML_API_KEY>' -- npx -y validatehtmlInstalar o MCP validatehtml no Codex config.toml
~/.codex/config.toml
[mcp_servers.validatehtml-cli] command = "npx" args = ["-y", "validatehtml"] [mcp_servers.validatehtml-cli.env] VALIDATEHTML_API_KEY = "<YOUR_VALIDATEHTML_API_KEY>"
Instalar o MCP validatehtml no Gemini CLI
$ gemini mcp add -s user -e 'VALIDATEHTML_API_KEY=<YOUR_VALIDATEHTML_API_KEY>' validatehtml-cli npx -- -y validatehtmlInstalar o MCP validatehtml no Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"validatehtml-cli": {
"command": "npx",
"args": [
"-y",
"validatehtml"
],
"env": {
"VALIDATEHTML_API_KEY": "<YOUR_VALIDATEHTML_API_KEY>"
}
}
}
}Configuração
VALIDATEHTML_API_KEYSecretoOptional. Only audit_page needs it. 100 free calls a month.
| Nome | Descrição | Tipo |
|---|---|---|
| VALIDATEHTML_API_KEY | Optional. Only audit_page needs it. 100 free calls a month. | Secreto |
Verificações automatizadas
Executado em 14 de nov. de 2026Relatório completo →Passou em nossas verificações automatizadas. Isso não é uma auditoria de segurança: leia o código e dê ao servidor o acesso mais restrito de que ele precisa. Como as verificações funcionam
- Repositório de origem vinculado e acessíveltheodcrx/validatehtml-cli is public and reachablegithub.com/theodcrx/validatehtml-cli ↗Passou
- O pacote indica este repositório como sua origemvalidatehtml names theodcrx/validatehtml-cli as sourcenpmjs.com/package/validatehtml ↗Passou
- Proveniência da build (atestação Sigstore)No build attestation published for this releaseNão verificado
- Licença de código aberto (OSI)MITspdx.org/licenses/MIT.html ↗Passou
- Commit ou release no último anoLast commit or release 2026-11-10github.com/theodcrx/validatehtml-cli ↗Passou
- OpenSSF ScorecardNão verificado
- Nome do pacote não é próximo a um pacote popularNo popular package one edit away from validatehtmlPassou
- Nenhum aviso crítico no pacote ou em suas dependências99 resolved dependencies checked; no critical advisoryosv.dev ↗Passou
- Sem instruções ocultas para o modelo0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPassou
- Ferramentas destrutivas estão rotuladasNão verificado
- O endpoint remoto responde ao handshake do MCPNão verificado
README
Ver no GitHubvalidatehtml
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"] }
}
}
| Tool | What it does | Key |
|---|---|---|
validate_code |
Checks HTML, CSS, JSON, XML, or HTML for WCAG issues | No |
validate_file |
The same on a local file, without reading it into the conversation | No |
validate_url |
Checks a live page, including a dev server on localhost | No |
audit_page |
Every check on one deployed page: HTML, accessibility, meta tags, Open Graph, page weight | Yes |
site_scan_link |
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.
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.
Perguntas sobre o MCP validatehtml
Como adiciono o MCP validatehtml ao Claude Code?
Execute claude mcp add --env 'VALIDATEHTML_API_KEY=<YOUR_VALIDATEHTML_API_KEY>' validatehtml-cli -- npx -y validatehtml no seu terminal. Adicione --scope user para torná-lo disponível em todos os projetos.
Como adiciono o MCP validatehtml ao Cursor?
Abra ~/.cursor/mcp.json e adicione o servidor em mcpServers, usando a configuração do Cursor mostrada na seção de instalação acima.
Quais arquivos podem ser validados?
A ferramenta pode ler arquivos .html, .htm, .css, .json, .xml e .svg de até 1 MB.
Meu código é armazenado nos seus servidores?
O código é verificado em memória e não é armazenado.