# sketchy [Health: Active]

**Category:** 📊 Data Visualization  
**Repository:** https://github.com/ddkbs/sketchy  
**GitHub Stars:** 528  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/sketchy

## Description
A layout engine for AI diagrams: the model says what to draw, Sketchy figures out where. Hand-drawn, interactive, in Claude, Cursor and VS Code.

## Tools
Capabilities this server exposes over MCP:

- **sketch** — Draw a whole scene and show it. One element per line:
title <text> | subtitle <text> | dir right|down | theme paper|whiteboard|blueprint|chalk (only when the user asks for that look; the default paper suits every subject, processes too) | pack <name> (its layout rules)
group <id> <label> [in <parent>]
<id> <label> [@icon] [(cylinder|person|note|circle|rounded|text)] [in <group>] [!accent|!muted] [file=<absolute path>] [~ hover text]
<a> -> <b> [label] [!accent|!muted]   (--> dashed, <-> both ends)
label <id>[.<pin>] <text>      (photo region with spaces: label <image>.<region>: <text>)
image <id from find_image>
step <title>: <text> | <ids to highlight; edges as a->b> (by default the element's own lines glow red and arrows redraw; id:pulse|wiggle|trace|circle|underline|marker|arrow|box[:green|red|blue|orange|purple|yellow] lights or marks it another way; id:zoom also moves the camera onto it, only when the user asks for zooming in)
part <id> <type> [key=value] [caption]   (types and pins: search_parts)
wire <part.pin> -> <part.pin> [red|black|blue|green|yellow|orange|purple|gray|white]
draw <id> [WxH] [in <group>] [: title]   (free drawing on its own canvas, default 100x100, y down; the shape lines follow, later lines paint on top)
  circle [name] x,y r | ellipse [name] x,y rx ry | rect [name] x,y w h (x,y = top left)
  line|arrow|curve [name] x,y x,y … | shape|blob [name] x,y x,y x,y … (closed; curve and blob are smooth)
  arc [name] x,y r from to (degrees, 0 = right, counter-clockwise) | text [name] x,y words [size=14]
  photo [name] [x,y w h] <file path, https URL or find_image id>   (first line; without a box it fills the canvas, which takes the photo's shape: width as given, height to match, e.g. 100x75 for 4:3)
  ring [name] x,y rx [ry] [rotate=20] (pen loop around a spot) | lasso [name] x,y x,y x,y … (loose loop around any area; both red unless color=)
  object <type> [name] x,y [size] [rotate=45] [flip]   (types: person, tree, cloud, house, car, bike, gear, sun, bulb, battery, laptop, phone, server, book, heart, drop, flame, mountain, flask, rocket, lock, key) | icon [name] x,y <lucide name> [size]
  repeat i=0..7: <shape line>   (i in coordinates, {i+1} in names and labels)
  let w = 84-12*a   (names a sub-expression for the lines below; keeps long coordinates short)
  angle [name] x,y cx,cy x,y [r] (arc at the middle point; 90° gets the square) | measure [name] x,y x,y [offset] (dimension line)
  brace [name] x,y x,y [depth] (curly brace, bulging to the right of the way) | axes [name] x,y w h [ticks=10] [~ x name | y name] (x,y = origin) | grid [name] x,y w h [step]
  slider a 0..1 [= 0] [hidden]   (before the shapes using it; coordinates may use a, the reader gets a control unless hidden)
  Options: fill=<color> hatch=<color> color=<color> width=2 --dashed arrow both !accent !muted stage=2 (from 2 on; stage=2..3 only then, stage=..1 gone after 1) along=<shape name>@<0..1> move=<dx>,<dy> ~ label
  Colors: black gray white accent yellow blue red green purple orange. Coordinates may be math: 50+30*cos(1),50. Use ~ label instead of text wherever you can: Sketchy places labels clear of the drawing. $x^2$ works in labels.
  In steps: "| <draw-id>[<shape>]" circles a named shape; "<draw-id>=2" shows only shapes up to stage 2, so a picture can build up (start with stage 1). <draw-id> is the id after draw, never a fixed word: after "draw k" the steps say k=1 and k[ball]; "a=0.5" glides a slider there, which is how things move. Draw a moving shape at its start and shift it with move=40*a,0; a shape with along=wire@a rides on the shape named wire, its own x,y being an offset (usually 0,0). Every step should end in a clear picture: move things all the way, one idea per step, never stop a motion halfway.
timeline|cycle|pyramid|funnel|venn|matrix|mindmap <id> [in <group>] [: title]   (ready-made explanation shapes; entries follow, one per line, a blank line ends them; end an entry with !accent, !muted or ~ small print)
  timeline: <when> | <what>   cycle, pyramid (top first), funnel (top first): <entry>
  mindmap: <centre>, then - <branch>, -- <sub-branch>
  venn: set a Cats, set b Dogs, then a | purrs, a,b | pets   (2 or 3 sets)
  matrix: cols Option | Price | Speed, then Cheap | 1 € | slow
  In steps: "| t[2]" circles the 2nd entry, "t=2" shows only the first 2. Readers open small print by hovering or clicking an entry; a step opens the entry it circles. "timeline t scroll" keeps a long timeline (8+ entries) readable and scrolls to each step's entry.
stage <id> [plain] [: title]   (real things placed by relation, never coordinates; lines follow, a blank line ends them)
  <thing> <id> [on|in|over|above|left of|right of|next to <id>] [key=value …] [!accent] [~ label]   (things: person, tree, car, house, pot, pan, bowl, stove, oven, egg, butter, onion … "help kitchen" lists all; anything else: @<lucide icon>)
  @<n> <id> [new place | floor] [key=value …] [gone]   (from stage n on; step N shows stage N, so @2 is what step 2 changes; a new thing: @2 egg e in b)
  Props: fill=60% color=yellow (containers), heat=0..3 (stove), state=cracked|melted|chopped|fried|cooked (ingredients), lid=on, size=1.5, turn=30, fx=steam|smoke|bubble|sizzle|sparkle|stir|spin (loops). "over <id>" holds a thing tilted above another and pours into it.
  In steps: "| k[pot]" lights the pot up. Moves glide, new things are drawn in, effects keep moving.
recipe <id> [: title]   (serves 2, then one ingredient per line: 200 g flour @1, - a pinch of salt @2 ~ to taste; @n ticks it off in step n, r[2] lights the 2nd; readers get a servings slider)
molecule <id> <SMILES> [full] [in <group>] [: title]   (structural formula, e.g. CCO, c1ccccc1, CC(=O)O; full writes out every C and H; steps circle atoms as m[3], counted in SMILES order)
map <id> [world|europe|africa|asia|middle-east|north-america|south-america|americas|oceania|<country>|west,south,east,north] [: title]   (lines follow, a blank line ends them)
  <English country name> [fill=<color>|hatch=<color>|!accent] [~ label] | place [name] lat,lon [label] [!accent] | route [name:] <place|lat,lon> -> <place|lat,lon> [--dashed] [~ label]
  In steps: "| m[Germany]" or "m[United-Kingdom]" circles a country, "m[berlin]" a place or route; the map zooms to what a step circles. Readers can hover, click, zoom and pan the map themselves.
Icons: @globe, @database, @server (Lucide) or @simple-icons:react. Ids: letters, digits, _ or -.
Packs (blocks are found automatically; write "help <pack>" as the whole scene for details): general (boxes, arrows, groups, free drawings, timelines, cycles, pyramids, funnels, Venn, mind maps, trees, sequences, data structures); circuit (Arduino and breadboard circuits with real parts, pins and colored wires); data (bar, line, pie and scatter charts, function plots with sliders, comparison tables); science (structural formulas from SMILES; physics and geometry go into draw blocks with angle, measure, brace and axes); geo (world, continent and country maps with highlighted countries, places and routes); process (flowcharts and swimlane processes with start/end, tasks, decisions, input/output, events and timers); ui (app and web screens (phone, tablet, browser, desktop) in clean, ios, material or wireframe style, light or dark, with pages, modals, sheets and toasts for user flows); stage (scenes of real things (pots, eggs, people, cars) placed by on, in, over and next to; steps move, fill, heat and change them); kitchen (cooking and recipes on a stage: pot, pan, bowl, stove, oven and ingredients that fill, heat, crack, melt and get chopped); trading (candlestick charts with support, resistance, moving averages and risk/reward boxes, and order book ladders where a trade eats the asks); lab (chemistry and school experiments on a stage: glassware that fills and changes color, a burner, stands, instruments, and equation cards); inference (how AI models run: GPUs, racks and servers on a stage, and a walk through one step of a language model (tokens, embeddings, layers, attention, next-token odds, KV cache)); body (the human body with organs in place and flows between them (food, blood, air), and animal and plant cells with their organelles); workshop (DIY, woodwork, repairs and electronics on a stage: benches, hand and power tools, screws and planks, paint, an electronics bench, safety gear; things glide into place, drills spin, solder smokes).
- **edit_sketch** — Change the drawing from the last sketch call without resending it. Same line syntax as sketch; prefer this tool for follow-up changes.
A line for an id that exists replaces that element; a new id adds one. Arrows are matched by their two ends. Give the whole element line.
remove <id> | remove <a> -> <b> | remove <drawing>[<shape name or number, counted from 1>] | remove steps
Inside "draw <id>" lines, named shapes are replaced, an unnamed text with the same words is moved, others are added. Any step line replaces all steps. Other figures are replaced whole.
- **search_parts** — Search the part library (boards, sensors, displays, LEDs, …). With an exact type it lists the part's pins.
- **find_image** — Search freely licensed photos (Wikimedia Commons, Openverse; CC0, public domain, CC BY, CC BY-SA). Returns candidates with ids and thumbnails. Prefer clear, frontal photos of a single object.
- **locate** — Find named regions in a photo with the local vision model, e.g. ['USB port', 'reset button', 'A0']. Printed text is matched exactly; describe other parts visually ('silver USB connector'). Returns a preview with the boxes drawn so you can check them: rephrase queries that missed, skip wrong boxes, and if a box marks a different part than asked, you may still use its region name with corrected label text.
- **choose_model** — Show the user a picker to choose and download the local vision model used by locate (one-time setup, can be changed later).
- **download_model** — Start downloading a photo-labeling model. Used by the model picker.
- **model_status** — Report the state of the photo-labeling model. Used by the model picker.
- **get_view** — Returns the data behind a Sketchy view. Used by the viewer.
- **open_link** — Opens a file from the drawing in the user's editor. Used by the viewer.
- **save_export** — Saves an SVG, PNG or Excalidraw export of the drawing. Used by the viewer.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "sketchy": {
    "command": "npx",
    "args": ["-y","@ddkbs/sketchy"]
  }
}
```

## Documentation

## What sketchy does

sketchy converts structured drawing instructions from an AI assistant into visual explanations rendered beside the conversation or inside an MCP client. It can produce diagrams for systems, software architecture, computer science concepts, business processes, and machine-learning workflows. It also supports visual subjects that need more than boxes and arrows, including molecules from SMILES strings, geographic maps, labeled photos, electronic circuits, application screens, and animated physical scenes.

The output is interactive rather than a static image. Viewers can move through explanation steps, focus on highlighted elements, zoom maps, inspect labels, and interact with controls such as sliders. Themes include paper, whiteboard, blueprint, and chalk styles. Drawings can also be exported so maps and timelines retain their content without relying on scripts.

## How it works

The AI supplies the semantic content: what objects exist, how they relate, and which labels or actions matter. Sketchy handles the spatial work using a part library with named anchor points, automatic layout, ready-made shapes, and domain-specific packs. The model generally does not need to calculate coordinates; the exception is the smaller canvas used for free-form pictures.

Step-based explanations can emphasize a component, animate lines, move the camera, or add marks such as circles, underlines, highlighter strokes, and arrows. Stages represent real-world objects and their relationships, then update those objects between steps. They can show actions such as pouring, heating, filling, melting, chopping, or movement along a path. Recipe and kit cards can track items across steps, including a servings control for recipes.

Different packs provide symbols and drawing blocks for areas such as circuits, data, science, geography, processes, user interfaces, kitchens, workshops, labs, inference, trading, and anatomy. The general pack acts as a fallback. Custom packs can be added as JSON files containing symbols written in Sketchy’s drawing language.

## Tools and capabilities

- Build timelines, cycles, pyramids, funnels, Venn diagrams, matrices, and mind maps.
- Create flowcharts with ranked steps and swimlanes.
- Render chemistry structures with rings, double bonds, and hydrogens from SMILES.
- Draw maps with country coloring, coordinate-based places, routes, hover labels, and step-driven camera movement.
- Represent phone, tablet, browser, and desktop interfaces with widgets, pages, modals, taps, themes, and animated transitions.
- Analyze repositories into modules, folders, and data flows; clicking a box can open its file in VS Code, Cursor, Windsurf, or Zed.
- Turn Arduino and ESP32 sketches into circuits using named pins, real component graphics, routed wires, and callouts.
- Annotate freely licensed photos from Wikimedia Commons or Openverse using Florence-2 running locally; attribution is displayed.

Custom packs can be initialized with `npx -y @ddkbs/sketchy pack init road-signs`, then populated without writing code. Sketchy is available as a Claude chat skill, including the Claude phone app, and as an MCP server for Claude Code, Codex, Cursor, VS Code, and other MCP clients.

_Full upstream README: https://allmcps.com/mcp/sketchy/readme_

