Skip to main content
Glama

@pictify/mcp-server

npm version MIT License

An MCP (Model Context Protocol) server for Pictify — generate images, GIFs, videos, and PDFs from AI agents like Claude, Cursor, and Windsurf.

One-line install. No code required. Ask your AI assistant to create OG images, social media cards, screenshots, animated GIFs, PDF invoices, certificates, and more — all from natural language.

What can it do?

  • Generate images from HTML/CSS, URLs, or reusable templates (OG images, Twitter cards, banners, product screenshots)

  • Render videos and animated GIFs from templates, including agent-authored Remotion scenes

  • Render PDFs from templates — invoices, certificates, reports, shipping labels

  • Batch generate up to 100 personalized images in one request (team badges, event passes, product catalogs)

  • Template system with 50+ expression functions for dynamic content (conditionals, string manipulation, date formatting)

Works with Claude (claude.ai + Claude Code + Claude Desktop), Cursor, Windsurf, and any MCP-compatible client.

Quick Start

Claude.ai (Web)

Use the hosted remote server — no install, no API key:

  1. Go to claude.ai > Settings > Connectors

  2. Click Add custom connector

  3. URL: https://mcp.pictify.io

  4. Click Add, then Connect — you'll log in to Pictify and approve access

Nothing goes in Advanced Settings. The connection appears under Connected apps in your Pictify settings, where you can disconnect it at any time.

Prerequisites for the local server

The npm package authenticates with an API key rather than a browser login:

  1. Sign up or log in at pictify.io

  2. Go to API Tokens

  3. Create a new token and copy it

Claude Code

claude mcp add pictify -e PICTIFY_API_KEY=your_api_key -- npx -y @pictify/mcp-server

Claude Desktop

Add to your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "pictify": {
      "command": "npx",
      "args": ["-y", "@pictify/mcp-server"],
      "env": {
        "PICTIFY_API_KEY": "your_api_key"
      }
    }
  }
}

Restart Claude Desktop after saving.

Cursor

Add to Cursor's MCP settings (Settings > MCP Servers):

{
  "mcpServers": {
    "pictify": {
      "command": "npx",
      "args": ["-y", "@pictify/mcp-server"],
      "env": {
        "PICTIFY_API_KEY": "your_api_key"
      }
    }
  }
}

Windsurf

Add to Windsurf's MCP settings:

{
  "mcpServers": {
    "pictify": {
      "command": "npx",
      "args": ["-y", "@pictify/mcp-server"],
      "env": {
        "PICTIFY_API_KEY": "your_api_key"
      }
    }
  }
}

Related MCP server: PagePixels Screenshots MCP Server

Examples

Try these prompts after connecting:

Create a social media card:

"Create a Twitter card image for my blog post titled 'Getting Started with MCP' with a blue gradient background, 1200x630."

Screenshot a website:

"Take a screenshot of stripe.com at 1440x900."

Render a template:

"List my templates and render the blog-header template with title 'Hello World'."

Batch generate images:

"Use my team-badge template to generate images for these 10 team members: ..."

Create a PDF invoice:

"Render my invoice template as a PDF with company name 'Acme Inc', amount '$1,500', and date 'March 2026'."

Available Tools

Image Generation

Tool

Description

pictify_create_image

Generate an image from HTML/CSS, a URL screenshot, or a template

pictify_get_image

Get details of a specific image by ID

Render History

Tool

Description

pictify_list_renders

List everything rendered — images, GIFs, PDFs and videos in one feed

Template Management

Tool

Description

pictify_list_templates

List saved templates with filtering and pagination

pictify_get_template

Get template details

pictify_get_template_variables

Get template variable definitions and types

pictify_render_template

Render a template with variables — images and PDFs (format: 'pdf')

pictify_multi_size_render

Render one template at several sizes in a single call

pictify_create_template

Create a new template (HTML or FabricJS)

pictify_update_template

Update an existing template

pictify_delete_template

Delete a template

pictify_validate_expression

Check a {{ }} expression parses before using it

pictify_list_expression_functions

List the functions available inside expressions

Batch Operations

Tool

Description

pictify_batch_render

Start batch render job (up to 100 items, async)

