Codetoimage Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Codetoimage Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Official Model Context Protocol server for codetoimage.app — render HTML/CSS to PNG/JPG/WebP directly from Claude Desktop, Claude Code, Cursor, or any MCP-compatible client.
Two tools, no setup beyond an API key:
You don't need to install anything globally — MCP clients can run it via npx. Get an API key at codetoimage.app/dashboard/keys, then add the config below.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"codetoimage": {
"command": "npx",
"args": ["-y", "@codetoimage/mcp-server"],
"env": {
"CODETOIMAGE_API_KEY": "cti_live_..."
}
}
}
}Restart Claude Desktop. The two tools appear in the tool picker.
claude mcp add codetoimage -s user -- npx -y @codetoimage/mcp-serverThen set the env var in your shell profile (or pass -e CODETOIMAGE_API_KEY=cti_live_… in the claude mcp add call).
Edit ~/.cursor/mcp.json:
{
"mcpServers": {
"codetoimage": {
"command": "npx",
"args": ["-y", "@codetoimage/mcp-server"],
"env": {
"CODETOIMAGE_API_KEY": "cti_live_..."
}
}
}
}The tools are self-documenting — your agent will pick the right one based on intent. Example prompts that just work:
"Render this card as a PNG: <div style='padding:40px;background:#6366f1;color:white;border-radius:16px'>Hello</div> at 800×400.""Generate an Open Graph image for the blog post 'Why agents need pixel-perfect rendering' and give me a URL I can paste into the og:image meta tag."
"Take this CSS card and render it as a transparent PNG so I can use it on a dark background."
render_html_to_image| Field | Type | Required | Notes | ||
|---|---|---|---|---|---|
html | string | ✓ | Full HTML (typically with <body>) | ||
css | string | – | Optional CSS injected as <style> | ||
width | integer 1-2048 | – | Default 800 | ||
height | integer 1-2048 | – | Default 600 | ||
format | png \ | jpeg \ | webp | – | Default png |
quality | integer 1-100 | – | JPEG/WebP only | ||
transparent | boolean | – | PNG/WebP, paid plans | ||
background | string | – | e.g. #ffffff or rgb(…) |
Returns: image content (base64 inline), rendered in the chat.
render_html_to_urlSame input schema as render_html_to_image. Returns a text block with:
url — temporary hosted image URLformat — final output formatexpires_at — ISO timestamp (24h from render)credits_remaining — your plan's quota state| Variable | Default | Purpose |
|---|---|---|
CODETOIMAGE_API_KEY | – | Required. Get one at codetoimage.app/dashboard/keys |
CODETOIMAGE_API_URL | https://api.codetoimage.app | API base URL (override for dev/proxy) |
Pricing: codetoimage.app/#pricing
@codetoimage/cli — terminal/CI usageMIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.