Skip to main content
Glama
Br0ski777

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: PDF Generator MCP Server

快速开始 —— 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/fetchx402-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

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Br0ski777/markdown-to-html-x402'

If you have feedback or need assistance with the MCP directory API, please join our Discord server