Claude can find a page to watch, write the scrap, test it, run it and fix it when the site changes. This page shows that path end to end and which Trawl piece Claude uses at each step.
Three ways to connect
| Way | Best for | Set it up |
|---|---|---|
| MCP server | asking Claude, in a chat, to list, run or create scraps | Add Trawl to Claude (sign in, no key), or a key in MCP Server for Cursor and other clients |
| Skills | writing and testing scraps in Claude Code | Skills |
| CLI | your terminal, scripts and CI | CLI |
They work together: the MCP server to explore, the skills to write, the CLI to ship and automate.
1. Find what to watch
With the MCP server connected, paste a URL and ask:
"Watch the pricing table on https://example.com/pricing weekly and tell me when it changes."
Claude calls trawl_list_scraps to see whether a scrap already does it. If not, it can create one with trawl_create_scrap, or you write it with the skills below.
2. Write the script
In Claude Code with the skills installed, trawl-scrap-design takes over:
"Create a scrap that extracts the plan names and prices from https://example.com/pricing."
Claude writes the script, picks the selectors and the shape of the rows. For a site behind a login, trawl-scrap-account asks you to run trawl scraps account session capture <id> and log in yourself: see Account & sessions.
3. Test it on your machine
"Test this script locally on https://example.com/pricing."
trawl-scrap-local-test runs the script in a Chrome on your machine and shows the rows, before any run costs you anything.
trawl scraps create -t "Example pricing" -u https://example.com/pricing -r "$(cat script.js)"
trawl scraps update <id> --cron "0 9 * * 1"5. Get told when something changes
Turn on the alert mail (sent when a run fails or finds nothing; with auto-fix on, also when a run comes back far shorter than usual or with empty fields) and the AI digest (a summary after each run, or only when something changed) under Settings → Notifications: see Notifications and AI features. You can also ask in a chat:
"Show me the last 10 runs of my pricing scrap and flag any drop."
Claude reads them with trawl_get_scrap_runs.
6. Fix what breaks
When a run fails or finds nothing, the Fix button appears in the app, and auto-fix may already have repaired it. Or tell Claude Code:
"My pricing scrap has returned 0 items since yesterday. Here's the error: [...]"
trawl-scrap-design finds the broken selector and rewrites the script; you test it again locally, then publish it.
If the error says the run hit a login wall, the script is fine: the site sent the run to its login page. Claude gives you one command, trawl scraps account session capture <id>; you log in in the Chrome window that opens, then run the scrap again. Claude only names the command: it cannot read the login cookie itself, only the CLI can, while you log in.
You stay signed in as yourself: Trawl never sees your password, only the session. Using that session lawfully is up to you; this is not legal advice.
Prompts to try
- "Scrape the front page of Hacker News every hour and alert me when a headline mentions 'Apify'.": design, then the CLI to create and schedule it, then
trawl_get_scrap_runsto review. - "Watch the prices on https://shop.example.com/products weekly and mail me when one drops by more than 10%.": design, the CLI, and an AI digest prompt.
- "Make a one-off scrap of https://example.com/pricing, run it now and show me the result.":
trawl_create_scrap, thentrawl_scrap_latest_result.
Every MCP tool, its arguments and its answer are in MCP Server.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
The trawl tools don't appear |
The client was not restarted, or its config has a JSON error (often a trailing comma) | Fix the JSON, then quit and reopen the client. |
A tool answers -32000 |
The key is missing, revoked or expired | Create a new key under Developers → API Keys: see API keys. |
A tool answers -32001 with This key cannot … (or This connection cannot …) |
The key lacks the access the tool needs: the message names it and the access to pick | Create a key with that access under Developers → API Keys (Read only for the read tools, Full access to run or create), and use it in your client. On a connector (OAuth), connect again and allow that access. |
A tool answers -32001 forbidden |
The key cannot reach that scrap: it is limited to other scraps | Use a key without a scrap list, or one that lists this scrap. Over the API, each tool's scope is listed in MCP Server. |
| A run or a create is cut | The client's tool timeout is too short | Raise it to at least 22 minutes. If a create was cut, list your scraps before you create again: it may already exist. |
| Skills don't trigger in Claude Code | Not installed, or Claude Code not restarted | Run trawl skills install, then restart. trawl skills list shows what is installed. |
trawl: command not found |
The CLI is not installed | See CLI. |
See also: MCP Server · Skills · CLI · API keys · Account & sessions