# HTML to Image — MCP server on mcp.ai > Connect your HTML to Image account and use 3 tools for images and design straight from your AI agent. Connect with your own API key. HTML to Image is a service that converts HTML and CSS into images or captures screenshots of web pages. By: mcp.ai · official Page: https://mcp.ai/html_to_image ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_html_to_image?ms=1787291340000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/html_to_image/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/html_to_image/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/html_to_image/skill.md Postman collection (v2.1): https://mcp.ai/html_to_image/postman.json ## Tools - html_to_image_check_usage(endpoint_paths?: string[], return_defaults_on_error?: boolean) — Attempts to retrieve account usage statistics from the HTML-to-Image API by trying multiple common endpoint patterns. NOTE: The html2img.com API does not officially document a dedicated usage statisti - html_to_image_convert_to_image(html: string, width?: integer, height?: integer) — Tool to convert HTML content into an image. Returns either a downloadable file or a JSON payload containing id and url, depending on the upstream API behavior. - html_to_image_get_image(dl?: integer, dpi?: integer, width?: integer, height?: integer, image_id: string) — Retrieve a previously generated image by its URL. Use this to fetch, resize, or download an existing HTML-to-image asset. The image URL is typically obtained from the 'url' field of the HTML_TO_IMAGE_ ## Example prompts - "What can I do in HTML to Image?" - "Show me a summary of my HTML to Image account" ## Links Docs: https://mcp.ai/docs/mcps/html_to_image Website: https://mcp.ai/mcps/html_to_image