HTML/CSS to Image API

io.github.htmlcsstoimagePublished by GitHub account htmlcsstoimagev1.1.0Updated Oct 24, 2026

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

VerifiedStreamable HTTPWeb executableBrowser AutomationMedia & Design

Overview

AI-generated overview

Hosted HCTI MCP server that lets an assistant render HTML/CSS, capture live web pages, and fill templates into images or PDFs.

What you can do
  • Render HTML/CSS into images or PDFs, and capture a public URL or a selected page element
  • Render saved templates with variable values, create and update templates, list templates and their version history
  • Generate multiple image variations in one batch and check the account's batch limit
  • Manage dynamic Open Graph image configurations for a website
  • Manage proxies used when HCTI fetches source sites, and external storage destinations for generated images
  • Check the organization's image usage and limits
When to use it
Useful when an assistant needs to produce social cards, Open Graph previews, screenshots of live pages, or PDF/image output from markup without running a browser itself, including repeatable template-driven rendering.
Requirements
A remote Streamable HTTP endpoint at mcp.hcti.io connected through browser-based OAuth; no API key or local install. An HCTI account with available credits is needed for rendering.
Before you install
Rendering consumes HCTI credits and requires an account. HTML, CSS, template values, target URLs and resource settings are sent to the hosted service and persistent resources are stored in the connected organization; avoid passing cookies, authorization headers or private URLs. Create, update and delete tools change the account, and update_og_config replaces the whole configuration.

Installation

In SourceWeft

  1. Open HTML/CSS to Image API in the dashboard and add it to a workspace.
  2. Connect the required credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.htmlcsstoimage%2Fhtml-css-to-image/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.

{
  "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

Source: README.md at commit 73eb09e

Tools

0
This server asks you to sign in, so SourceWeft could not read its tools without an account and has not indexed them. What a connected account sees can depend on that account and its permissions.

Version history

2
  1. v1.1.0LatestOct 5, 2026
  2. v1.0.2Sep 16, 2026

Score

85% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts