Clean Markdown & RAG Extractor for LLMs avatar

Clean Markdown & RAG Extractor for LLMs

Pricing

from $1.00 / 1,000 clean markdown documents

Go to Apify Store
Clean Markdown & RAG Extractor for LLMs

Clean Markdown & RAG Extractor for LLMs

Scrapes web pages into clean, boilerplate-free Markdown with rich metadata & vector-ready chunks for RAG, LangChain, LlamaIndex, and MCP AI agents. No login required.

Pricing

from $1.00 / 1,000 clean markdown documents

Rating

0.0

(0)

Developer

Sviatoslav

Sviatoslav

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

11 days ago

Last modified

Features

Limited permissionsSingle-tenantServer interface

Share

No Login Required RAG Ready MCP Ready Pay-Per-Event Zero Proxies

High-speed, zero-noise web-to-Markdown scraper and RAG content extractor. Cleans boilerplates (navbars, ads, cookie banners, footers), extracts metadata, formats clean GitHub-flavored Markdown, and generates vector-ready semantic chunks for LLMs and AI agents.


⚡ Key Features

  • 🔒 100% No Login / No Cookies Required: Works directly via HTTP fetch with instant response times.
  • 🧹 Boilerplate Removal: Uses Mozilla Readability algorithm to strip navigation, ads, footers, headers, and social widgets, preserving only the core article content.
  • 📝 Clean Markdown Formatting: Converts clean HTML into standard GitHub Flavored Markdown (headings, lists, tables, fenced code blocks).
  • 🧩 Vector-Ready Semantic Chunking: Automatically splits markdown documents into configurable chunks (chunkSize, chunkOverlap) with preserved heading hierarchies for instant ingestion into Chroma, Pinecone, Qdrant, Weaviate, or Supabase pgvector.
  • 📊 Rich Metadata Extraction: Extracts title, author, published date, description, site name, canonical URL, and estimated reading time.
  • 🔗 Link Graph Discovery: Automatically discovers and categorizes internal vs external links on the page, with optional domain crawling (crawlDepth: 1).
  • 🤖 Standby MCP Mode: Native Model Context Protocol (MCP) server running at /mcp or /read for instant tool execution by AI agents (Cursor, Claude, LangChain, n8n) with zero cold starts.

💰 Pay-Per-Event (PPE) Transparent Pricing

Never pay flat monthly plans or expensive proxy fees. You are billed strictly per event:

EventCostDescription
Actor Start (apify-actor-start)$0.003 / runInitialization & environment setup
Clean Document (apify-default-dataset-item)$0.001 / page ($1.00 per 1k pages)Clean Markdown, metadata, reading time, link graph
RAG Chunking (rag-chunking-enriched)$0.001 / document ($1.00 per 1k docs)Overlapping semantic vector chunks with heading paths

Free tier accounts can extract up to 15 pages per run for free testing.


🔗 Step-by-Step Integrations

1. LangChain / LlamaIndex Vector Ingestion (Python)

Ingest documentation or blog content directly into your vector database:

from apify_client import ApifyClient
import chromadb
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("slavako/clean-markdown-rag-fetcher").call(run_input={
"urls": ["https://platform.openai.com/docs/models"],
"enableChunking": True,
"chunkSize": 1000,
"chunkOverlap": 150
})
dataset_items = client.dataset(run["defaultDatasetId"]).list_items().items
chroma_client = chromadb.Client()
collection = chroma_client.create_collection("docs_rag")
for doc in dataset_items:
for chunk in doc.get("chunks", []):
collection.add(
documents=[chunk["text"]],
metadatas=[{"url": doc["url"], "title": doc["title"], "headings": " > ".join(chunk["headings"])}],
ids=[f"{doc['url']}-chunk-{chunk['chunkIndex']}"]
)

2. n8n / Make Workflow (Web Page to Notion / Knowledge Base)

  1. Add an HTTP Request node calling https://api.apify.com/v2/acts/slavako~clean-markdown-rag-fetcher/run-sync-get-dataset-items.
  2. Body:
{
"urls": ["https://news.ycombinator.com/item?id=..."],
"enableChunking": false
}
  1. Connect a Notion node: create a new page with content {{$json.markdown}} and title {{$json.title}}.

3. Cursor & Claude Desktop (MCP Agent Integration)

Add this to your claude_desktop_config.json:

{
"mcpServers": {
"web-markdown": {
"command": "npx",
"args": ["-y", "@apify/mcp-server", "--actor", "slavako/clean-markdown-rag-fetcher"]
}
}
}

Ask Claude: "Read the documentation at https://docs.anthropic.com/en/docs/welcome and summarize the core prompt engineering principles".


📥 Input Parameters

ParameterTypeDefaultDescription
urlsArray of strings["https://..."]Target web URLs to scrape (blogs, articles, docs)
crawlDepthInteger00 = only given URLs, 1 = follow same-domain links
maxPagesInteger50Maximum pages to scrape
enableChunkingBooleantrueSplit markdown into vector-ready overlapping chunks
chunkSizeInteger1000Target character length per chunk
chunkOverlapInteger150Overlap character count between adjacent chunks
extractMetadataBooleantrueExtract author, date, description, reading time
includeRawHtmlBooleanfalseInclude sanitized HTML snippet in output

📤 Output Dataset Format

{
"url": "https://docs.example.com/guide/rag",
"canonicalUrl": "https://docs.example.com/guide/rag",
"title": "Complete Guide to RAG Architectures",
"description": "Step-by-step tutorial on retrieval-augmented generation with vector databases.",
"author": "Jane Doe",
"siteName": "AI Engineering Blog",
"publishedTime": "2026-05-10T12:00:00Z",
"readingTimeMinutes": 4,
"wordCount": 820,
"characterCount": 5410,
"markdown": "# Complete Guide to RAG Architectures\n\nRetrieval-Augmented Generation (RAG) optimizes...",
"chunks": [
{
"chunkIndex": 0,
"totalChunks": 6,
"text": "# Complete Guide to RAG Architectures\n\nRetrieval-Augmented Generation (RAG)...",
"characterCount": 980,
"wordCount": 142,
"headings": ["Complete Guide to RAG Architectures", "Core Concepts"]
}
],
"internalLinks": ["https://docs.example.com/guide/embeddings"],
"externalLinks": ["https://github.com/example/rag-demo"],
"scrapedAt": "2026-11-13T00:00:00.000Z"
}

📄 License

Apache-2.0