RendShot

MCP Server

Use RendShot with Claude, Cursor, VS Code, and other AI assistants via MCP.

MCP (Model Context Protocol) lets AI assistants use RendShot tools directly. Generate images and capture screenshots from natural language prompts.

Client Setup

Claude Desktop

Add the following to your Claude Desktop MCP configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "rendshot": {
      "command": "npx",
      "args": ["-y", "@rendshot/mcp"],
      "env": {
        "RENDSHOT_API_KEY": "rs_live_YOUR_KEY"
      }
    }
  }
}

Restart Claude Desktop after saving the configuration.

Claude Code

Register the MCP server with your API key:

terminal
claude mcp add rendshot -e RENDSHOT_API_KEY=rs_live_YOUR_KEY -- npx -y @rendshot/mcp

Cursor

Add to your project-level .cursor/mcp.json or global ~/.cursor/mcp.json:

.cursor/mcp.json
{
  "mcpServers": {
    "rendshot": {
      "command": "npx",
      "args": ["-y", "@rendshot/mcp"],
      "env": {
        "RENDSHOT_API_KEY": "rs_live_YOUR_KEY"
      }
    }
  }
}

Windsurf

Edit ~/.codeium/windsurf/mcp_config.json or open Windsurf Settings > MCP:

mcp_config.json
{
  "mcpServers": {
    "rendshot": {
      "command": "npx",
      "args": ["-y", "@rendshot/mcp"],
      "env": {
        "RENDSHOT_API_KEY": "rs_live_YOUR_KEY"
      }
    }
  }
}

VS Code

Create a .vscode/mcp.json file in your project root:

.vscode/mcp.json
{
  "servers": {
    "rendshot": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@rendshot/mcp"],
      "env": {
        "RENDSHOT_API_KEY": "rs_live_YOUR_KEY"
      }
    }
  }
}

Or install via command line:

terminal
code --add-mcp '{"name":"rendshot","command":"npx","args":["-y","@rendshot/mcp"],"env":{"RENDSHOT_API_KEY":"rs_live_YOUR_KEY"}}'

Cline

Open Cline Settings > MCP Servers > Edit Config in VS Code and add:

cline_mcp_settings.json
{
  "mcpServers": {
    "rendshot": {
      "command": "npx",
      "args": ["-y", "@rendshot/mcp"],
      "env": {
        "RENDSHOT_API_KEY": "rs_live_YOUR_KEY"
      }
    }
  }
}

Environment Variables

VariableRequiredDescription
RENDSHOT_API_KEYYesYour RendShot API key
RENDSHOT_API_URLNoAPI base URL. Defaults to https://api.rendshot.ai

Available Tools

generate_image

Render HTML/CSS, a template, or an AI-generated design from a natural language prompt. Provide one of html, template_id, or prompt. prompt + template_id is allowed as a visual style reference. prompt + html is not allowed.

ParameterTypeRequiredDescription
htmlstringYes*HTML content to render
template_idstringYes*Template ID (e.g. tpl_abc123)
promptstringYes*Natural language prompt for AI to generate a template from scratch
platformstringNoPreset (xiaohongshu, instagram_post, twitter_card, …) — influences AI layout style when using prompt
locale'zh' | 'en'NoLanguage of AI-generated text (default zh)
variablesobjectNoTemplate variables as key-value pairs (when using template_id without prompt)
cssstringNoAdditional CSS
widthnumberNoViewport width (default 1080)
heightnumberNoViewport height (default 1080)
format'png' | 'jpg'NoOutput format
qualitynumberNoImage quality (1--100)
deviceScale1 | 2 | 3NoDevice pixel ratio
fontsstring[]NoGoogle Fonts to load
timeoutnumberNoRender timeout in ms

* Provide exactly one of html, template_id, or prompt. prompt + template_id is also allowed (style reference).

When called with prompt, the tool response's structuredContent includes the AI-generated html and variables alongside the rendered image — feed those straight into create_template to save the design for reuse. See the AI Render guide for the full loop.

screenshot_url

Capture a screenshot of a public URL. Defaults to 1280 x 800.

ParameterTypeRequiredDescription
urlstringYesURL to screenshot
widthnumberNoViewport width (default 1280)
heightnumberNoViewport height (default 800)
format'png' | 'jpg'NoOutput format
qualitynumberNoImage quality (1--100)
fullPagebooleanNoCapture full scrollable page
deviceScale1 | 2 | 3NoDevice pixel ratio

list_templates

Browse available image templates. Returns template IDs, names, dimensions, and variable definitions.

ParameterTypeRequiredDescription
platformstringNoFilter by platform (e.g. twitter)
categorystringNoFilter by category
qstringNoSearch by name or description
limitnumberNoMax results, 1--50 (default 20)
cursorstringNoPagination cursor

get_template

Get detailed information about a template, including its variable definitions. Use this before generate_image to know which variables to pass.

ParameterTypeRequiredDescription
template_idstringYesTemplate ID (e.g. tpl_abc123)

create_template

Save an HTML template for reuse. Typically used after generate_image returns an AI-generated template you want to keep. Templates are created as private drafts — publish them through the web dashboard if you want them in the public gallery.

Recommended workflow:

  1. Call generate_image with a prompt to get an AI-generated design.
  2. If the assistant is happy with the result, call create_template with the returned html and variables.
  3. Use the new template_id in future generate_image calls for faster, deterministic, cheaper renders.
ParameterTypeRequiredDescription
namestringYesTemplate name, 1--100 chars
htmlstringYesHTML with {{variable}} placeholders
variablesarrayYesVariable definitions — each has key, type, label, default, optional required, maxLength, min, max, options
descriptionstringNoHuman description
platformstringNoPlatform preset
categorystringNoCategory
tagsstring[]NoUp to 10 tags
widthnumberNoWidth in pixels
heightnumberNoHeight in pixels
cssstringNoExtra CSS
fontsstring[]NoCustom fonts
visibility'public' | 'private'NoDefaults to 'private'

Example Prompts

Once the MCP server is configured, ask your AI assistant directly:

  • "Screenshot https://example.com at 1440 wide"
  • "Render this HTML as a social card image"
  • "Take a full-page screenshot of my staging site"
  • "List available templates for Twitter"
  • "Use the Social Card template with title 'Hello World'"
  • "Generate a Xiaohongshu cover for a new coffee product, then save it as a template called 'Coffee Cover'"
  • "Make me an OG image announcing the v2 launch, minimal dark style"

Next Steps

On this page