HTML/CSS to Image MCP by usefulapi
Render HTML, CSS or URLs to images; read templates and image usage in HTML/CSS to Image.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"html-css-to-image": {
"url": "https://html-css-to-image.usefulapi.io/mcp"
}
}
}リモートエンドポイント
https://html-css-to-image.usefulapi.io/mcpstreamable-httpできること
ツール一覧
ツール(6)
🟢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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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"
}コミュニティ
エビデンス