May 14, 2026

How to Crawl a Website with Claude Code

Install crawler-mcp and drive full-site crawls from Claude Code using natural language prompts.

Mehmet Kose
2 mins read

Claude Code is a terminal agent that can call tools on your behalf. With crawler-mcp installed, you can ask Claude to crawl websites, fetch single pages, and discover links - all without leaving your terminal.

This guide walks through installing the Crawler MCP server and using it from Claude Code.

Step 1: Install crawler-mcp

Run the install script:

curl -fsSL https://install.crawler.sh/install-mcp.sh | sh

This downloads the correct binary for your platform and places it in ~/.crawler/bin/crawler-mcp.

For more detail, see the installation guide.

Step 2: Wire it into Claude Code

Register the server with one command:

claude mcp add crawler-sh -- $(which crawler-mcp)

Verify it is registered:

claude mcp list

For manual config or per-project setup, see the Claude Code docs.

Step 3: Crawl a website

Open Claude Code and ask:

Use crawler-sh to crawl https://example.com to depth 2 and give me a summary of what the site covers.

Claude Code will call crawl_site, receive Markdown and metadata for every page, and reason over the results to produce a summary.

You can refine the crawl with parameters:

Use crawler-sh to crawl https://example.com with max_pages 20 and delay_ms 500.

Step 4: Fetch a single page

When you only need one page, use fetch_page instead of a full crawl:

Use crawler-sh to fetch https://example.com/pricing and tell me the key features.

This is faster and avoids unnecessary requests.

To understand a site’s structure before committing to a deep crawl:

Use crawler-sh to discover_links on https://example.com to depth 1.

Claude will return a list of URLs with titles, which you can use to decide which sections to crawl in depth.

Frequently Asked Questions

Crawler.sh - Free Local AEO & SEO Spider and a Markdown content extractor | Product Hunt