---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/web-scraper/use-cases/map-website-structure/claude
---
# How to Map Website Structure with Claude

Claude maps website structure by scraping page content and navigation patterns, then helps you analyze the architecture interactively. After the crawl, discuss information architecture improvements, ask Claude to identify navigation bottlenecks, or generate a sitemap document from the discovered URL hierarchy.

## Setup

claude mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter to Claude: claude mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask Claude: "Map the complete site structure of example.com using the web-scraper tool"
3. Claude runs map_site to discover all URLs and builds a hierarchical site map
4. Ask: "Which sections have the most pages? Are there any orphan pages?"
5. Claude analyzes the structure and identifies architectural issues

## Example Prompt

```
Map the full site structure of example.com. Show me the URL hierarchy, page counts per section, and any orphan pages.
```

## Tips

- Claude can visualize site structure as a tree for easy understanding
- Ask for a comparison between the sitemap.xml and actual discoverable pages
- Use the map to plan site migrations without losing any pages
