clean-markdown-mcp
You can scrape a single web page and get clean, LLM-ready Markdown using the scrape_url tool.
Fetch
http://orhttps://URLs with a 20-second timeout, 5 MB size cap, and redirect validation.Strip navigation, ads, cookie banners, scripts, sidebars, and comments using Mozilla Readability, then convert to GitHub-flavored Markdown with Turndown.
Preserve headings, lists, tables, and code blocks; optionally keep hyperlinks with
includeLinks(default true).Optionally render JavaScript-heavy pages in a real browser with
renderJs: trueif Playwright is installed.Return page title, source, word count, and cleaned Markdown; fall back to cleaned
<body>for non-article pages.Refuse private, loopback, and link-local addresses, including cloud metadata endpoints.
Use it through MCP clients such as Claude Desktop, Cursor, and Windsurf.
It does not batch scrape or enforce
robots.txt.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@clean-markdown-mcp scrape https://en.wikipedia.org/wiki/Markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
clean-markdown-mcp
An MCP server that turns any URL 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 the input means junk in the output.
Give it: https://en.wikipedia.org/wiki/Markdown
Get back: # Markdown
Markdown is a lightweight markup language for creating
formatted text using a plain-text editor...Install
npm install -g clean-markdown-mcpRelated MCP server: Webustler
Use it with Claude Desktop
Add this to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"clean-markdown": {
"command": "npx",
"args": ["-y", "clean-markdown-mcp"]
}
}
}Restart Claude Desktop, then ask it to "scrape https://example.com to Markdown."
Works the same way in Cursor, Windsurf, or any other MCP client — point it at the
clean-markdown-mcp command.
The tool it exposes
scrape_url
Parameter | Type | Description |
| string | The page to scrape. Must be |
| boolean | Keep hyperlinks in the Markdown. Default |
| boolean | Load the page in a real browser first, for JavaScript-built sites. Default |
Returns the page title, source, word count, and the clean Markdown.
How the cleaning works
Fetch — with a 20-second timeout, a 5 MB size cap, and redirects validated at every hop.
Clean — runs Mozilla Readability, the engine behind Firefox Reader View, to isolate the real article and discard navigation, sidebars, ads, and comment sections.
Convert — Turndown renders it as GitHub-flavoured Markdown, preserving headings, lists, tables, and code blocks.
If a page isn't article-shaped, it falls back to a cleaned <body> rather than
failing, so you still get usable text.
JavaScript-heavy sites (optional)
Some sites build their content with JavaScript after loading. A plain fetch returns almost nothing for those. To handle them, install Playwright once:
npm install playwright && npx playwright install chromiumThen pass renderJs: true. The difference on such a page is dramatic:
Mode | Result |
Default | ~3 words — just navigation links |
| ~190 words — the full content |
Playwright is not a dependency of this package, so a normal install stays
small and fast. Without it, renderJs returns a clear message telling you how to
enable it.
Security
The scraper refuses private, loopback, and link-local addresses — including cloud
metadata endpoints like 169.254.169.254 — and re-validates every redirect hop.
This matters because an MCP server runs on your machine, with access to your
local network.
Need to scrape at scale?
This package handles one page at a time, locally. For batch scraping, hosted JavaScript rendering, and a pay-per-page API with no infrastructure to run, the same engine is available as a hosted Actor:
https://apify.com/perforated_hummingbird/url-to-markdown
Known limitations
Some sites block automated traffic. That's a site policy, not a bug here.
Non-UTF-8 pages may render with garbled characters.
No
robots.txtenforcement — you are responsible for how you use it.
Local development
npm install
npm run build
node dist/try.js https://example.com # quick test
node dist/try.js https://example.com --render # with JS renderingLicense
MIT
Available Tools
1 toolscrape_urlScrape URL to MarkdownA
Fetch any web page and return its main content as clean, readable Markdown. Strips out navigation, ads, cookie banners, scripts, and other boilerplate. Ideal for feeding article or documentation content to an LLM.
Inputs: url (required), renderJs, includeLinks.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only a single tool, there is no possibility of confusion or overlap. The tool's purpose is clear and distinct by definition.
The tool name 'scrape_url' follows a clear verb_noun pattern, which is consistent with common MCP naming conventions. With only one tool, the pattern is trivially consistent.
The server has only 1 tool, which is below the typical 3-15 range. However, it is appropriately scoped for a highly focused purpose: fetching and converting web pages to clean markdown. The single tool fully covers the server's stated function.
The domain is 'clean-markdown', and the single tool provides a complete lifecycle: it fetches any web page and returns clean markdown, covering all necessary functionality. There are no obvious gaps for the stated purpose.
Maintenance
Related MCP Connectors
Converts any URL to clean, LLM-ready Markdown using real Chrome browsers
Turn any web page URL or HTML into clean Markdown or plain text for an LLM to read.
Convert any webpage to clean LLM-ready markdown, extraction-first, with article and news modes.
Web scraping for AI agents. Converts URLs to clean, LLM-ready Markdown with anti-bot bypass.
Related MCP Servers
- AlicenseAqualityDmaintenanceConverts URLs and raw HTML to clean Markdown, enabling AI assistants to read web pages for summarization, analysis, or ingestion.213 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables clean, LLM-ready markdown extraction from any URL with automatic anti-bot bypass.3MIT
- AlicenseNot gradedqualityDmaintenanceConverts any webpage into clean, LLM-ready Markdown, removing noise and supporting JavaScript rendering.MIT
- AlicenseAqualityBmaintenanceConverts any web page URL into clean Markdown for LLM context (Claude, ChatGPT, etc.) with zero external API calls, running entirely locally.1482 npmMIT