Skip to main content
Glama
Br0ski777

html-to-markdown-x402

by Br0ski777

HTML 转 Markdown API

MCP Server x402 License: MIT

将 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: x402-md-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 文本时使用此。转换后的 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、零注册。

许可证

MIT

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables extracting clean Markdown from any webpage by paying $0.005 USDC per call via the x402 protocol, with automatic wallet-based payment settlement.
    8 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables converting Markdown text into clean HTML for headings, lists, code blocks, tables, links, and images, with optional full-document wrapping via x402 micropayments.
    MIT