HTML to Markdown

v1.0.0Search & Data Extractionstable

MCP server for converting HTML to Markdown using Turndown.js. Fetch web pages and convert them to clean, formatted Markdown.

claudeclaude-pluginconverterhtmlhtml-to-markdown
Share:
24
Stars
0
Downloads
0
Weekly
0/5

What is HTML to Markdown?

HTML to Markdown is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for converting html to markdown using turndown.js. fetch web pages and convert them to clean, formatted markdown.

MCP server for converting HTML to Markdown using Turndown.js. Fetch web pages and convert them to clean, formatted Markdown.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server for converting HTML to Markdown using Turndown.js

Use Cases

Web page conversion
Clean markdown formatting
Content extraction
levz0r

Maintainer

LicenseMIT
Languagejavascript
Versionv1.0.0
UpdatedMay 5, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx html-to-markdown

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use HTML to Markdown

html-to-markdown-mcp is a Node.js MCP server that fetches any web page by URL and converts its HTML to clean, readable Markdown using the Turndown.js library. It automatically strips scripts, styles, and other noise while preserving headers, links, code blocks, lists, and tables. This makes it ideal for extracting and summarizing web content inside AI coding assistants without manual copy-paste.

Prerequisites

  • Node.js 18 or higher (or npx available in PATH)
  • An MCP client such as Claude Code, Claude Desktop, or Cursor
  • Internet access for fetching URLs (requests to private/internal networks are blocked by default)
1

Install or run via npx

You can run the server directly with npx without a global install, or install it globally for repeated use.

# No install needed — use npx directly:
npx html-to-markdown-mcp

# Or install globally:
npm install -g html-to-markdown-mcp
2

Add to Claude Code

Register the server with the Claude CLI for immediate use in any project.

claude mcp add --transport stdio html-to-markdown -- npx html-to-markdown-mcp
3

Add to Claude Desktop

Edit claude_desktop_config.json to add the server. Use npx so no global install is required.

{
  "mcpServers": {
    "html-to-markdown": {
      "command": "npx",
      "args": ["html-to-markdown-mcp"]
    }
  }
}
4

Fetch and convert a web page

Once configured, ask your AI assistant to fetch a URL. The server exposes a tool that takes a URL, retrieves the HTML, and returns clean Markdown including the page title.

5

Understand SSRF protection

By default, requests to private/internal IP ranges (localhost, 192.168.x.x, 10.x.x.x, etc.) are blocked to prevent SSRF attacks. To allow local network access, consult the server's ALLOW_LOCAL_NETWORK option.

HTML to Markdown Examples

Client configuration

Minimal Claude Desktop config using npx to run html-to-markdown-mcp without a global install.

{
  "mcpServers": {
    "html-to-markdown": {
      "command": "npx",
      "args": ["html-to-markdown-mcp"]
    }
  }
}

Prompts to try

Example prompts that use the fetch-and-convert capability of html-to-markdown-mcp.

- "Fetch https://docs.python.org/3/library/json.html and give me a Markdown summary of the json module."
- "Convert https://github.com/anthropics/anthropic-sdk-python/blob/main/README.md to Markdown and list the installation steps."
- "Fetch the Hacker News front page at https://news.ycombinator.com and give me the top 10 headlines as a Markdown list."
- "Download https://en.wikipedia.org/wiki/Markdown and extract the section on syntax as clean Markdown."

Troubleshooting HTML to Markdown

Request blocked with 'SSRF protection' error for internal URLs

The server blocks requests to private network ranges by default. If you need to fetch local services during development, check if the package supports an ALLOW_LOCAL_NETWORK environment variable or run the server with a custom configuration that relaxes this restriction.

Converted Markdown is missing content or looks malformed

Some websites use heavy JavaScript rendering. html-to-markdown-mcp fetches static HTML only (no headless browser), so client-side rendered content may be absent. Try fetching the page's raw HTML endpoint or API instead.

npx command hangs or times out on first run

npx downloads the package on first use. Ensure you have an active internet connection and that npm registry is reachable. You can speed up subsequent runs by installing globally with: npm install -g html-to-markdown-mcp

Frequently Asked Questions about HTML to Markdown

What is HTML to Markdown?

HTML to Markdown is a Model Context Protocol (MCP) server that mcp server for converting html to markdown using turndown.js. fetch web pages and convert them to clean, formatted markdown. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install HTML to Markdown?

Follow the installation instructions on the HTML to Markdown GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with HTML to Markdown?

HTML to Markdown works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is HTML to Markdown free to use?

Yes, HTML to Markdown is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "html-to-markdown": { "command": "npx", "args": ["-y", "html-to-markdown"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use HTML to Markdown?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides