MCP.Market

Codetoimage MCP server

by beznazwiska·io.github.beznazwiska/codetoimage-mcp-server·v0.2.0

Pixel-perfect HTML/CSS to PNG/JPG/WebP for AI agents — inline image or 24h hosted URL.

B78/100grade B
What users say
No reviews yet
Be the first
Safety scan
B78/100

full report

Adoption
New

0 stars43 downloads/wk

Reviews

Write one

Nobody has reviewed Codetoimage yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Codetoimage tools (2)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • render_html_to_image

    Render HTML (and optional CSS) into a PNG/JPEG/WebP image using codetoimage.app. Instead of raw HTML you can pass `template_id` (a template saved in the dashboard) plus `variables` to fill its {{placeholders}}, and `preset` for named platform sizes (og, instagram-story, ...). Returns the image inline so the conversation can display it directly. Use this when you need to *see* or hand back a finish

  • render_html_to_url

    Render HTML (and optional CSS) to an image and return a temporary hosted URL (instead of inline bytes). Supports the same `template_id` + `variables` + `preset` inputs as render_html_to_image. Use this when the caller needs to *reference* the image elsewhere \u2013 Instagram Graph API, OpenGraph meta tags, Slack unfurls, embedding in docs/posts. URL is valid for 24 hours.

Public scan report

scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it

no findings
  • Code scan2 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 77 days ago12/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 78/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Codetoimage compares

Against every graded Media MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
78/100
higher than 58% of 1,337 Media servers
Tools
2
the typical Media server has 7
Tools that change things
0%
typical: 4%. Fewer write tools means less an agent can break
Downloads a week
43
more than 29% of 365 Media servers with a package

What its tools let an agent do: 2 read

Install Codetoimage in Claude Code, Cursor or VS Code

Runs npx -y @codetoimage/mcp-server on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add codetoimage-mcp-server -- npx -y @codetoimage/mcp-server
Add to Cursor

What the publisher says

From the Codetoimage repository's README, as published. We do not edit it. Read it on GitHub

@codetoimage/mcp-server

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.

What you get

Two tools, no setup beyond an API key:

  • renderhtmltoimage** – returns the image inline so your agent (or you, in chat) can see it immediately. Best for "show me the rendered card", OG preview iteration, chart generation, badge mockups.
  • renderhtmltourl** – returns a temporary hosted URL (24h TTL). Best when the image needs to live somewhere external – Instagram Graph API, OpenGraph meta tags, Slack unfurls, docs/posts embeds.

Install

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.

Claude Desktop

Edit ~/Library/Application Support/Claude/claudedesktopconfig.json (macOS) or %APPDATA%\Claude\claudedesktopconfig.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 Code

claude mcp add codetoimage -s user -- npx -y @codetoimage/mcp-server

Then set the env var in your shell profile (or pass -e CODETOIMAGEAPIKEY=ctilive… in the claude mcp add call).

Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "codetoimage": {
      "command": "npx",
      "args": ["-y", "@codetoimage/mcp-server"],
      "env": {
        "CODETOIMAGE_API_KEY": "cti_live_..."
      }
    }
  }
}

Usage from an agent

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: Hello 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 my saved template 3f2a91d0-... with title 'Launch day' as an Instagram story."

Tool schemas

renderhtmlto_image

Returns: image content (base64 inline), rendered in the chat.

renderhtmlto_url

Same input schema as renderhtmlto_image. Returns a text block with:

  • url – temporary hosted image URL
  • format – final output format
  • expires_at – ISO timestamp (24h from render)
  • credits_remaining – your plan's quota state

Configuration

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Codetoimage: common questions

Is Codetoimage MCP server safe?
Mostly: it is graded B (78/100). Read the Codetoimage safety report
How do I install Codetoimage?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Codetoimage need an API key?
Yes. The registry entry asks for CODETOIMAGE_API_KEY.
Is Codetoimage maintained?
The last commit was 116 days ago (2026-07-11). The latest release is v0.2.0.
What can I use instead of Codetoimage?
Servers from other publishers that do the same job: oJo — HTML to image and PDF MCP server, Transloadit Media Processing MCP server and anymd MCP server.
How does Codetoimage compare with other Media MCP servers?
safety score 78/100 (higher than 58% of 1,337 Media servers); tools 2 (the typical Media server has 7); tools that change things 0% (typical: 4%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Codetoimage

Same job from other publishers: the closest match first, then the best rated.

  • oJo — HTML to image and PDF
    Fill an HTML template with JSON and get a hosted PDF or image link. Free previews, no key.
    A
  • Transloadit Media Processing
    Process video, audio, images and documents with Transloadit Robots. Connect by URL with OAuth.
    A
  • anymd
    Any file → clean Markdown for AI agents: PDF, Office, EPUB, HTML, images, audio/video. Local MCP.
    A
  • apimodels
    Image, video, chat and speech models with one account — local (npx) or hosted with OAuth sign-in.
    A
  • SVG to Video
    Convert animated SVG (CSS/SMIL) to video (MP4/WebM) or image (GIF/aPNG) with in-band delivery.
    A