webclaw
Lets your AI agent turn web pages into clean markdown or JSON, pick data with selectors and crawl sites.
2.4k stars on GitHubby 0xMassi (webclaw)License AGPL-3.0Updated 19 days ago
How to install
This MCP has two ways to run: local or remote.
Pick one below. Local runs on your computer; remote runs in the cloud and needs nothing installed.
Paste in the terminal:
claude mcp add webclaw -- npx -y @webclaw/mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
WEBCLAW_API_KEY | Optional Webclaw API key. Enables cloud fallback for bot-protected and JavaScript-heavy pages. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Turn https://stripe.com into clean markdown.
Get the list of S&P 500 companies from that Wikipedia page as a table.
What it is
webclaw takes a URL and returns clean content instead of raw HTML. You can use it from the terminal, as an MCP server, through a hosted API or by self-hosting. It can also pull tables, find elements by text and cut pages into chunks for search.
What it can do
- Scrape a page to markdown, JSON or LLM-ready text
select: pick values with CSS selectors or XPath- Data tables from a page as JSON
- Find elements by text or regex, and find similar elements
- Query filter: keep only what answers a question
- Chunking for retrieval and RAG
- Crawl and map a site
When to use
- βΊWhen a normal page fetch gives you navigation junk or an empty app shell.
- βΊWhen you want a table from a web page as structured data.
- βΊWhen you want to crawl a site and prepare it for a search index.
What you need
npx create-webclaw, which needs Node.js. The hosted API at webclaw.io is separate.Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
Firecrawl AutomationHelps your agent extract data from the web. It can scrape pages, crawl sites, and organize information.firecrawl-scraperLets your agent scrape deep page content, capture screenshots, read PDFs and crawl whole websites using the Firecrawl API.seo-firecrawlLets your agent crawl a full website, list its pages, or scrape one page, including JavaScript content, using Firecrawl. Needs the extension installed.Frequently asked questions
Is it open source?
Yes. The repo has the open-source CLI, MCP server, extraction engine and self-hostable server. webclaw.io is a hosted API.
How do I set it up for my agent?
Run npx create-webclaw. It detects supported clients such as Claude Code, Claude Desktop, Cursor and Windsurf and configures the MCP server.
Does it work on Windows?
Yes. A prebuilt x64 Windows ZIP is available, and it does not need Rust.
Do I need an API key?
Not for the local CLI. The readme says the Python package works with no API key.
Can it handle JavaScript-heavy pages?
The readme says pages that need JavaScript render first, as with extraction.
Does it need Rust?
Only if you build from source. Prebuilt binaries, Homebrew and Docker are available.
If it does not work
- βΊOn Windows, run the program as
.\webclaw.exefrom its folder in PowerShell. - βΊIf a missing Visual C++ runtime DLL is reported, install the Microsoft Visual C++ Redistributable for x64.
- βΊIf building from source fails, install the native build tools listed in the readme for your system.
5 new skills a week. 1 minute to read.