MCP Catalogs
Home

html-to-markdown-mcp

by levz0r·24·Score 45

MCP server that converts HTML to Markdown using Turndown.js with SSRF protection.

web-scrapingdeveloper-toolsproductivity
4
Forks
1
Open issues
2 mo ago
Last commit
2d ago
Indexed

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:

you:Convert web articles to Markdown for offline reading
you:Extract clean content from messy HTML pages
you:Automatically save webpage content to Markdown files
you:Does this server handle large web pages?
you:How is SSRF protection implemented?

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 README
  • html_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

html-to-text-mcpmarkdown-printerpuppeteer-mcp

Installation

Installation

npm install -g html-to-markdown-mcp

Claude 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 start

FAQ

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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.