HTML/CSS to Image MCP by usefulapi

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

Sollte ich dies verwenden

Qualität und Sicherheit

A
Qualität der Beschreibung
100%
Vollständigkeit des Schemas
73%
Qualität der Benennung
80%
Risiko der Vergiftung
100%
Übereinstimmung der Berechtigungen
100%
Einhaltung des Protokolls
100%

Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.

Kontextkosten

~1,124Tokens (Tool-Definitionen)
~1.4 KBTypische Antwortgröße
Mittlere Auswirkung auf die Aufmerksamkeit (0.88% von 128k Kontext)

Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.

Installieren

Installation mit einem Klick

Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:

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

Remote-Endpunkte

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

Was es kann

Tool-Inventar

Tools (6)

🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
🟢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.

Eingabe-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.

Eingabe-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.

Eingabe-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}.

Eingabe-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.

Eingabe-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}.

Eingabe-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

Diesen Server bewerten

Nachweis

Aktuelle Beobachtungen

verifiziertVersion nicht aufgezeichnet6 Tools