# HTML to Markdown — Clean Conversion, Scripts Stripped

HTML to Markdown — Clean Conversion, Scripts Stripped is a Claude Code MCP server that converts raw HTML to Markdown and removes scripts, styles, and trackers.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 4235 installs
- Author: axel-belfort
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/axel-belfort/html-to-markdown
- Updated: 2026-04-13
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/html-to-markdown-clean-conversion-scripts-stripped

## What it does

The server exposes `text_convert_html_to_markdown` to turn markup into clean Markdown text. Its JSON output supplies the converted `markdown`, along with `wordCount`, `inputLength`, and output character metrics. Structural components like headings, tables, hyperlinks, lists, and images stay intact, while inline styles, scripts, and tracking artifacts get discarded.

The tool handles raw markup only. Fetching a live web address requires a separate utility, `web_scrape_to_markdown`. Running this endpoint does not require an API token, relying instead on x402 micropayments at $0.001 per call on Base L2.

## Requirements
- Remote server: `https://html-to-markdown--axel-belfort.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http html-to-markdown https://html-to-markdown--axel-belfort.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add html-to-markdown-clean-conversion-scripts-stripped --url https://html-to-markdown--axel-belfort.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "html-to-markdown-clean-conversion-scripts-stripped": {
            "url": "https://html-to-markdown--axel-belfort.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "html-to-markdown-clean-conversion-scripts-stripped": {
            "type": "http",
            "url": "https://html-to-markdown--axel-belfort.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http html-to-markdown-clean-conversion-scripts-stripped https://html-to-markdown--axel-belfort.run.tools
```

## When to use it
- strip trackers and CSS from HTML email bodies before LLM ingestion
- convert legacy HTML pages into Markdown during documentation migrations
- turn raw HTML tables and link lists into compact Markdown blocks

## Example prompts
- Run text_convert_html_to_markdown on this exported email markup
- Convert this HTML block into clean Markdown without inline script tags
- Parse the table from this HTML snippet and output clean Markdown

## Similar
- [Markdown to HTML — Headings, Code, Tables](https://affpapa.org/en/nevibecode/mcp/markdown-to-html-headings-code-tables.md) — MCP server · 4038 installs
- [markdown-html-orchestrator](https://affpapa.org/en/nevibecode/skills/markdown-html-orchestrator.md) — skill · 46 installs
- [Markdown Renderer — Styled HTML with CSS Themes](https://affpapa.org/en/nevibecode/mcp/markdown-renderer-styled-html-with-css-themes.md) — MCP server · 2621 installs
- [baoyu-markdown-to-html](https://affpapa.org/en/nevibecode/skills/baoyu-markdown-to-html.md) — skill · 32900 installs
- [markdown-to-html](https://affpapa.org/en/nevibecode/skills/markdown-to-html.md) — skill · 9899 installs
- [canghe-markdown-to-html](https://affpapa.org/en/nevibecode/skills/canghe-markdown-to-html.md) — skill · 543 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
