crawlcheck-mcp-server

crawlcheck-mcp-server

Enables crawling websites in a real Chromium browser to report JavaScript console errors, uncaught exceptions, failed requests, broken links, and accessibility violations, classifying issues as first- or third-party.

Category
Visit Server

README

crawlcheck-mcp-server

MCP server for crawlcheck. Crawls a website in a real Chromium browser and reports JavaScript console errors, uncaught exceptions, failed requests, broken links, and accessibility violations — classifying console errors and failed requests as first-party (your code) or third-party (embeds and scripts you don't control).

Runs locally over stdio, so crawls use your machine's browser and nobody pays for hosted compute.

Prerequisite

npx playwright install chromium

Without it the tools return: Chromium is not installed for Playwright. Run: npx playwright install chromium.

Configuration

Claude Desktop / Claude Code — .mcp.json:

{
  "mcpServers": {
    "crawlcheck": {
      "command": "npx",
      "args": ["-y", "crawlcheck-mcp-server"]
    }
  }
}

Cursor — same shape in mcp.json.

Tools

Tool Purpose
crawlcheck_scan_site Crawl a site. Returns a summary, the top 20 issues, and a scan_id. Never returns the full issue list.
crawlcheck_check_page Check a single page without following links — the fast path for "is this page broken?".
crawlcheck_get_issues Filtered, paginated issues from a completed scan. Reads from cache; never re-crawls, never blocks.

Typical flow: scan_site for the summary, then get_issues to drill in without re-crawling or flooding the context window.

Two behaviours worth knowing

Classification is not universal. Only console-error and failed-request carry a classification, because those are the only issue types for which the engine computes a resource origin. page-error, broken-link and a11y have no classification field at all — they are reported as unclassified, which does not mean third-party. crawlcheck_get_issues therefore defaults to classification: "all"; filtering to "first-party" would silently hide every broken link and accessibility violation.

One crawl at a time. A second concurrent scan is rejected immediately rather than queued:

A crawl is already running. crawlcheck runs one crawl at a time — wait for the current scan to finish, then retry. If you have a scan_id from an earlier scan, use crawlcheck_get_issues instead; it reads from cache and never blocks.

This is a correctness requirement, not throttling. runCrawl in crawlcheck 0.2.x redirects the global console.log while crawling (so that progress output can't corrupt this server's JSON-RPC frames on stdout), and overlapping calls would interleave that redirect. Rejecting beats queueing because MCP clients time out tool calls anyway, so a queued crawl usually dies waiting.

Exit semantics

summary.exitCode mirrors crawlcheck's process exit code and is only ever 0 or 1. Accessibility violations are advisory and do not affect it unless strict: true. Third-party console errors and failed requests are excluded unless include_third_party: true.

Development

npm install        # crawlcheck resolves to ../crawlcheck until 0.2.0 is on npm
npm run build      # generates src/types/report.v1.d.ts, then compiles
npm test           # builds, then runs the unit tests
npm run check:types  # regenerate types and fail if they drift from the schema
npm run inspect    # MCP Inspector against the built server

src/types/report.v1.d.ts is generated from crawlcheck's published JSON Schema and committed. Don't hand-edit it — npm run check:types regenerates and fails on any diff, so a crawlcheck schema bump can't slip through unnoticed. The only hand-written declaration is runCrawl's signature in src/types/crawlcheck.d.ts, which deliberately omits crawlcheck's internal raw field so that reaching for it is a compile error.

Verifying

Unit tests cover ranking, digest limits, cache TTL/LRU, single-flight (including that a failed crawl releases the lock), and error mapping. What they can't cover is a real crawl — for that:

npm run build
npx @modelcontextprotocol/inspector node dist/index.js

In Inspector v2.x the server appears in a Servers list as Disconnected — flip the toggle beside it to start the process before the tools show up.

Concurrency is the one behaviour the Inspector can't exercise, because it sends a single tool call at a time. For that:

node test/live-concurrency.mjs [url]

It drives the built server over stdio and fires a second crawlcheck_scan_site while the first is still crawling. Expected: the second is rejected with "A crawl is already running", the first completes, and a third succeeds afterwards — proving the lock releases rather than wedging the server. Exits non-zero on failure. Excluded from npm test because it launches a browser and hits the network.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured