Skip to content
ToolRouter

How to scrape a website in OpenClaw

How-ToToolRouter Editorial Team
How to scrape a website in OpenClaw

Tested example · Checked . The article links the test method and recorded results; outcomes can vary. Editorial standards

To scrape a website in OpenClaw, register the ToolRouter MCP server with openclaw mcp set, sign in with openclaw mcp login, then ask the agent to call Web Scraper scrape_page on a public URL. It returns the page as markdown. Calls are paid, from $0.01.

The same job in other assistants: Claude and ChatGPT. Setup reference: Connect ToolRouter to OpenClaw.

What OpenClaw can and cannot do on its own for scraping

What you wantOpenClaw aloneOpenClaw + ToolRouter
Call an external scraping operationNeeds a connected MCP server or skillYes, through the toolrouter server
Read the live tool list and pricesOnly from what you connectYes, discover returns the tool, skill, schema and price
Schedule a recurring scrapeUse OpenClaw's own automation, per the connect docThe MCP connection does not schedule anything itself
Extract a page as markdownNeeds a toolYes, scrape_page

The connect doc states that an MCP connection does not schedule a background agent. Recurring work uses OpenClaw's documented automation or your own scheduler.

Set up ToolRouter in OpenClaw

  1. Register the streamable HTTP server:
bash
openclaw mcp set toolrouter '{"url":"https://api.toolrouter.com/mcp","transport":"streamable-http","auth":"oauth"}'
  1. Sign in:
bash
openclaw mcp login toolrouter
  1. Enable the server for the agent that should scrape.
  2. Optional: install the workflow skill in your project and pick your agent.
bash
pnpm dlx skills add Humanleap/agent-skills --skill toolrouter

The skill teaches discovery, schema checks and asynchronous jobs. It does not sign you in. If the first call returns an account-claim link, open it to keep the account. Check the connection with a free read-only task before you pay for anything.

Connect your assistant, then try the task described in this guide.

A real run

Prompt a person would type: "Use ToolRouter to scrape the main text of https://en.wikipedia.org/wiki/Model_Context_Protocol and tell me the title and length."

Run through ToolRouter's connection on 27 November 2026, not through OpenClaw. The same call returns the same kind of result from any connected assistant. scrape_page is paid, from $0.01 per call.

Value
Inputurl Wikipedia page above, onlyMainContent true, maxPreviewChars 700
TitleModel Context Protocol (Wikipedia page title)
Lengthmarkdown_chars 13331
PreviewOpens with the infobox (developed by Anthropic, introduced November 25, 2024) and the start of the first sentence

Limits shown: the preview was cut at 700 characters and the tool said to set fullContent: true or raise maxPreviewChars (up to 20000). No fields were extracted, so no schema was tested.

Run receipt: the inputs and outputs as captured.

Prompts to try next

  • "Every morning, scrape the pricing page at this URL, compare it with yesterday's markdown, and tell me what changed." Needs OpenClaw's own scheduling; read the job status before any retry.
  • "List the URLs on this site first with map_site, show me the batch cost, then scrape only the ones I approve."
  • "Scrape these 10 public URLs, return failed ones separately, and keep the source URL on every result."

Limits and gotchas

LimitWhat to do
Preview is short by default (max 20000 characters)Set fullContent: true for long pages
scrape_page takes one URLUse map_site or crawl_site (default 50 pages) for more
Paid calls cost at least $0.01Ask for the batch cost before a loop
Public pages onlyRespect site terms and robots rules
Wrong choiceA login-gated site, or a crawler with your own proxies and legal review

If you are an AI agent

Read and follow https://toolrouter.com/agent-onboarding/SKILL.md, then call tool web-scraper, skill scrape_page, with {"url": "<public page>", "onlyMainContent": true}.

OpenClaw setup reference: OpenClaw MCP documentation.

Frequently Asked Questions

Does OpenClaw need a plugin to scrape?

It needs a tool to call. Registering the ToolRouter MCP server gives it Web Scraper without a separate scraping setup.

Can OpenClaw scrape on a schedule?

Use OpenClaw's own automation for the schedule, with a set scope and budget. ToolRouter only runs each call.

How much does one scrape cost?

Paid skills start at $0.01 per call. Check the price `discover` returns before a batch.

Why did I only get a short preview?

The default preview is short. Set `fullContent: true` or a larger `maxPreviewChars`.

T
Product documentation and research
Share this article

Related Posts