HTML to Markdown — Claude Code MCP server: setup guide
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.
no license 4,235 installs updated 2026-04-13
claude mcp add --transport http html-to-markdown https://html-to-markdown--axel-belfort.run.toolsWhat HTML to Markdown — Clean Conversion, Scripts Stripped 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.
What it helps with
- 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 for the agent
- 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
How to install HTML to Markdown — Clean Conversion, Scripts Stripped
Platform CLI: remote server
claude mcp add --transport http html-to-markdown https://html-to-markdown--axel-belfort.run.toolsPlatform CLI: remote server
codex mcp add html-to-markdown-clean-conversion-scripts-stripped --url https://html-to-markdown--axel-belfort.run.toolsConfig file
{
"mcpServers": {
"html-to-markdown-clean-conversion-scripts-stripped": {
"url": "https://html-to-markdown--axel-belfort.run.tools"
}
}
}Config file
{
"servers": {
"html-to-markdown-clean-conversion-scripts-stripped": {
"type": "http",
"url": "https://html-to-markdown--axel-belfort.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http html-to-markdown-clean-conversion-scripts-stripped https://html-to-markdown--axel-belfort.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about HTML to Markdown — Clean Conversion, Scripts Stripped
How to install HTML to Markdown in Claude Code?
Run claude mcp add --transport http html-to-markdown https://html-to-markdown--axel-belfort.run.tools in your console.
What does HTML to Markdown do?
It converts HTML input into clean Markdown, discarding trackers, styles, and scripts while preserving elements like tables, links, and headings.
Does this tool scrape live URLs?
No, it converts provided raw markup. Live web addresses require using web_scrape_to_markdown instead.