pictify_get_batch_results

Check batch job status and get result URLs

pictify_cancel_batch

Cancel a running batch job

Video

Tool

Description

pictify_list_video_templates

List your Remotion video templates

pictify_get_video_template

Get one video template in full

pictify_get_video_template_variables

Discover the variables a video template expects

pictify_render_video

Render a video template to MP4 or GIF

pictify_create_video_template

Upload your own Remotion scene as a template

pictify_generate_video_template

Generate a video template from a text prompt

pictify_update_video_template

Update a video template's name, size, duration or code

pictify_duplicate_video_template

Copy a video template

pictify_delete_video_template

Delete a video template

Configuration

Variable

Description

Default

PICTIFY_API_KEY

Your Pictify API key (required for stdio mode)

—

PICTIFY_BASE_URL

Custom API base URL

https://api.pictify.io

PICTIFY_DEBUG

Enable verbose logging to stderr

false

PICTIFY_MCP_SOURCE

Slug identifying where this MCP server was installed from (e.g. mcp.so, glama, smithery, claude_desktop_gallery, github). Sent as X-Pictify-MCP-Source on every API call so Pictify can attribute installs by directory.

unknown

PICTIFY_ANALYTICS_DISABLED

Set to 1, true or yes to send no usage analytics at all

false

Self-hosting the HTTP server adds MCP_PORT, MCP_PUBLIC_URL (the public origin, used to build the protected-resource metadata document) and PICTIFY_AUTH_SERVER_URL (the OAuth authorization server to point clients at, defaulting to https://api.pictify.io; PICTIFY_AUTH_SERVER is accepted too).

Usage analytics

This server reports tool usage to PostHog so we can see which tools agents reach for and which ones fail. Each call records the tool name, its arguments and result, timing, whether it errored, the stated intent, your client name and version, and — when an API key resolves to an account — your email and plan.

Arguments and results mean the HTML, URLs, prompts and template variables you pass in. If that isn't acceptable for your use, set PICTIFY_ANALYTICS_DISABLED=1 and nothing is sent.

Install attribution

When you submit @pictify/mcp-server to an MCP directory, set PICTIFY_MCP_SOURCE in the install snippet so we can attribute signups to that listing. Example for the mcp.so directory entry:

{
  "mcpServers": {
    "pictify": {
      "command": "npx",
      "args": ["-y", "@pictify/mcp-server"],
      "env": {
        "PICTIFY_API_KEY": "your_api_key",
        "PICTIFY_MCP_SOURCE": "mcp.so"
      }
    }
  }
}

For the hosted remote (https://mcp.pictify.io), pass the slug as a query param on the connector URL instead — the server persists it on the OAuth session:

https://mcp.pictify.io?source=mcp.so

Accepted slugs: lowercase letters, digits, ., -, _, up to 64 characters. Anything else is dropped to unknown.

Development

git clone https://github.com/pictify-io/pictify-mcp.git
cd pictify-mcp
npm install
npm run build

Test with MCP Inspector:

PICTIFY_API_KEY=your_key npm run inspector

License

MIT

Available Tools

31 tools
pictify_batch_renderAInspect

Start a batch render job to generate multiple images from a single template with different variable sets. Each variable set produces a separate image. Supports up to 100 items per batch (plan-dependent). Common use cases: generating personalized social cards for all team members, product images for an entire catalog, event badges for all attendees, certificate images for course graduates, or marketing assets with localized content. WORKFLOW: 1) Use pictify_get_template_variables to discover variables, 2) Call this tool with an array of variable sets, 3) Use pictify_get_batch_results to poll for completion and get result URLs. The job runs asynchronously — this tool returns immediately with a batchId (HTTP 202). For generating a single multi-page PDF instead, use pictify_render_multi_page_pdf.

Inputs: templateId (required), variableSets (required), format, quality, +1 more.

pictify_cancel_batchAInspect

Cancel a running batch render job. Already completed items will retain their results and URLs. Remaining unprocessed items will be skipped. Use this if you started a batch with incorrect data or no longer need the remaining results.

Inputs: batchId (required).

pictify_capture_gifAInspect

