sunshad0w avatar

HTML to Markdown MCP Server

sunshad0w/html2md-mcp

Converts web pages to clean Markdown with 90-95% size reduction, making HTML digestible for AI context windows. Built on trafilatura and BeautifulSoup4, it strips scripts, styles, and navigation while preserving tables, images, and links. The Playwright integration handles JavaScript-heavy SPAs and authenticated pages by executing client-side code and leveraging your browser profile with cookies. Stream processing and configurable size limits (1MB-50MB) keep large pages manageable, while optional caching speeds up repeated conversions. Reach for this when you need to feed web content into Claude but the raw HTML is too bloated or requires JavaScript rendering to display properly.

GitHub stars
5
tool
1
transport
STDIO
last updated
Nov 1, 2025

Tools

1 tools

Public tool metadata for what this MCP can expose to an agent.

text_convert_html_to_markdownUse this when you need to convert HTML to clean Markdown text. Returns the converted markdown in JSON. Returns: 1. markdown (converted text) 2. inputLength (character count of HTML) 3. outputLength (1 params

Use this when you need to convert HTML to clean Markdown text. Returns the converted markdown in JSON. Returns: 1. markdown (converted text) 2. inputLength (character count of HTML) 3. outputLength (

Parameters* required
htmlstring
HTML content to convert to markdown

Sponsors

Readme

HTML to Markdown MCP Server

MCP (Model Context Protocol) server for converting HTML webpages to clean Markdown format. Reduces HTML size by ~90-95% while preserving tables, images, and important content - perfect for AI context.

Features

  • Converts HTML from URLs to clean Markdown
  • Preserves tables, images, and links
  • Removes unnecessary elements (scripts, styles, navigation, footers, headers)
  • Significant size reduction (typically 90-95% compression)
  • Configurable options for images, tables, and links
  • Built with trafilatura and BeautifulSoup4 for robust extraction
  • Stream processing for efficient handling of large pages
  • Size limits to prevent downloading excessively large content (1MB-50MB)
  • Optional caching to speed up repeated conversions of the same URLs
  • 🌐 Browser mode with Playwright - Handles JavaScript-heavy sites and authenticated pages
    • Execute JavaScript (perfect for SPAs: React, Vue, Angular)
    • Use your browser profile with cookies (access authenticated pages!)
    • Support for Chrome, Firefox, WebKit
    • Configurable wait strategies for dynamic content

Installation

Prerequisites


View the full README on GitHub

Details

Repository
github.com/sunshad0w/html2md-mcp
Categories
Web & Browser Automation, Documents & Knowledge
Package
docker.io/sunshad0w/html2md-mcp
Transport
STDIO
Registry
MCP registry, active

Related Web & Browser Automation MCP servers

View all
1xidik12 avatarOculoxidik12/oculoAI-powered native browser with 12 MCP tools. ~30 tokens per page.5stars
2feedthrough avatarFeedthroughfeedthrough/feedthroughDebug bridge inside your web app: an agent reads the DOM, console and network. Any browser.4stars
3markswendsen-code avatarDoordashmarkswendsen-code/mcp-doordashMCP server for DoorDash - let AI agents order food delivery autonomously with browser-based ordering4stars
4mikusnuz avatarCwsmikusnuz/cws-mcpMCP server for Chrome Web Store — extension upload, publish, status, and rollout4stars
5felixgeelhaar avatarScoutfelixgeelhaar/scoutBrowser automation MCP server with 84 tools. Pure CDP, DOM diffing, vision hybrid.3stars
6hayodev avatarSafari DevTools MCPhayodev/safari-devtools-mcpMCP server for Safari DevTools — browser debugging and automation for AI coding agents2stars