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: urltomarkdown-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/fetchx402-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

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

  • Web scraping for AI agents. Converts URLs to clean, LLM-ready Markdown with anti-bot bypass.

  • Web intelligence for AI agents: fetch, render, extract, research. x402 micropayments, no API keys.

  • Web reader for AI agents — output ~4x smaller than raw HTML. Card API key or x402. Free tier.

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/html-to-markdown-x402'

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