HTML/CSS to Image API

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

Generate images and PDFs from HTML/CSS, live websites, and reusable templates.

已验证Streamable HTTP可网页运行浏览器自动化媒体与设计

概览

AI 生成的概览

托管式 HCTI MCP 服务器,让助手把 HTML/CSS、实时网页和模板渲染成图片或 PDF。

可以做什么
  • 把 HTML/CSS 渲染为图片或 PDF,并截取公开网址或指定页面元素
  • 用变量值渲染已保存的模板,创建和更新模板,列出模板及其版本历史
  • 一次批量生成多张图片变体,并查询账户的批量上限
  • 管理网站的动态 Open Graph 图片配置
  • 管理 HCTI 访问源网站所用的代理,以及生成图片的外部存储目标
  • 查询所属组织的图片用量与限额
适用场景
适合需要生成社交卡片、Open Graph 预览图、实时网页截图,或把标记语言输出为图片/PDF 而不自行运行浏览器的场景,也适合基于模板的重复渲染。
运行要求
通过浏览器 OAuth 连接 mcp.hcti.io 的远程 Streamable HTTP 端点,无需 API 密钥或本地安装。渲染需要 HCTI 账户并有可用额度。
安装前请注意
渲染会消耗 HCTI 额度并需要账户。HTML、CSS、模板变量、目标网址和资源配置会发送到托管服务,持久资源保存在所连接的组织中;不要传入 cookie、授权头或私有网址。创建、更新、删除类工具会改动账户,且 update_og_config 会整体替换配置。

安装

在 SourceWeft 中

  1. 打开 控制台中的 HTML/CSS to Image API,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.htmlcsstoimage%2Fhtml-css-to-image/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "html-css-to-image-api": {
      "type": "http",
      "url": "https://mcp.hcti.io/"
    }
  }
}

README

HTML/CSS to Image API for AI agents

Let AI agents capture live website screenshots, render HTML/CSS, and populate reusable templates as images or PDFs—without managing a browser.

This repository is a portable Agent Plugin package with client-specific manifests for the hosted HCTI MCP server at https://mcp.hcti.io. Authentication uses HCTI's browser-based OAuth flow; no API key or access token is stored in this repository.

Repository layout

PathPurpose
plugin.jsonPortable Agent Plugins manifest.
mcp.jsonPortable MCP configuration.
.mcp.jsonClaude Code, GitHub Copilot, and Grok-compatible MCP configuration.
llms-install.mdAgent-readable installation guidance for Cline and other MCP clients.
.codex-plugin/plugin.jsonNative ChatGPT and Codex plugin manifest.
.app.jsonMaps the package to the official published OpenAI plugin.
.claude-plugin/plugin.jsonClaude Code plugin manifest.
.cursor-plugin/plugin.jsonCursor Marketplace manifest.
.grok-plugin/plugin.jsonGrok Build marketplace manifest.
gemini-extension.jsonGemini CLI extension manifest.
kimi.plugin.jsonKimi Code plugin manifest.
skills/hcti-image-generation/Image generation and template workflow guidance.
skills/hcti-open-graph-images/Dynamic Open Graph image configuration guidance.
clawhub/html-css-to-image/Standalone OAuth/MCP rendering skill for ClawHub.
clawhub/hcti-open-graph-images/Standalone OAuth/MCP Open Graph skill for ClawHub.

ChatGPT and Codex

Install the official HTML/CSS to Image plugin from the Plugins Directory in ChatGPT or Codex. This is the preferred OpenAI integration and uses HCTI's registered MCP connection with browser-based OAuth.

The native .codex-plugin/plugin.json manifest packages the shared HCTI skill, while .app.json maps the package to the published OpenAI plugin.

Kimi Code

Install the plugin directly from GitHub in Kimi Code:

text
/plugins install https://github.com/htmlcsstoimage/agent-plugins/reload

Run /mcp-config login hcti and complete authorization in your browser. Then use /mcp to confirm that the HCTI tools are connected.

To test a local checkout, use /plugins install /path/to/agent-plugins. Kimi copies installed plugins into its managed plugin directory, so reinstall after changing the local source.

