validate_html
Validate HTML
Use this when raw HTML markup is supplied. Sends that markup to the Nu HTML Checker hosted at validator.nu and returns validation messages. For a live URL, use audit_public_webpage.
html必填io.github.AKzar1el由 GitHub 帳號 AKzar1el 發布v1.3.47更新於 Oct 29, 2026
Audit public webpages and supplied markup for HTML, CSS, SEO, JSON-LD, and link issues.
驗證貼上的標記或獲授權的公開網頁中的 HTML、CSS、SEO 中繼資料、JSON-LD 與連結,提供託管端點與本機 npm 伺服器兩種形式。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.AKzar1el%2Fmcp-web-validator/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"web-validator-by-digestseo": {
"type": "http",
"url": "https://web-validator-mcp.digestseo.com/mcp"
}
}
}[npm version] [CI] [License: MIT] [Indexed on TensorBlock MCP Index] [mcp-web-validator MCP server]
An MCP server for HTML and CSS validation, technical SEO and accessibility checks, JSON-LD syntax validation, broken-link checks, and responsive screenshots. It is part of the DigestSEO suite of open-source SEO tools.
This repository contains two deliberately separate MCP surfaces:
Local installation:
Hosted endpoint:
The validation, SEO, schema, link, and report tools do not download a browser during installation. The local screenshot.capture tool installs its pinned headless browser into Puppeteer's cache on first use, then reuses that browser for later screenshots. Set PUPPETEER_CACHE_DIR if you need a custom cache location.
The npm package exposes these exact runtime tool names:
The hosted app exposes eight tools:
audit_public_webpage follows at most three validated redirects, accepts a bounded text/html response, and records the final URL. It does not crawl additional pages, execute JavaScript, authenticate, or fetch linked stylesheets and assets. audit_public_site first locks the final public origin, then reads bounded robots.txt plus same-origin XML Sitemap, RSS 2.0, Atom 1.0, and plain-text sitemap representations before auditing at most eight eligible sitemap pages in one call. Robots discovery may follow up to five validated public redirects across authorities, as defined by the robots protocol; the resulting rules and relative Sitemap directives are still interpreted for the originally audited authority. Sitemap entries and audited pages remain same-origin, and private/reserved destinations, credentials, custom ports, service self-fetches, and HTTPS-to-HTTP redirect downgrades are rejected. The tool never follows HTML links or external sitemap entries; use page_offset when the response says more eligible pages remain. The fetched HTML is sent to https://html5.validator.nu/, the same external Nu HTML Checker used by validate_html and the report tool. CSS parsing, SEO analysis, and JSON-LD parsing run inside the DigestSEO Worker. Optional link checks make capped HEAD requests, with a bounded GET fallback where necessary, to eligible public HTTP(S) URLs; link redirects are reported but not followed. The site tool intentionally does not perform site-wide link checking. The hosted app does not retain tool inputs, fetched HTML, or results.
Only validate files, markup, and public webpages that you own or are authorized to inspect. Public page URLs can contain sensitive query values, so remove tokens and private identifiers before submitting them. Do not submit passwords, API keys, access tokens, payment data, health data, private source code, or other sensitive personal data.
The local server runs with the same operating-system permissions as its MCP client. Review tool inputs before approving file access, outbound validation, link checking, or screenshot creation. The hosted app has no access to your local filesystem.
See the published privacy policy for data-handling details and SECURITY.md for private vulnerability reporting.
Add the server to claude_desktop_config.json:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop after saving the configuration.
Create a command/stdio MCP server with:
This repository also includes a Cursor Marketplace plugin manifest. After the plugin is published, install Web Validator by DigestSEO from Cursor's Marketplace or add the repository from Cursor's plugin UI. The plugin bundles the same local stdio server and does not require API keys or environment variables.
In VS Code, run MCP: Add Server from the Command Palette and choose Command
(stdio) with npx -y mcp-web-validator. Or add the following to your own
workspace's .vscode/mcp.json (VS Code format):
For a remote-only connection, use this server entry instead (no local Node.js required, but local-file and screenshot tools are unavailable):
Open MCP: List Servers to start/check the connection. In Copilot Agent
chat, ask it to run seo.metadata on an HTML snippet you provide (input field
htmlContent) and report its metadata issues. This is an offline, no-network
smoke test of the local stdio server; it should return structured issues and
totalIssues without contacting W3C or fetching a webpage. Use the local
server for this check, since the hosted surface has different tool names.
The repository also contains a portable root .mcp.json for compatible
Copilot harness clients. Its top-level key is mcpServers, not servers;
do not copy that object unchanged into .vscode/mcp.json. VS Code's
MCP configuration reference
explains the file formats and supported scopes. Review tool permissions before
allowing outbound validation or filesystem-writing screenshot calls.
Codex CLI can add the published local stdio package directly:
Or add the existing hosted Streamable HTTP surface instead:
Verify either configuration with:
The local package includes workspace-file validation and responsive screenshot capture. The hosted surface is remote-only and cannot access local files or create screenshots.
Gemini CLI supports local stdio MCP servers. Add the published package with:
This writes the server definition to Gemini CLI's MCP configuration. No API keys or environment variables are required by Web Validator.
Add the published local stdio server with:
When Copilot CLI is started inside a clone of this repository, it can also
discover the checked-in root .mcp.json, which already points
mcp-web-validator at npx -y mcp-web-validator.
This installs the local stdio package, preserving its workspace-file and screenshot capabilities. Node.js 22.12.0+ is required.
Clone the repository and install the locked dependencies:
Run the local quality gates:
Run the local stdio server:
Validate the hosted Worker separately:
See CONTRIBUTING.md for contribution expectations. Deployment and marketplace-review notes live in chatgpt-plugin/SUBMISSION.md. For agent-assisted installation, see llms-install.md. For a copy-ready, zero-paid-provider GitHub Actions metadata gate, see examples/github-actions.
Licensed under the MIT License.
來源:README.md,提交 49e1692
Validate HTML
Use this when raw HTML markup is supplied. Sends that markup to the Nu HTML Checker hosted at validator.nu and returns validation messages. For a live URL, use audit_public_webpage.
html必填Validate CSS
Use this when raw CSS source is supplied. Parses it inside the Worker and returns syntax messages without contacting an external service.
css必填Audit SEO metadata
Use this for a focused SEO/accessibility-signal check of supplied HTML. It does not fetch a live webpage; use audit_public_webpage for a URL.
html必填Validate JSON-LD syntax
Use this for a focused JSON-LD syntax check of supplied HTML. It parses JSON only and does not validate Schema.org vocabulary semantics.
html必填Check public links
Use this for a focused check of up to 20 public HTTP(S) links found in supplied HTML. It does not fetch base_url, follow redirects, or retain response bodies.
html必填base_urlmax_linksGenerate validation report
Use this when HTML markup is already supplied. Combines Nu HTML validation with local CSS, SEO, accessibility-signal, and JSON-LD syntax checks. It does not fetch a webpage from base_url; use audit_public_webpage for a live URL.
csshtml必填base_urlmax_linkscheck_linksAudit public webpage
Use this when the user provides one live public webpage URL. Fetches one bounded static HTML response, then runs HTML validation, SEO/accessibility-signal, and JSON-LD syntax checks. It checks links only when requested and does not crawl, execute JavaScript, authenticate, or fetch linked stylesheets. Use only URLs the user owns or is authorized to inspect.
url必填max_linkscheck_linksAudit public site
Use this for a bounded, sitemap-first audit of a public website the user owns or is authorized to inspect. It fetches at most 8 same-origin HTML pages per call, respects robots.txt, and returns compact page summaries plus deduplicated findings. It does not recursively follow HTML links, authenticate, execute JavaScript, fetch assets, or run site-wide link checks. Use page_offset to continue when more sitemap pages remain.
site_url必填max_pagespage_offset已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
npx -y mcp-web-validatorhttps://web-validator-mcp.digestseo.com/mcp{ "mcpServers": { "mcp-web-validator": { "command": "npx", "args": ["-y", "mcp-web-validator"] } }}npx -y mcp-web-validator{ "servers": { "mcp-web-validator": { "type": "stdio", "command": "npx", "args": ["-y", "mcp-web-validator"] } }}{ "servers": { "mcp-web-validator-hosted": { "type": "http", "url": "https://web-validator-mcp.digestseo.com/mcp" } }}codex mcp add mcp-web-validator -- npx -y mcp-web-validatorcodex mcp add mcp-web-validator-hosted --url https://web-validator-mcp.digestseo.com/mcpcodex mcp listgemini mcp add mcp-web-validator npx -y mcp-web-validatorcopilot mcp add mcp-web-validator -- npx -y mcp-web-validatorgit clone https://github.com/AKzar1el/mcp-web-validator.gitcd mcp-web-validatornpm cinpm run checknpm testnpm run buildnpm pack --dry-runnpm startcd chatgpt-pluginnpm cinpm run checknpm testnpm run deploy:dry-run