
HTML to Markdown MCP Server
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 toolsPublic 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 (
htmlstringSponsors
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
trafilaturaandBeautifulSoup4for 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
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