Skip to main content
Glama
markdown-to-html

markdown-to-html

by Br0ski777

Markdown to HTML API

MCP Server x402 License: MIT

将 Markdown 转换为干净的 HTML —— 标题、列表、代码块、表格、链接、图片。可选地将输出包装为完整的 HTML 文档。通过 x402 按次付费(USDC on Base L2)—— 无需 API 密钥、无需注册、没有速率限制。

作为 klymax402 市场的一部分 —— 为 AI 智能体提供 100 个 x402 微支付 API,一个钱包,USDC on Base。

快速开始 —— MCP

添加到你的 MCP 客户端配置(Claude Desktop、Cursor、ElizaOS 等):

{
  "mcpServers": {
    "markdown-to-html": {
      "url": "https://markdown-to-html.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: markdown-renderer

快速开始 —— HTTP (x402)

curl -X POST "https://markdown-to-html.api.klymax402.com/api/convert" \
  -H "Content-Type: application/json" \
  -d '{"markdown":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body

任何支持 x402 的客户端(@x402/fetch、x402-agent-tools、ATXP)都会自动处理 402 -> 签名 -> 重试 循环。

工具

工具

方法

路径

价格

描述

text_convert_markdown_to_html

POST

/api/convert

$0.003

将 Markdown 文本转换为 HTML

text_convert_markdown_to_html

当需要将 Markdown 文本转换为干净的 HTML 时,使用此工具。以 JSON 形式返回转换后的 HTML。

参数

名称

类型

必填

描述

markdown

string

是

要转换的 Markdown 文本

wrapInDocument

boolean

否

将输出包装为完整的 HTML 文档(默认:false)

示例响应:

{"html":"<h1>Hello World</h1>\n<p>This is <strong>bold</strong> and <em>italic</em>.</p>","inputLength":42,"outputLength":68}

适用场景:在 Web 应用中渲染 Markdown 内容、转换 README 文件、构建文档页面、从 Markdown 生成邮件模板。

不适用于:HTML 转 Markdown(使用 text_convert_html_to_markdown)、带 CSS 主题的样式化 HTML(使用 text_render_markdown)、PDF 生成(使用 document_generate_pdf)。

示例智能体提示

  • "将 Markdown 文本转换为干净的 HTML"

支付

  • 协议:x402 —— HTTP 原生按次付费,无需注册,无需 API 密钥

  • 网络:Base L2(eip155:8453)

  • 资产:USDC

  • 促进方:Coinbase CDP(主要)、PayAI(备用)

  • 也可通过 ATXP 访问(OAuth 包装的 x402,符合 RFC 9728 受保护资源元数据)

作为 klymax402 的一部分

为 AI 智能体提供 100 个 x402 微支付 API —— 一个钱包,USDC on Base,零注册。

许可证

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    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.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Converts PDF, Word, Excel, and PowerPoint documents to Markdown using a pay-per-conversion model with USDC on Base via the x402 protocol.
      2
      19 PyPI
      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