关于 Html To Markdown X402
Html To Markdown X402 是面向 AI Agent 的 HTML 转 Markdown MCP 服务,可清理脚本和样式并保留常见内容结构。通过 x402 按次支付调用转换工具。
主要功能
- 01HTML 转 Markdown
- 02移除脚本和样式
- 03保留标题、链接、列表和图片
- 04x402 按次付费接口
适用场景
- 01将网页内容整理为 LLM 可用文本
- 02清理 HTML 邮件
- 03迁移 CMS 内容
MCP 相关
通过远程 MCP 服务向客户端提供 HTML 转 Markdown 工具;也可通过 HTTP API 使用 x402 付款调用。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://html-to-markdown.api.klymax402.com/mcpclaude mcp add --transport sse html-to-markdown-x402 https://html-to-markdown.api.klymax402.com/mcp{"mcpServers":{"html-to-markdown-x402":{"type":"sse","url":"https://html-to-markdown.api.klymax402.com/mcp"}}}在 Cursor 中打开{"servers":{"html-to-markdown-x402":{"type":"sse","url":"https://html-to-markdown.api.klymax402.com/mcp"}}}在 VS Code 中打开{"mcpServers":{"html-to-markdown-x402":{"type":"sse","url":"https://html-to-markdown.api.klymax402.com/mcp"}}}{"mcpServers":{"html-to-markdown-x402":{"serverUrl":"https://html-to-markdown.api.klymax402.com/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
HTML 转 Markdown API
将 HTML 转换为整洁的 Markdown——移除脚本和样式,同时保留标题、链接、列表和图片。通过 x402 按次付费(Base L2 上的 USDC)——无需 API 密钥、无需注册,也没有速率限制门槛。
这是 klymax402 市场的一部分——面向 AI Agent 的 100 个 x402 微支付 API,一个钱包即可使用 Base 上的 USDC。
快速开始——MCP
添加到 MCP 客户端配置中(Claude Desktop、Cursor、ElizaOS 等):
{
"mcpServers": {
"html-to-markdown": {
"url": "https://html-to-markdown.api.klymax402.com/mcp"
}
}
}
快速开始——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 → 签名 → 重试流程。
工具
| 工具 | 方法 | 路径 | 价格 | 描述 |
|---|---|---|---|---|
text_convert_html_to_markdown | POST | /api/convert | $0.003 | 将 HTML 转换为 markdown |
text_convert_html_to_markdown
当你需要将 HTML 转换为整洁的 Markdown 文本时使用。以 JSON 格式返回转换后的 markdown。
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
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"]}
适用场景:将网页内容转换为适合大模型的格式、迁移 CMS 内容、清理 HTML 邮件,以及为基于 markdown 的系统准备内容。
不适用于:将 markdown 转为 HTML(使用 text_convert_markdown_to_html)、网页抓取(获取并转换)(使用 web_scrape_to_markdown)、生成 PDF(使用 document_generate_pdf)。
Agent 提示词示例
- “将 HTML 转换为整洁的 Markdown 文本”
付款
- 协议:x402——基于 HTTP 的按次付费,无需注册,无需 API 密钥
- 网络:Base L2(
eip155:8453) - 资产:USDC
- 支付促进方:Coinbase CDP(主要),PayAI(备用)
- 也可通过 ATXP 访问(由 OAuth 封装的 x402,受 RFC 9728 受保护资源元数据保护)
klymax402 的一部分
面向 AI Agent 的 100 个 x402 微支付 API——一个钱包即可使用 Base 上的 USDC,无需注册。
- 目录:https://klymax402.com/llms.txt
- 完整 API 参考:https://klymax402.com/llms-full.txt
- 实时统计:https://klymax402.com/stats
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。