Record an animated GIF from a live web page URL by capturing its on-screen activity over time. The page is loaded in a headless browser and recorded for the specified duration. Use cases: capturing CSS/JS animations on live sites, recording interactive demos, documenting UI transitions, creating product walkthroughs. This operation takes time proportional to the duration setting (up to 30 seconds). For creating GIFs from custom HTML with CSS animations, use pictify_create_gif instead. Returns the hosted GIF URL.

Inputs: url (required), width, height, quality, +1 more.

pictify_complete_experimentAInspect

Complete an experiment by declaring a winning variant. This is a FINAL action — completed experiments cannot be restarted. After completion, all traffic is routed to the winning variant. Valid transitions: running -> completed, paused -> completed. WORKFLOW: Check pictify_get_experiment first to review per-variant impression/click counts, then declare the winner based on data.

Inputs: experimentId (required), winnerVariantId (required).

pictify_create_canvas_imageAInspect

Generate an image from FabricJS canvas JSON data with optional variable substitution. Use this when you have a FabricJS canvas design (created in the Pictify visual editor or programmatically). Templates in Pictify are built using FabricJS — this endpoint lets you render canvas JSON directly without saving it as a template first. For rendering a saved template, use pictify_render_template instead. Returns the hosted image URL (CDN-backed).

Inputs: fabricJSData (required), variables, variableDefinitions, width, +2 more.

pictify_create_experimentAInspect

Create a new experiment to test different image variants. WORKFLOW: 1) Create the experiment (starts in 'draft' status), 2) Use pictify_start_experiment to begin routing traffic, 3) Use pictify_get_experiment to monitor variant impressions/clicks, 4) Use pictify_complete_experiment to declare a winner. Requires at least 2 variants. Variant weights must sum to exactly 10000 (basis points, i.e., 5000 = 50%). The slug becomes part of the experiment URL and must be unique, 3-60 chars, lowercase alphanumeric and hyphens. For A/B tests, enable banditConfig to use Thompson Sampling auto-optimization.

Inputs: name (required), type (required), slug (required), variants (required), +9 more.

pictify_create_gifAInspect

Create an animated GIF from HTML content with CSS animations, a URL, or a template. The HTML must contain CSS @keyframes animations, transitions, or JavaScript animations to produce frames. Common use cases: animated banners, loading spinners, product demos, social media animations, animated logos, and eye-catching ad creatives. Provide ONE of: 'html' (custom animated HTML/CSS), 'url' (capture from webpage), or 'template' + 'variables' (render a saved template). For recording a GIF from a live website over a specified duration, use pictify_capture_gif instead. Returns the hosted GIF URL and animation duration. Maximum dimensions: 2000x2000 pixels.

Inputs: html, url, template, variables, +2 more.

pictify_create_imageAInspect

Generate a static image (PNG, JPEG, or WebP) from HTML/CSS content, a URL screenshot, or a template. Common use cases: Open Graph (OG) images for link previews, social media cards (Twitter/LinkedIn/Facebook), product screenshots, marketing banners, event invitations, and custom graphics. Provide ONE of: 'html' (custom HTML/CSS), 'url' (screenshot a webpage), or 'template' + 'variables' (render a saved template). Returns the hosted image URL (CDN-backed) and asset ID. Maximum dimensions: 4000x4000 pixels.

Inputs: html, url, template, variables, +4 more.

pictify_create_templateAInspect

Create a new reusable template with variable placeholders for dynamic content generation. Templates can use either FabricJS canvas data (from the Pictify visual editor) or raw HTML. Provide ONE of 'html' or 'fabricJSData' — they are mutually exclusive. For HTML templates, use {{variableName}} syntax for dynamic placeholders. Pictify's expression engine supports 50+ functions: IF/ELSE conditionals, string manipulation (toUpperCase, truncate, etc.), date formatting, math operations, and more. After creating, use pictify_render_template to render it with specific values. Returns the created template's ID.

Inputs: name (required), html, fabricJSData, width, +6 more.

pictify_delete_experimentAInspect

Soft-delete an experiment. This cannot be undone. Running experiments must be paused or completed first before deletion.

Inputs: experimentId (required).

pictify_delete_templateAInspect

