Who it is forA developer or researcher building an AI agent that must read web pages, triggered when raw HTML is too noisy to feed a model.
The problemRaw HTML is bloated and hard for a language model to use, and many pages need JavaScript to show their content.
The outcomeA Markdown rendering of the target page printed to the terminal, with JavaScript-rendered content included.
What you need first
- A computer running Linux, macOS, or Windows
- Terminal access (PowerShell on Windows)
- Permission to download and run the Moli installer from GitHub
- A URL to fetch or test
Steps
- Install the Moli binary with
curl --proto '=https' --tlsv1.2 -fsSL https://github.com/lexmount/moli/releases/latest/download/moli-installer.sh | shon Linux or macOS, or run the PowerShell installer from the README on Windows. (inferred, check the README) - Run
moli fetch --dump markdown --wait-until done https://example.comto render the page as Markdown. (inferred, check the README) - Replace the example URL with your target and redirect output to a file if your agent reads from disk.
Prompt for your agent
Using the repo lexmount/moli, install the prebuilt Moli binary and run `moli fetch --dump markdown --wait-until done <target-url>`. Output the Markdown of the page. Verify that the main body text of the page appears and is not just a blank shell.
Caveat. Moli's own benchmark counts a page as useful only when meaningful content appears after JavaScript runs, and its mixed crawl success rate was 53.6%, so some pages will still come back thin.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for lexmount/moli and "Fetch a web page as Markdown for an AI agent"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer