About html-to-markdown-mcp
html-to-markdown-mcp is an MCP server for web-scraping and page-reading agents that converts HTML into consistent Markdown or whitespace-normalized plain text. It uses deterministic conversion and does not detect the main content of a page.
Key features
- 01Convert HTML to Markdown
- 02Extract normalized plain text
- 03Remove scripts and styles by default
- 04Use consistent headings, code blocks, and links
Use cases
- 01Prepare scraped HTML for Markdown-based processing
- 02Return text when formatting is unnecessary
- 03Convert HTML without main-content detection
MCP support
It exposes `html_to_md` and `extract_text` tools to MCP clients for converting HTML to Markdown or plain text.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
2Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| html | string | Yes | |
| link_style | enum | No | inlined | referenced |
| heading_style | enum | No | atx | setext |
| strip_scripts | boolean | No | |
| code_block_style | enum | No | fenced | indented |
| bullet_list_marker | enum | No | - | * | + |
Details
From the project README@mukundakatta/html-to-markdown-mcp
MCP server for HTML → Markdown conversion. For web-scraping and read-the-page agents.
Tools
html_to_md(html, ...options)— Turndown-based conversion with sane defaults (ATX headings, fenced code, inline links). Strips scripts/styles by default.extract_text(html)— strip everything, return whitespace-normalized text. Faster thanhtml_to_mdwhen you only need text content.
Why this exists
Web-scraping agents constantly need clean Markdown from HTML. LLMs do this inline but inconsistently across turns (different heading styles, different list markers, sometimes leaving raw HTML tags in). A deterministic converter avoids the variance.
This is intentionally not a full content-extraction pipeline (no Readability-style "main content" detection — use that in a separate step if needed).
Install — Claude Desktop
{
"mcpServers": {
"html-to-markdown": { "command": "npx", "args": ["-y", "@mukundakatta/html-to-markdown-mcp"] }
}
}
Same shape for Cursor / Cline / Windsurf / Zed.
License
MIT OR Apache-2.0.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.