Gemini CLI

Install the extension directly from GitHub:

bash
gemini extensions install https://github.com/htmlcsstoimage/agent-plugins

Restart Gemini CLI, run /extensions list to confirm the extension is enabled, then run /mcp auth hcti and complete authorization in your browser. Use /mcp list to confirm the HCTI tools are connected. Gemini CLI automatically discovers the included HCTI Agent Skills.

To test a local checkout during development, run gemini extensions link /path/to/agent-plugins, restart Gemini CLI, and inspect it with /extensions list.

GitHub Copilot

Install a local checkout

Install this repository directly:

bash
copilot plugin install /path/to/agent-plugins

Start Copilot CLI and use /plugin list, /skills list, and /mcp to confirm that the plugin, skill, and HCTI server are available. Connect hcti from /mcp and complete authorization in your browser.

Cline

Give Cline the repository's llms-install.md to configure the hosted HCTI server, or add it manually as a remote Streamable HTTP server at https://mcp.hcti.io. Complete the OAuth authorization in your browser; no API key or local server installation is required.

Claude Code

Install from the Claude community marketplace

After the plugin is published, add Anthropic's community marketplace and install the plugin:

text
/plugin marketplace add anthropics/claude-plugins-community/plugin install html-css-to-image@claude-community/reload-plugins

Run /mcp, select hcti, and complete authorization in your browser. Claude can invoke the HCTI skill automatically when relevant; it is also available as /html-css-to-image:hcti-image-generation.

Test a local checkout

Validate and load this repository directly:

bash
claude plugin validate . --strictclaude --plugin-dir .

In the test session, run /mcp to connect hcti, then try an image request. Use /reload-plugins after changing the manifest, skill, or MCP configuration.

Cursor

Install from the Cursor Marketplace

After the plugin is published, open Customize in Cursor, search for HTML/CSS to Image API, select Install, and choose the desired scope.

Open Cursor's MCP settings, find hcti, select Connect, and complete authorization in your browser. Start a new Agent chat after connecting so the HCTI tools are available.

Test a local checkout

Copy this repository into Cursor's local plugin directory:

bash
mkdir -p ~/.cursor/plugins/localcp -R /path/to/agent-plugins ~/.cursor/plugins/local/html-css-to-image

Restart Cursor or run Developer: Reload Window, then confirm that HTML/CSS to Image API appears in Customize. Connect the hcti MCP server from Cursor's MCP settings before testing an image request.

For another test cycle, replace the copied html-css-to-image directory with the current checkout and reload Cursor.

Grok Build

The xAI plugin marketplace points to this repository at a pinned commit. Its Grok manifest reuses the root skill, MCP endpoint, and assets.

After the marketplace entry is available, install HTML/CSS to Image in Grok Build, connect the hcti MCP server when prompted, and complete authorization in your browser.

ClawHub / OpenClaw

The ClawHub skill supports HTML/CSS rendering, website screenshots, PDF output, and saved-template rendering through the hosted MCP server. Users connect to https://mcp.hcti.io using browser-based OAuth; no API keys are required. Rendering requires an HCTI account and available credits.

The separate Open Graph skill creates persistent dynamic social-preview configurations and integrates their image URLs into website metadata. It includes the webpage integration reference and uses the same OAuth connection.

These standalone distributions live outside skills/ so other clients do not discover duplicate skills. Their setup instructions register the server in OpenClaw and complete OAuth; installing a skill alone does not establish the connection. Publish only the skill folder, not the whole plugin repository.

From this repository's root, with the current ClawHub CLI installed:

bash
clawhub loginclawhub skill publish ./clawhub/html-css-to-image \  --slug html-css-to-image \  --name "HTML/CSS to Image" \  --categories integrations,creative \  --topics "screenshots,html,css,pdf,images" \  --dry-run

Preview the Open Graph skill separately:

bash
clawhub skill publish ./clawhub/hcti-open-graph-images \  --slug hcti-open-graph-images \  --name "HTML/CSS to Image — Dynamic Open Graph Images" \  --categories integrations,development \  --topics "open-graph,social-previews,seo,images,html" \  --dry-run

