Agentโ™ฅ๏ธŽAge
Catalog

io.github.MukundaKatta/html-to-markdown-mcp

Official

by MukundaKatta ยท JavaScript

Convert HTML to Markdown or strip to plain text. For web-scraping agents.

This MCP server converts HTML to Markdown or extracts plain text for web-scraping agents. It provides tools for Turndown-based conversion and for stripping an HTML page to whitespace-normalized text, supporting downstream read-the-page workflows that require consistent formatting.

๐Ÿ› ๏ธ Key Features

  • html_to_md(html, ...options): converts HTML to Markdown with Turndown-based defaults (ATX headings, fenced code, inline links)
  • Strips scripts/styles by default during conversion
  • extract_text(html): strips everything and returns whitespace-normalized text
  • Read-the-page and web-scraping-focused tooling

๐Ÿš€ Use Cases

  • Generate clean Markdown from HTML for scraping agents
  • Extract only text content from a web page when formatting is unnecessary

โšก Developer Benefits

  • Consistent Markdown output (ATX headings, fenced code, inline links)
  • Faster path for text-only extraction via extract_text
  • Practical defaults to reduce per-turn formatting inconsistency

โš ๏ธ Limitations

  • Designed specifically for HTML โ†’ Markdown conversion and text stripping (not general document transformation)