Memvalidasi kepatuhan HTML, CSS, JSON, XML, dan aksesibilitas WCAG untuk file lokal atau URL live.
Juga dikenal sebagai theodcrx/validatehtml-cli, validatehtml-cli
- Stars
- 0
- Tools
- —
- Unduhan, 30 hari
- —
- Versi terbaru
- 0.1.0
- Commit terakhir
- 10 Nov 2026
- Lisensi
- MIT
Apa itu validatehtml MCP?
validatehtml adalah MCP server. Memvalidasi kepatuhan HTML, CSS, JSON, XML, dan aksesibilitas WCAG untuk file lokal atau URL live.
Ringkasan dibuat dari README proyek
Tentang validatehtml MCP server
validatehtml memungkinkan Anda untuk memeriksa sintaks kode dan kepatuhan aksesibilitas langsung dari dalam AI coding agent. Developer dapat menggunakan tool ini untuk memverifikasi file HTML, CSS, JSON, dan XML, atau untuk menguji URL live dan local development server. Tool ini bekerja melalui berbagai MCP client seperti Claude Code, Cursor, Windsurf, dan VS Code dengan menjalankannya via npx.
Server ini menyediakan tool spesifik termasuk validate_code, validate_file, dan validate_url untuk menangani berbagai tugas validasi. Untuk pemeriksaan yang lebih komprehensif, tool audit_page akan memeriksa meta tags, data Open Graph, dan bobot halaman, meskipun fungsi khusus ini memerlukan VALIDATEHTML_API_KEY. Meskipun validasi dasar tidak memerlukan akun, fitur audit tunduk pada batasan panggilan bulanan berdasarkan paket Anda.
File yang dikirim untuk validasi, seperti .html, .css, .json, .xml, atau .svg, diproses di dalam memori dan tidak disimpan. Sistem ini mendukung file hingga 1 MB dan dapat membaca dari standard input. Tool ini mengembalikan exit code spesifik agar dapat diintegrasikan dengan mudah ke dalam automated build script atau workflow terminal Anda.
Apa yang bisa Anda lakukan dengannya
- 1Automasi validasi build scriptIntegrasikan validasi ke dalam pipeline CI/CD dengan menggunakan exit code untuk menandakan keberhasilan atau kegagalan.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal validatehtml MCP
Format diverifikasi 10 Nov 2026Instal validatehtml MCP di Claude Code
$ claude mcp add --env VALIDATEHTML_API_KEY=<YOUR_VALIDATEHTML_API_KEY> validatehtml-cli -- npx -y validatehtmlInstal validatehtml MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"validatehtml-cli": {
"command": "npx",
"args": [
"-y",
"validatehtml"
],
"env": {
"VALIDATEHTML_API_KEY": "<YOUR_VALIDATEHTML_API_KEY>"
}
}
}
}Instal validatehtml MCP di VS Code
.vscode/mcp.json
{
"servers": {
"validatehtml-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"validatehtml"
],
"env": {
"VALIDATEHTML_API_KEY": "<YOUR_VALIDATEHTML_API_KEY>"
}
}
}
}Instal validatehtml MCP di Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"validatehtml-cli": {
"command": "npx",
"args": [
"-y",
"validatehtml"
],
"env": {
"VALIDATEHTML_API_KEY": "<YOUR_VALIDATEHTML_API_KEY>"
}
}
}
}Instal validatehtml MCP di Codex
~/.codex/config.toml
[mcp_servers.validatehtml-cli] command = "npx" args = ["-y", "validatehtml"] [mcp_servers.validatehtml-cli.env] VALIDATEHTML_API_KEY = "<YOUR_VALIDATEHTML_API_KEY>"
Instal validatehtml MCP di Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"validatehtml-cli": {
"command": "npx",
"args": [
"-y",
"validatehtml"
],
"env": {
"VALIDATEHTML_API_KEY": "<YOUR_VALIDATEHTML_API_KEY>"
}
}
}
}Konfigurasi
VALIDATEHTML_API_KEYRahasiaOptional. Only audit_page needs it. 100 free calls a month.
| Nama | Deskripsi | Tipe |
|---|---|---|
| VALIDATEHTML_API_KEY | Optional. Only audit_page needs it. 100 free calls a month. | Rahasia |
Pengecekan otomatis
Berjalan 14 Nov 2026Laporan lengkap →Lolos checks otomatis kami. Ini bukan audit keamanan: baca kodenya dan berikan server akses paling terbatas yang dibutuhkannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkautheodcrx/validatehtml-cli is public and reachablegithub.com/theodcrx/validatehtml-cli ↗Lolos
- Paket menyebut repo ini sebagai sumbernyavalidatehtml names theodcrx/validatehtml-cli as sourcenpmjs.com/package/validatehtml ↗Lolos
- Provenance build (atestasi Sigstore)No build attestation published for this releaseTidak diperiksa
- Lisensi open source (OSI)MITspdx.org/licenses/MIT.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit or release 2026-11-10github.com/theodcrx/validatehtml-cli ↗Lolos
- OpenSSF ScorecardTidak diperiksa
- Nama package tidak mirip dengan package populerNo popular package one edit away from validatehtmlLolos
- Tidak ada advisory kritis di paket maupun dependensinya99 resolved dependencies checked; no critical advisoryosv.dev ↗Lolos
- Tidak ada instruksi tersembunyi untuk model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersLolos
- Tools yang bersifat destruktif telah diberi labelTidak diperiksa
- Endpoint remote menjawab handshake MCPTidak diperiksa
README
Lihat di 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.
Pertanyaan tentang validatehtml MCP
Bagaimana cara menambahkan validatehtml MCP ke Claude Code?
Jalankan claude mcp add --env VALIDATEHTML_API_KEY=<YOUR_VALIDATEHTML_API_KEY> validatehtml-cli -- npx -y validatehtml di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan validatehtml MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
File apa saja yang bisa divalidasi?
Tool ini dapat membaca file .html, .htm, .css, .json, .xml, dan .svg hingga ukuran 1 MB.
Apakah kode saya disimpan di server Anda?
Kode diperiksa di dalam memori dan tidak disimpan.