Koskamo

codetoimage MCP

An official MCP server that allows AI agents to render HTML and CSS into pixel-perfect PNG, JPG, or WebP images. It provides two tools: one for returning inline base64 images for immediate display, and another for generating temporary hosted URLs suitable for external integrations like social media or email.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

codetoimage MCP logo, by codetoimageCommunity listingLocal stdioSource reviewed; not executedPublished by codetoimage
You need:Get an API key at codetoimage.app/dashboard/keys
Vendor documentation

What you can do with it

  • Generate dynamic Open Graph and Twitter card images
  • Create code screenshots with syntax highlighting
  • Render social media cards for various platforms
  • Produce personalized hero images for email campaigns

Source and maintenance

Community listingRegistry 0.2.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

@codetoimage/mcp-server 0.2.0

npm
@codetoimage/mcp-server package definition
{
  "version": "0.2.0",
  "transport": "stdio",
  "identifier": "@codetoimage/mcp-server",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "CODETOIMAGE_API_KEY",
      "format": "string",
      "isRequired": true,
      "description": "API key from https://codetoimage.app/dashboard/keys (starts with cti_live_…). Sandbox tier is free."
    },
    {
      "name": "CODETOIMAGE_API_URL",
      "format": "string",
      "default": "https://api.codetoimage.app",
      "description": "Override the API base URL. Defaults to https://api.codetoimage.app."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "codetoimage-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@codetoimage/mcp-server@0.2.0"
      ],
      "env": {
        "CODETOIMAGE_API_KEY": "<YOUR_CODETOIMAGE_API_KEY>",
        "CODETOIMAGE_API_URL": "<YOUR_CODETOIMAGE_API_URL>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "codetoimage-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@codetoimage/mcp-server@0.2.0"
      ],
      "env": {
        "CODETOIMAGE_API_KEY": "<YOUR_CODETOIMAGE_API_KEY>",
        "CODETOIMAGE_API_URL": "<YOUR_CODETOIMAGE_API_URL>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "codetoimage-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@codetoimage/mcp-server@0.2.0"
      ],
      "env": {
        "CODETOIMAGE_API_KEY": "<YOUR_CODETOIMAGE_API_KEY>",
        "CODETOIMAGE_API_URL": "<YOUR_CODETOIMAGE_API_URL>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "codetoimage-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@codetoimage/mcp-server@0.2.0"
      ],
      "env": {
        "CODETOIMAGE_API_KEY": "<YOUR_CODETOIMAGE_API_KEY>",
        "CODETOIMAGE_API_URL": "<YOUR_CODETOIMAGE_API_URL>"
      }
    }
  }
}

Let your agent find its tools

Find servers like codetoimage MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.