Skip to content
VS Code

codetoimage mcp server for VS Code

io.github.beznazwiska/codetoimage-mcp-server

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

client:VS Code transport:stdio runtime:npm

Install codetoimage mcp server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "codetoimage-api-key",
      "description": "CODETOIMAGE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "codetoimage-api-url",
      "description": "CODETOIMAGE_API_URL",
      "password": true
    }
  ],
  "servers": {
    "codetoimage-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@codetoimage/mcp-server"
      ],
      "env": {
        "CODETOIMAGE_API_KEY": "${input:codetoimage-api-key}",
        "CODETOIMAGE_API_URL": "${input:codetoimage-api-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

codetoimage mcp server in other clients