After reviewing each preview, run its publish command without --dry-run. To publish under an organization, add --owner <your-clawhub-owner-handle> to both commands; otherwise the authenticated user owns the listing. Publication is separate from committing this repository, and new releases may wait for automated review.

ClawHub distributes published skills under MIT-0. Review those terms before the first publication; the hosted HCTI service remains subject to its own terms. See ClawHub publishing and skill format.

Included capabilities

The core rendering and template tools are:

ToolPurpose
create_imageRender HTML and CSS as an image or PDF.
create_url_imageCapture a public URL or selected page element.
create_templated_imageRender a saved HCTI template with variable values.
create_batch_imagesGenerate multiple image variations in one request.
get_max_batch_sizeCheck the account's current batch limit.
create_templateSave a reusable HTML/CSS template.
update_templateUpdate an existing template.
list_templatesList templates in the authorized account.
list_template_versionsInspect a template's version history.

Managing resources with MCP

Beyond generating images, the HCTI MCP server can manage supporting resources in the connected organization:

ResourceToolsPurpose
Usagecheck_usageCheck the organization's current image usage and limits.
Open Graph configurationscreate_og_config, update_og_config, get_og_config, list_og_configs, delete_og_configManage dynamic social-preview images for pages on a website.
Proxiescreate_proxy, update_proxy, get_proxy, list_proxies, delete_proxyManage proxies used when HCTI accesses source websites.
Storage destinationscreate_storage_destination, update_storage_destination, get_storage_destination, list_storage_destinations, delete_storage_destination, get_aws_storage_external_idManage external destinations for generated images and retrieve the external ID needed for AWS setup.

Dynamic Open Graph image configurations are an especially useful integration point. An agent can resolve an existing HCTI template, map page metadata into its variables, optionally select a configured proxy or storage destination, and create a persistent configuration for serving cached social images.

Resource tools operate on the HCTI organization selected during OAuth authorization, and available tools depend on the permissions granted to that connection. Listing and retrieval are read-only; create, update, and delete operations change the account. In particular, update_og_config replaces the complete configuration, so agents should retrieve the current configuration and preserve unchanged settings before updating it.

Example requests

  • "Create a 1200×630 Open Graph image with this title and color palette."
  • "Capture the pricing table on https://example.com/pricing."
  • "List my HCTI templates and render the social-card template with this headline."
  • "Create five product-card variations with different accent colors."
  • "Create a dynamic Open Graph configuration for https://example.com using my social-card template and map its title and description from page metadata."

Data handling

Requests sent through the plugin are processed by the hosted HTML/CSS to Image service. HTML, CSS, template values, target URLs, rendering options, and resource configuration supplied to HCTI are sent to that service; persistent resources are stored in the connected HCTI organization. Do not provide cookies, authorization headers, private URLs, or other secrets unless intentionally configuring an authorized rendering workflow and you understand that HCTI will process that data.

License and service terms

The plugin files in this repository are available under the MIT License. The license applies to this repository's source code, configuration, and documentation; it does not license the hosted HTML/CSS to Image service. Use of the service is governed separately by the Terms of Use and Privacy Policy.

Validate

Run the repository checks:

bash
node scripts/validate-template.mjs

Validate the Claude adapter with Claude Code's official strict validator:

bash
claude plugin validate . --strict

Verified compatibility

The plugin runtime, shared HCTI skills, MCP discovery, and browser-based OAuth flow were tested with Claude Code 2.1.258. Use Claude Code 2.1.281 or newer for strict validation of directory listing metadata such as privacyPolicyUrl.

The Grok adapter is validated by the xAI marketplace's catalog and component-index checks against the pinned commit.

HOL Registry

Our AI agent plugins are registered in the HOL Plugin Registry, where you can review installation details, security findings, provenance, and the current trust score.

[HTML/CSS to Image API trust badge]

Documentation and support

来源:README.md,提交 73eb09e

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

2
  1. v1.1.0最新Oct 5, 2026
  2. v1.0.2Sep 16, 2026

评分

已满足适用检查项的 85%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

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

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