
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.
概览
托管式 HCTI MCP 服务器,让助手把 HTML/CSS、实时网页和模板渲染成图片或 PDF。
- 可以做什么
- 把 HTML/CSS 渲染为图片或 PDF,并截取公开网址或指定页面元素
- 用变量值渲染已保存的模板,创建和更新模板,列出模板及其版本历史
- 一次批量生成多张图片变体,并查询账户的批量上限
- 管理网站的动态 Open Graph 图片配置
- 管理 HCTI 访问源网站所用的代理,以及生成图片的外部存储目标
- 查询所属组织的图片用量与限额
- 适用场景
- 适合需要生成社交卡片、Open Graph 预览图、实时网页截图,或把标记语言输出为图片/PDF 而不自行运行浏览器的场景,也适合基于模板的重复渲染。
- 运行要求
- 通过浏览器 OAuth 连接 mcp.hcti.io 的远程 Streamable HTTP 端点,无需 API 密钥或本地安装。渲染需要 HCTI 账户并有可用额度。
安装
在 SourceWeft 中
- 打开 控制台中的 HTML/CSS to Image API,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
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
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:
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:
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:
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:
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:
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:
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:
Preview the Open Graph skill separately:
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:
Managing resources with MCP
Beyond generating images, the HCTI MCP server can manage supporting resources in the connected organization:
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.comusing 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:
Validate the Claude adapter with Claude Code's official strict validator:
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
- HTML/CSS to Image MCP documentation
- Official ChatGPT and Codex plugin
- OpenAI plugin packaging documentation
- Kimi Code plugin documentation
- Gemini CLI extension documentation
- GitHub Copilot plugin documentation
- Cline MCP installation instructions
- Cursor plugin documentation
- Cursor plugin reference
- Claude Code plugin documentation
- Claude Code plugin reference
- Support: [email protected]
来源:README.md,提交 73eb09e
工具
0版本历史
2- v1.1.0最新Oct 5, 2026
- v1.0.2Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分