HTML/CSS to Image MCP by usefulapi

Render HTML, CSS or URLs to images; read templates and image usage in HTML/CSS to Image.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
73%
Naming quality
80%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~1,124Tokens (tool definitions)
~1.4 KBTypical response size
Moderate attention impact (0.88% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "html-css-to-image": {
      "url": "https://html-css-to-image.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://html-css-to-image.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (6)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢htmlcss_check_usage

Show image credits rendered per hour, day and month, and per billing period. Read only. Needs the usage:read permission. HCTI API: GET /v1/usage.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢htmlcss_list_images(count, page_token)

List images this account rendered, newest first, 50 per page at most. Use next_page_token for the next page. Needs images:read. HCTI API: GET /v1/images.

Input Schema

{
  "type": "object",
  "properties": {
    "count": {
      "description": "Images per page, 1 to 50 (default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "page_token": {
      "description": "next_page_token from the previous page.",
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢htmlcss_list_templates

List the saved templates in this account. Use an id from the result with htmlcss_get_template or htmlcss_create_templated_image. Needs templates:read. HCTI API: GET /v1/template.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢htmlcss_get_template(template_id)

Get one saved template by id, with its HTML, CSS, variables and render options. Needs templates:read. HCTI API: GET /v1/template/{template_id}.

Input Schema

{
  "type": "object",
  "properties": {
    "template_id": {
      "type": "string",
      "minLength": 1,
      "description": "The template id, for example from htmlcss_list_templates."
    }
  },
  "required": [
    "template_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴htmlcss_create_image(html, css, url, format, device_scale, ...)

Render HTML/CSS (or a public URL screenshot) to a hosted image and return its URL. Give exactly one of html or url. Each call uses image credits. Needs images:create. HCTI API: POST /v1/image.

Input Schema

{
  "type": "object",
  "properties": {
    "html": {
      "description": "HTML to render: a snippet or a full page. Use this or url, not both.",
      "type": "string"
    },
    "css": {
      "description": "CSS for the HTML (injected into the page when url is used).",
      "type": "string"
    },
    "url": {
      "description": "Public web page to screenshot. Use this or html, not both.",
      "type": "string",
      "pattern": "^https?:\\/\\/"
    },
    "format": {
      "description": "Output file type (default png).",
      "type": "string",
      "enum": [
        "png",
        "jpg",
        "webp",
        "pdf"
      ]
    },
    "device_scale": {
      "description": "Pixel ratio, 0.1 to 3 (higher is sharper and larger).",
      "type": "number",
      "minimum": 0.1,
      "maximum": 3
    },
    "viewport_width": {
      "description": "Browser width in pixels. Set with viewport_height.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "viewport_height": {
      "description": "Browser height in pixels. Set with viewport_width.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "ms_delay": {
      "description": "Wait before capture in ms (start with 500 for JavaScript).",
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    },
    "selector": {
      "description": "CSS selector: crop the image to that element.",
      "type": "string"
    },
    "full_screen": {
      "description": "For url: capture the full page height.",
      "type": "boolean"
    },
    "transparent_background": {
      "description": "Render with a transparent background.",
      "type": "boolean"
    },
    "google_fonts": {
      "description": "Google fonts to load, for example 'Roboto|Open Sans'.",
      "type": "string"
    },
    "block_consent_banners": {
      "description": "For url: block cookie banners and popups.",
      "type": "boolean"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴htmlcss_create_templated_image(template_id, template_version, template_values)

Render a saved template with values for its variables and return the image URL. Pass template_version to pin a version. Each call uses image credits. Needs images:create. HCTI API: POST /v1/image/{template_id}.

Input Schema

{
  "type": "object",
  "properties": {
    "template_id": {
      "type": "string",
      "minLength": 1,
      "description": "The saved template id (from htmlcss_list_templates)."
    },
    "template_version": {
      "description": "Pin a template version (default: the latest).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "template_values": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {},
      "description": "Values for the template variables, as a JSON object."
    }
  },
  "required": [
    "template_id",
    "template_values"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded6 tools