Html To Markdown Mcp

io.github.MukundaKatta由 GitHub 账号 MukundaKatta 发布v0.1.0更新于 Oct 24, 2026

Convert HTML to Markdown or strip to plain text. For web-scraping agents.

概览

AI 生成的概览

一个本地 MCP 服务器,把 HTML 转换为整洁的 Markdown 或纯文本,让助手以确定的方式把抓取的网页变成可读内容。

可以做什么
将 HTML 转换为 Markdown,统一标题、围栏代码块和行内链接的写法,默认去除脚本和样式。完全剥离 HTML,返回空白规范化的纯文本,在只需要文字时更快。
适用场景
适合网页抓取或阅读页面的助手,需要稳定的 Markdown 或文本输出,而不是让模型在每轮对话中自行转换 HTML(结果不一致)。它不是完整的内容提取流程,正文识别需另做一步。
运行要求
通过 stdio 在本地运行,使用 npx 从 npm 包 @mukundakatta/html-to-markdown-mcp 安装。未声明认证、环境变量或请求头。仅支持桌面客户端。
安装前请注意
转换在本地进行且为只读,不涉及凭据、付费或写入。输出质量取决于输入 HTML,且不识别正文,导航和样板内容可能保留。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Html To Markdown Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@mukundakatta/html-to-markdown-mcp

MCP server for HTML → Markdown conversion. For web-scraping and read-the-page agents.

Tools

  • html_to_md(html, ...options) — Turndown-based conversion with sane defaults (ATX headings, fenced code, inline links). Strips scripts/styles by default.
  • extract_text(html) — strip everything, return whitespace-normalized text. Faster than html_to_md when you only need text content.

Why this exists

Web-scraping agents constantly need clean Markdown from HTML. LLMs do this inline but inconsistently across turns (different heading styles, different list markers, sometimes leaving raw HTML tags in). A deterministic converter avoids the variance.

This is intentionally not a full content-extraction pipeline (no Readability-style "main content" detection — use that in a separate step if needed).

Install — Claude Desktop

json
{  "mcpServers": {    "html-to-markdown": { "command": "npx", "args": ["-y", "@mukundakatta/html-to-markdown-mcp"] }  }}

Same shape for Cursor / Cline / Windsurf / Zed.

License

MIT OR Apache-2.0.

来源:packages/html-to-markdown-mcp/README.md,提交 6fad5bb

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分