html-to-markdown-x402
HTML 转 Markdown API
将 HTML 转换为干净的 Markdown —— 去除脚本/样式,保留标题、链接、列表和图片。通过 x402 按调用付费(使用 Base L2 上的 USDC)——无需 API 密钥、无需注册、无速率限制。
作为 klymax402 市场的一部分——为 AI 智能体提供 100 个 x402 微支付 API,一个钱包即可使用 Base 上的 USDC。
快速入门 —— MCP
在 MCP 客户端配置(Claude Desktop、Cursor、ElizaOS 等)中添加:
{
"mcpServers": {
"html-to-markdown": {
"url": "https://html-to-markdown.api.klymax402.com/mcp"
}
}
}Related MCP server: web-scraper
快速入门 —— HTTP(x402)
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任何支持 x402 的客户端(@x402/fetch、x402-agent-tools、ATXP)都会自动处理 402 -> 签名 -> 重试循环。
工具
工具 | 方法 | 路径 | 价格 | 描述 |
| POST |
| $0.003 | 将 HTML 转换为 Markdown |
text_convert_html_to_markdown
当需要将 HTML 转换为干净的 Markdown 文本时使用此。转换后的 Markdown 以 JSON 形式返回。
参数
| 名称 | 类型 | 是否必填 | 描述 |
| ---- | ------ | ------ | ------ | -------- |
| html | string | 是 | 要转换为 Markdown 的 HTML 内容 |
示例响应:
{"markdown":"# Hello World\n\nThis is **bold** and *italic*.\n\n[Link](https://example.com)","inputLength":156,"outputLength":68,"strippedElements":["script","style"]}适用场景:将网页内容转换为适合 LLM 的格式、迁移 CMS 内容、清理 HTML 邮件,以及为基于 Markdown 的系统准备内容。
不适用于:将 Markdown 转换为 HTML(使用 text_convert_markdown_to_html)、网页抓取(获取 + 转换)(使用 web_scrape_to_markdown)、PDF 生成(使用 document_generate_pdf)。
示例智能体提示词
“将 HTML 转换为干净的 Markdown 文本”
支付
协议:x402 —— 原生 HTTP 按调用付费,无需注册、无需 API 密钥
网络:Base L2(
eip155:8453)资产:DC—— USDC
促进方:Coinbase CDP(主要)、PayAI(备用)
也可通过 ATXP(以 OAuth 封装 x402,遵循 RFC 9728 受保护资源元数据)访问
属于 klymax402.com
为 AI 智能体提供的 100 个 x402 微支付 API——一个钱包、Base 上的 USDC、零注册。
完整 API 参考:https://klymax402.com/llms-full.txth * 实时统计:https://klymax402.com/stats
许可证
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Web page to clean Markdown for agents. Pay per call ($0.003 USDC on Base) via x402.
Pay-per-request webpage-to-Markdown extraction for AI agents. $0.005 USDC via x402 on Solana.
Web pages to Markdown, metadata and small crawls for agents. Free daily calls, then USDC x402/MPP.
Convert noisy HTML into clean Markdown, JSON tables & JSON-LD with token metrics via x402 USDC.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables extracting clean Markdown from any webpage by paying $0.005 USDC per call via the x402 protocol, with automatic wallet-based payment settlement.MIT
- AlicenseNot gradedqualityDmaintenanceEnables extracting clean, structured markdown from any URL—stripping nav, ads, and scripts—for RAG pipelines and AI research agents, with pay-per-call micropayments via x402.MIT
- AlicenseNot gradedqualityDmaintenanceEnables converting Markdown text into clean HTML for headings, lists, code blocks, tables, links, and images, with optional full-document wrapping via x402 micropayments.MIT
- FlicenseNot gradedqualityCmaintenanceEnables LLM agents to convert bloated webpages into clean token-dense plain text, stripping HTML, CSS, scripts, and layout elements while reducing context-window costs and supporting x402 micro-pay-based autonomous requests.-