Converts HTML documents into clean markdown while automatically stripping out scripts and styles. The server operates behind an x402 micropayment system at klymax402.com, so you'll need to handle payment flow to use it. Reach for this when you need sanitized markdown from web content without rolling your own parser or dealing with the messy bits of HTML cleanup. The remote transport uses SSE, which means streaming responses over server-sent events. The GitHub repo is fairly minimal without much documentation visible, but the core use case is straightforward: throw HTML at it, get readable markdown back, and let it handle the cruft removal for you.
Public tool metadata for what this MCP can expose to an agent.
text_convert_html_to_markdownUse this when you need to convert HTML to clean Markdown text. Returns the converted markdown in JSON. Returns: 1. markdown (converted text) 2. inputLength (character count of HTML) 3. outputLength (1 paramsUse this when you need to convert HTML to clean Markdown text. Returns the converted markdown in JSON. Returns: 1. markdown (converted text) 2. inputLength (character count of HTML) 3. outputLength (
htmlstringConvert HTML to clean Markdown -- strips scripts/styles, preserves headings, links, lists, images. Pay-per-call via x402 (USDC on Base L2) -- no API key, no signup, no rate-limit wall.
Part of the klymax402 marketplace -- 100 x402 micropayment APIs for AI agents, one wallet, USDC on Base.
Add to your MCP client config (Claude Desktop, Cursor, ElizaOS, etc.):
{
"mcpServers": {
"html-to-markdown": {
"url": "https://html-to-markdown.api.klymax402.com/mcp"
}
}
}
curl -X POST "https://html-to-markdown.api.klymax402.com/api/convert" \
-H "Content-Type: application/json" \
-d '{"html":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body
Any x402-aware client (@x402/fetch, x402-agent-tools, ATXP) handles the 402 -> sign -> retry cycle automatically.
| Tool | Method | Path | Price | Description |
|---|---|---|---|---|
text_convert_html_to_markdown | POST | /api/convert | $0.001 | Convert HTML to markdown |
text_convert_html_to_markdownUse this when you need to convert HTML to clean Markdown text. Returns the converted markdown in JSON.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
html | string | yes | HTML content to convert to markdown |
Example response:
{"markdown":"# Hello World\n\nThis is **bold** and *italic*.\n\n[Link](https://example.com)","inputLength":156,"outputLength":68,"strippedElements":["script","style"]}
When to use: converting web content to LLM-friendly format, migrating CMS content, cleaning up HTML emails, and preparing content for markdown-based systems.
Not for: markdown to HTML (use text_convert_markdown_to_html), web scraping (fetching + converting) (use web_scrape_to_markdown), PDF generation (use document_generate_pdf).
eip155:8453)100 x402 micropayment APIs for AI agents -- one wallet, USDC on Base, zero signup.
MIT
csoai-org/pdf-document-mcp
xt765/mcp-document-converter
io.github.xjtlumedia/markdown-formatter
io.github.ai-aviate/better-notion
suekou/mcp-notion-server
meterlong/mcp-doc