Permanently delete a template. This action cannot be undone. WARNING: Any batch jobs, experiments, or bindings using this template will stop working.

Inputs: templateId (required).

pictify_get_batch_resultsAInspect

Check the status and results of a batch render job. Returns the job status (pending, processing, completed, failed, partial, cancelled), progress percentage, item counts, and image URLs for completed items. Each result includes index, success boolean, URL, dimensions, and error message (if failed). Call this after pictify_batch_render. If status is 'processing', call again after a few seconds to check for updates.

Inputs: batchId (required).

pictify_get_experimentAInspect

Get detailed information about a specific experiment. Returns the experiment's name, type, status, slug, variants with their configurations, traffic weights, impression/click counts per variant, hypothesis, goal and bandit configuration, confidence threshold, minimum run days, and timestamps. Use this to monitor experiment performance and review setup before making changes.

Inputs: experimentId (required).

pictify_get_experiment_quotaAInspect

Check experiment usage and limits for your current plan. Returns quota usage for each experiment type (ab_test, smart_link, scheduled), maximum variants allowed per experiment, and analytics retention period in days. Use this before creating experiments to check if you have quota remaining.

Inputs: no named parameters.

pictify_get_gifAInspect

Get details of a specific GIF by its UID. No authentication required. Returns the GIF URL, dimensions, and animation details.

Inputs: gifId (required).

pictify_get_imageAInspect

Get details of a specific image by its UID. Returns the image URL, dimensions, format, and creation timestamp.

Inputs: imageId (required).

pictify_get_templateAInspect

Get detailed information about a specific template by its ID. Returns the template's name, dimensions, variable definitions, tags, output format, thumbnail URL, and metadata. Use this to inspect a template before rendering.

Inputs: templateId (required).

pictify_get_template_variablesAInspect

Get the variable definitions for a template. IMPORTANT: Always call this before pictify_render_template, pictify_batch_render, pictify_render_pdf, or pictify_render_multi_page_pdf to discover what variables are available. Returns variable names, types (text, image, color, number, boolean), default values, and descriptions. Variables support Pictify's expression engine with 50+ functions for dynamic content (e.g., IF/ELSE conditionals, string manipulation, date formatting, math operations).

Inputs: templateId (required).

pictify_list_experimentsAInspect

List A/B test experiments with optional filtering by type and status. Pictify experiments let you test different image variants to optimize for engagement. Types: 'ab_test' (split traffic between variants with Thompson Sampling auto-optimization), 'smart_link' (rules-based personalization by device/geo/time/browser/referrer), 'scheduled' (time-based image swapping with cron/daily/weekly recurrence). Returns experiment names, IDs, types, statuses, variant details, and pagination info.

Inputs: type, status, page, limit.

pictify_list_gifsAInspect

List previously generated GIFs from your account with pagination. Returns GIF URLs, IDs, dimensions, animation duration, and creation timestamps. Use this to browse your GIF history or find a previously generated animation.

Inputs: limit, offset.

pictify_list_imagesAInspect

List previously generated images from your account with pagination. Returns image URLs, IDs, dimensions, format, and creation timestamps. Use this to browse your render history or find a previously generated image.

Inputs: limit, offset.

pictify_list_pdf_presetsAInspect

List all available PDF page size presets with their dimensions. Use these preset names when calling pictify_render_pdf or pictify_render_multi_page_pdf. Common presets include A4 (210x297mm), Letter (8.5x11in), Legal (8.5x14in), and more.

Inputs: no named parameters.

pictify_list_templatesAInspect

List saved templates in your Pictify account with pagination and filtering. Templates are reusable designs (built with the FabricJS visual editor or HTML) with variable placeholders for dynamic content generation. Use this to discover available templates before rendering. Returns template names, IDs, dimensions, output formats, and pagination info.

Inputs: page, limit, sort, outputFormat.

pictify_pause_experimentAInspect

Pause a running experiment, temporarily stopping traffic routing and event tracking. Valid transition: running -> paused. The experiment can be resumed later with pictify_start_experiment. Collected data is preserved.

Inputs: experimentId (required).

pictify_render_multi_page_pdfAInspect

