clean-markdown-mcp is an MCP server that turns any web page into clean, LLM-ready Markdown. No ads, no nav bars, no cookie banners, no scripts. Built for RAG pipelines and AI agents, where junk in means junk out.
Three stages, one clean document. Give it a Wikipedia page, get back the article, not the chrome around it.
Pulls the page with a 20-second timeout and a 5 MB size cap. Redirects are validated at every hop, and private or loopback addresses are refused outright.
Runs Mozilla Readability, the engine behind Firefox Reader View, to isolate the real article and discard navigation, sidebars, ads, and comment sections.
Turndown renders the result as GitHub-flavoured Markdown, preserving headings, lists, tables, and code blocks. Non-article pages fall back to cleaned text instead of failing.
Add this to your claude_desktop_config.json, restart, then ask it to scrape any page to Markdown.
// macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
// Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"clean-markdown": {
"command": "npx",
"args": ["-y", "clean-markdown-mcp"]
}
}
}
Works the same in Cursor, Windsurf, or any MCP client. Also listed on the official MCP Registry as io.github.damonwill78-a11y/clean-markdown.
One tool, scrape_url, returns the page title, source, word count, and the clean Markdown.
| Parameter | Type | Description |
|---|---|---|
| url | string | The page to scrape. Must be http:// or https://. |
| includeLinks | boolean | Keep hyperlinks in the Markdown. Default true. Set false for cleaner prose. |
| renderJs | boolean | Load the page in a real browser first, for JavaScript-built sites. Default false. Requires Playwright. |
For JavaScript-heavy pages, install Playwright once (npm install playwright && npx playwright install chromium) and pass renderJs: true. Playwright is not a bundled dependency, so a normal install stays small and fast.
One page at a time, on your machine. Free and open source under the MIT license.
Get the source →Batch scraping, hosted JavaScript rendering, and a pay-per-page API with no infrastructure to run. Same engine, as an Apify Actor.
Open the Actor →