HTML/CSS to Image MCP by usefulapi

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

사용해야 할까요

품질 및 안전성

A
설명 품질
100%
스키마 완전성
73%
이름 품질
80%
오염 위험
100%
권한 일치
100%
프로토콜 준수
100%

도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.

컨텍스트 비용

~1,124토큰 (도구 정의)
~1.4 KB일반적인 응답 크기
중간 정도의 주의 영향 (128k 컨텍스트의 0.88%)

이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.

설치

원클릭 설치

`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"
}

커뮤니티

이 서버 평가하기

증거

최근 관측

검증됨버전이 기록되지 않음도구 6개