Generate a multi-page PDF from a template by providing multiple sets of variables. Each variable set produces one page in the final document. Supports 1-100 pages per PDF. Common use cases: bulk invoice generation, certificate batches for events/courses, multi-page reports, product catalogs, and employee ID cards. WORKFLOW: Call pictify_get_template_variables first to discover available variables, then provide an array of variable sets (one per page). Returns a single combined PDF URL. For generating separate image files per set, use pictify_batch_render instead.

Inputs: templateId (required), variableSets (required), preset, title.

pictify_render_pdfAInspect

Generate a single-page PDF from a saved template with variable substitutions. Common use cases: invoices, certificates, receipts, contracts, reports, event tickets, shipping labels, and any document that needs to be generated programmatically. WORKFLOW: Call pictify_get_template_variables first to discover available variables and their types, then call this tool with the appropriate variable values. Supports standard page sizes (A4, Letter, Legal, etc.) — use pictify_list_pdf_presets to see all options. Returns the hosted PDF URL.

Inputs: templateId (required), variables, preset, title.

pictify_render_templateAInspect

Render a saved template with variable substitutions to produce an image or PDF. Templates can be FabricJS canvas designs or HTML — both are rendered the same way via this endpoint. WORKFLOW: 1) Use pictify_list_templates to find a template, 2) Use pictify_get_template_variables to discover its variables, 3) Call this tool with the variable values. Common use cases: OG images with dynamic titles, personalized social cards, product images with prices/descriptions, event banners with speaker info. For rendering the same template with many variable sets, use pictify_batch_render. Returns the hosted image URL (CDN-backed).

Inputs: templateId (required), variables, format, quality.

pictify_start_experimentAInspect

Start a draft or paused experiment, activating traffic routing to its variants. Once started, the experiment serves different image variants and tracks events. Valid transitions: draft -> running, paused -> running. If banditConfig is enabled (A/B tests), Thompson Sampling auto-optimizes traffic toward the winning variant.

Inputs: experimentId (required).

pictify_track_experiment_eventsAInspect

Track impressions, views, clicks, and conversions for experiments. Use this to send event data from your application to Pictify's analytics. Accepts a single event or an array of up to 100 events. Authentication: Uses the API key (Bearer token). For client-side tracking, use the X-Write-Key header or writeKey field instead (safe to expose in browser code). Rate limit: 1000 requests/minute per IP.

Inputs: events (required).

pictify_update_experimentAInspect

Update an existing experiment. Available fields depend on the current status:

  • draft/paused: All fields can be updated (name, slug, variants, goalConfig, banditConfig, hypothesis, etc.)

  • running: Only name, confidenceThreshold, minimumRunDays, goalConfig.destinationUrl

  • completed: Only name

If updating variants, weights must still sum to 10000.

Inputs: experimentId (required), name, slug, hypothesis, +7 more.

pictify_update_templateAInspect

Update an existing template's content, dimensions, name, or variable definitions. Only the provided fields will be updated; others remain unchanged. You can update HTML or FabricJS data — provide one or the other, not both. Note: updating content may change the available variables.

Inputs: templateId (required), name, html, fabricJSData, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 31 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap that could cause confusion. For example, pictify_create_gif and pictify_capture_gif both generate GIFs but from different sources (HTML vs. live URL), and pictify_render_template vs. pictify_create_canvas_image both render images but from saved templates vs. direct canvas JSON. The descriptions help clarify, but an agent might misselect without careful reading.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with a 'pictify_' prefix and a clear verb_noun structure (e.g., pictify_create_image, pictify_list_templates). This predictability makes it easy for an agent to understand the action and resource involved across the entire set.

    Tool Count3/5

    With 31 tools, the count feels heavy for a single server, potentially overwhelming for an agent. While the domain (image/GIF/PDF generation, templates, experiments) is broad, the tool set could be more streamlined, as some tools are highly specific (e.g., separate tools for getting quotas or listing PDF presets).

    Completeness5/5

    The tool set provides comprehensive coverage for the Pictify domain, including full CRUD for templates and experiments, rendering options (images, GIFs, PDFs, batches), and analytics tracking. There are no obvious gaps; workflows are well-supported with tools for creation, monitoring, updating, and deletion across all major features.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers