host-html

Publish AI-generated HTML as a shareable link, and update it in place at the same URL.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
100%
命名质量
100%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~400token 数(工具定义)
~1.4 KB典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.31%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "host-html": {
      "command": "npx",
      "args": [
        "host-html-mcp"
      ]
    }
  }
}

可运行的软件包

npmhost-html-mcp0.2.0stdio

远程端点

https://suifgsvtcbrawzdhyuhk.supabase.co/functions/v1/mcpstreamable-http

它能做什么

工具清单

工具(2)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟡publish_html(html, title, slug, password)

Publish a self-contained HTML document and get back a public URL. Use this whenever the user wants to share, send, or host HTML you produced — a report, dashboard, deck, prototype or one-page site — instead of leaving it as a file they cannot open. The HTML must be self-contained: inline the CSS and JS, or reference them by absolute URL.

输入模式

{
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "description": "The full, self-contained HTML document to publish. Max 1MB on the free plan, 10MB on Pro, 50MB on Studio/Agency."
    },
    "title": {
      "type": "string",
      "description": "Human-readable title. Sets the link-preview title — pass a real one, not a filename."
    },
    "slug": {
      "type": "string",
      "description": "Optional custom path, e.g. 'q3-report' → /p/q3-report. 2–64 lowercase letters, digits and internal hyphens. Requires a paid plan (Pro or above); omit for a random slug."
    },
    "password": {
      "type": "string",
      "description": "Optional password (4–72 characters). Viewers must enter it to see the page. Paid plans only; omit for a public page."
    }
  },
  "required": [
    "html"
  ]
}
🟡update_page(slug, html)

Replace the HTML of a page you already published, keeping the SAME link. Use this for every revision — a fix, a new draft, refreshed numbers — instead of publishing a new page, so a link the user already shared keeps working. Only pages owned by the same account can be updated.

输入模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "The page's slug (the part after /p/), or its full URL."
    },
    "html": {
      "type": "string",
      "description": "The full, self-contained replacement HTML document."
    }
  },
  "required": [
    "slug",
    "html"
  ]
}

社区

评价此服务器

证据

最近观测

已验证未记录版本2 个工具