Clean Markdown

io.github.damonwill78-a11yPublished by GitHub account damonwill78-a11yv1.1.3Updated Oct 27, 2026

Any URL to clean, LLM-ready Markdown for RAG. Strips ads, nav, and boilerplate.

The publisher's own server: Clean

Overview

AI-generated overview

Local MCP server that fetches a web page and returns clean, LLM-ready Markdown with ads, navigation and boilerplate stripped.

What you can do
  • Fetch a single web page by URL and get back its title, source, word count and cleaned Markdown
  • Keep or drop hyperlinks in the output, and optionally render JavaScript-built pages in a real browser
  • Cleaning uses Mozilla Readability and converts to GitHub-flavoured Markdown, preserving headings, lists, tables and code blocks
  • Falls back to a cleaned body when a page is not article-shaped, rather than failing
When to use it
Useful when feeding web pages into RAG pipelines or agent context and you want readable article text instead of raw HTML full of navigation, ads and cookie banners. It handles one page at a time on your own machine.
Requirements
Runs as a local npm package (clean-markdown-mcp) via npx or a global install, so Node.js is needed. No accounts, API keys or environment variables are declared. Optional JavaScript rendering requires installing Playwright and its Chromium browser separately. Network access is required.
Before you install
It fetches arbitrary URLs from your machine, so the README notes it refuses private, loopback and link-local addresses and re-validates redirects; still, only point it at sites you trust. It does not enforce robots.txt, so you are responsible for how scraped content is used, and some sites block automated traffic. The README also mentions a separate paid hosted service for batch scraping.

Installation

In SourceWeft

  1. Open Clean Markdown in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

clean-markdown-mcp

[Clean Markdown MCP server]

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/MarkdownGet back: # Markdown
          Markdown is a lightweight markup language for creating          formatted text using a plain-text editor...

Install

bash
npm install -g clean-markdown-mcp

Use it with Claude Desktop

Add this to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
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

ParameterTypeDescription
urlstringThe page to scrape. Must be http:// or https://.
includeLinksbooleanKeep hyperlinks in the Markdown. Default true. Set false for cleaner prose.
renderJsbooleanLoad the page in a real browser first, for JavaScript-built sites. Default false. Requires Playwright — see below.

Returns the page title, source, word count, and the clean Markdown.

How the cleaning works

  1. Fetch — with a 20-second timeout, a 5 MB size cap, and redirects validated at every hop.
  2. Clean — runs Mozilla Readability, the engine behind Firefox Reader View, to isolate the real article and discard navigation, sidebars, ads, and comment sections.
  3. 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:

bash
npm install playwright && npx playwright install chromium

Then pass renderJs: true. The difference on such a page is dramatic:

ModeResult
Default~3 words — just navigation links
renderJs: true~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.txt enforcement — you are responsible for how you use it.

Local development

bash
npm installnpm run buildnode dist/try.js https://example.com          # quick testnode dist/try.js https://example.com --render # with JS rendering

License

MIT

Source: README.md at commit b67f394

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.1.3LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Clean integrations