html-to-markdown-mcp
by levz0r·★ 24·Score 45
MCP server that converts HTML to Markdown using Turndown.js with SSRF protection.
Overview
This is a specialized MCP server that handles HTML to Markdown conversion. It provides two main tools: html_to_markdown for converting URLs or HTML content to Markdown, and save_markdown for saving content to files. The server includes SSRF protection by default, blocking requests to private network addresses unless explicitly enabled. It supports fetching web pages, preserving formatting, and handling large content through truncation or direct file saving.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need to convert HTML from web pages or raw HTML content to clean Markdown with proper formatting.
When NOT to choose this
Don't choose this if you need to process complex JavaScript-heavy sites that require browser rendering, as it only fetches static HTML.
Tools this server exposes
2 tools extracted from the READMEhtml_to_markdownhtml_to_markdown(url?: string, html?: string, includeMetadata?: boolean, maxLength?: number, saveToFile?: string)Fetch HTML from a URL or convert provided HTML content to Markdown format.
save_markdownsave_markdown(content: string, filePath: string)Save markdown content to a file on disk.
Comparable tools
Installation
Installation
npm install -g html-to-markdown-mcpClaude Desktop Configuration
{
"mcpServers": {
"html-to-markdown": {
"command": "npx",
"args": ["html-to-markdown-mcp"]
}
}
}Local Development
git clone https://github.com/levz0r/html-to-markdown-mcp.git
cd html-to-markdown-mcp
npm install
npm startFAQ
- Does this server handle large web pages?
- Yes, it has two options for large content: truncation with the maxLength parameter or saving directly to a file with the saveToFile parameter.
- How is SSRF protection implemented?
- The server blocks requests to private network addresses (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16) and non-HTTP(S) schemes by default.
Compare html-to-markdown-mcp with
Last updated · Auto-generated from public README + GitHub signals.