Home / Blog / Pica: Local 2D vector design and animation MCP server (Bun,…
Tech News

Pica: Local 2D vector design and animation MCP server (Bun, SVG, raw CDP)

Pica introduced an open-source MCP server on Bun that lets local coding agents build, animate, and export SVG designs to MP4 without cloud API fees.

By Dillip Chowdary • Nov 29, 2026 • Source: github.com

Pica: Local 2D vector design and animation MCP server (Bun, SVG, raw CDP)
Image: github.com

At a glance

Product
pica MCP server
Runtime
Bun v1.2 or higher
Pricing
Free and open-source
Canvas limits
Maximum 8192px width and height
Frame rate limits
Maximum 120 frames per second
Timeline limit
Maximum 600000 milliseconds

Developer Nadeesha Fernando published pica, an open-source headless Model Context Protocol server that gives local coding assistants vector design and animation capabilities. According to github.com's report, the runtime equips tools like OpenCode, Claude Code, and Cursor with a local canvas to create, inspect, and export graphics without cloud fees. The system runs over standard input and output streams, storing projects as standalone SVG documents.

This report details the runtime architecture, tool endpoints, installation steps, visual inspection workflows, and export formats. Software engineers and automation builders can use this guide to add vector graphics manipulation to their local development workflows. The system eliminates cloud subscriptions and rate limits by running lightweight local binaries directly on host machines.

01Local vector rendering versus cloud suites

AI coding assistants often depend on proprietary cloud design platforms that enforce monthly subscription fees, or on heavy browser automation tools that consume disk storage. In contrast, pica requires only Bun and five runtime packages to generate native SVG vectors and keyframe animations. Coding models manipulate markup directly without encountering recurring service bills or remote network throttling.

Whiteboard tools restrict models to rough diagrams, while web video frameworks require bulky React dependencies and complex setup configurations. The pica server bridges this divide by pairing standard SVG elements with automated visual feedback loops. Agents review output snapshots, adjust layout bounds, and export finished assets directly through a local protocol interface.

CapabilitypicaCloud Design MCPsWhiteboard MCPsVideo-in-React Frameworks
Cost and rate limitsFree, local, unlimitedPaid plans, rate limitedFreeFree
Runtime dependencies5 packages (Bun only)Cloud account requiredModerateHeavy (node_modules bloat)
Precision 2D vectorsNative SVG + <defs>YesRough diagrams onlyDOM/Canvas
Keyframe animationsCSS @keyframes + WAAPILimitedNoCode-heavy
Vision feedback loopBuilt-in pica_inspect with grid and #id overlayLimitedNoManual
ExportsSVG, PNG, JPG, WebP, animated WebP, MP4Cloud exportsPNG/SVGMP4/WebM

02Stdio architecture and the resvg renderer

The server communicates with client applications using JSON-RPC messages routed across standard input and output streams through MCP SDK v2. All diagnostic logging routes strictly to standard error to prevent JSON message corruption between processes. Under the hood, a TypeScript file engine executes atomic file updates on target vector documents while computing instant bounding-box geometry.

Static rendering relies on the resvg library to generate fast PNG previews without launching a web browser. Dependencies like Playwright, Puppeteer, Sharp, Canvas, React, and Vite are excluded from the runtime. When animated capture or live viewing is needed, headless Chromium connects through the Chrome DevTools Protocol, piping frames into ffmpeg while an optional Hono server listens on port 4173.

03Client configuration across OpenCode and Claude

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

Running the vector server requires Bun version 1.2 or higher installed on the host operating system. While basic SVG and PNG operations run self-contained, exact geometric queries and video packaging leverage optional system binaries in the PATH. When Chromium or ffmpeg is absent, static tasks continue functioning while media-dependent tools return clear, actionable error messages.

Users can clone the git repository locally or launch the package on demand through bunx without cloning. Integration with client environments is completed using command-line arguments or by inserting server definitions into local configuration files. Testing the server setup in isolation is supported through the official Model Context Protocol inspector utility.

  1. Repository setup Clone the project repository or use bunx pica-mcp to launch the server without cloning.
  2. OpenCode integration Run opencode mcp add pica with the global flag or add the server command to opencode.json.
  3. Claude Code connection Execute claude mcp add pica pointing to the local TypeScript entry file or the bunx runner.

04Atomic DOM mutations and keyframe styling

Canvases are initialized using pica_create, which establishes canvas dimensions up to 8192 pixels alongside default frame rates and millisecond durations. Reading existing canvases via pica_read extracts element geometry, animation rules, and structural hierarchies. The tool supports fast local bounding-box calculations for shapes, SVG path commands, group unions, and text-anchor alignments.

Canvas updates occur through pica_patch, which applies atomic batch operations to individual element identifiers while rejecting script tags, inline handlers, and circular group reorders. Dynamic animation styling is managed by pica_animate, which injects rules into a dedicated animation style element. The system automatically applies fill-box transform rules and updates timeline durations based on finite animation lengths.

05Coordinate grid inspection and video generation

Agents verify visual layouts using pica_inspect, which returns a base image block alongside a concise textual summary. The tool renders static designs at timestamp zero through resvg, switching to headless Chromium when evaluating animated frames or nonzero timestamps. Canvases automatically cap rendered output widths at 1024 pixels by default to protect agent context windows from excessive token consumption.

Inspection overlays provide a temporary 100-pixel coordinate grid and element bounding-box identifiers to assist spatial positioning without altering disk files. Clean asset export is handled by pica_export, which strips all diagnostic aids before writing files to designated destination paths. Supported formats include static SVG, PNG, JPG, WebP, animated WebP, and MP4 video containers with configurable quality settings.

Note: Static SVG and PNG workflows operate without external tools, but system Chromium is required for exact bounding boxes and ffmpeg is required for video export.

Frequently asked questions

What runtime dependencies are required to run pica?

The server requires Bun version 1.2 or higher with only five runtime packages. Optional system installations of Chromium and ffmpeg enable exact bounding-box queries and video export.

Which file format does pica use for graphic designs?

The server stores all graphics as standard, standalone SVG documents using the .pica.svg extension. Elements are cleanly modified by ID without relying on proprietary project containers.

How does pica protect AI agent context windows during inspection?

Visual inspection snapshots generated by pica_inspect cap rendered image widths at 1024 pixels by default, preventing oversized visual payloads from overwhelming model context memory.

What export formats are supported by the server?

Assets can be exported locally to static SVG, PNG, JPG, and WebP, as well as animated WebP and MP4 video files.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →