
Open Pencil MCP Server
Model Context Protocol server for [OpenPencil](https://openpencil.dev). It lets MCP clients such as Claude Code, Cursor, and Windsurf inspect and edit designs through the running app, reusing the same tool definitions as the built-in AI chat.
context tax
~26,273 tok/turn132 tools
security
100/100
cold start
1617 ms
freshness
Active23d ago
Our reading of Open Pencil, from the data
Open Pencil is a ai & llm tools MCP server from open-pencil.
Its 132 tools add about 26,273 tokens to every model turn, heavier than the ai & llm tools median of 1,038 tokens across 276 measured servers (measured 2026-10-23).
Maintenance is active: the last public signal was 23 days ago (2026-10-19). For comparison, 58% of ai & llm tools servers are active or maintained.
With 9,107 GitHub stars it ranks #12 of 3,169 ai & llm tools servers we index.
It runs locally on your machine over stdio.
Install Open Pencil MCP server
Install in Claude Code
claude mcp add open-pencil -- npx -y @open-pencil/mcpInstall in Cursor
{
"mcpServers": {
"open-pencil": {
"command": "npx",
"args": [
"-y",
"@open-pencil/mcp"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"open-pencil": {
"command": "npx",
"args": [
"-y",
"@open-pencil/mcp"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"open-pencil": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@open-pencil/mcp"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"open-pencil": {
"command": "npx",
"args": [
"-y",
"@open-pencil/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test @open-pencil/mcp
Context tax
Connecting this server adds ~26,273 tokens of tool definitions to every model turn (bloated, 132 tools). Measured 2026-10-23 via a sandboxed run; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $105.09 | $5.25 |
| Claude Sonnet 5.5 | $52.55 | $5.25 |
| Claude Haiku 5.5 | $2.63 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (132)
update_node619 tokUpdate properties of an existing node: position, size, opacity, corner radius, visibility, text, font.
analyze_overlaps599 tokDetect visual overlaps and layout overflows across the current page. Useful for finding content that covers footers, text that bleeds outside frames, and accidental sibling overlaps.
set_behaviour506 tokMake a main component or component set behave as a Reka UI control in preview and code, naming its own properties and slots: e.g. { kind: "switch", values: { value: "State" }, parts: { thumb: "Thumb" }, states: "Interaction" }. Variant on/off values are guessed from names like On and Off unless given as { property, on, off }. Pass null to remove it. Returns the behaviour and the required values and parts still missing; get_behaviour lists every kind with its values and parts.
create_shape483 tokCreate a shape on the canvas. Use FRAME for containers/cards, RECTANGLE for solid blocks, ELLIPSE for circles, TEXT for labels, LINE for rules and dividers, STAR for starbursts and badges, POLYGON for triangles and regular polygons, and SECTION for page sections. Use create_vector with an SVG path for arbitrary shapes.
set_layout470 tokSet auto-layout (flexbox) on a frame. Direction, alignment, spacing, padding.
create_vector449 tokCreate a vector node from SVG path data or a VectorNetwork.
render435 tokRender JSX to design nodes. Supports inline SVG paths, including open stroked paths: <svg viewBox="0 0 24 24" size={24}><path d="M2 12 L22 12" stroke="#000" fill="none" /></svg>. Use replace_id to replace a placeholder while preserving its position.
query_nodes422 tokQuery nodes using XPath selectors. Returns id, name, and type, plus text for TEXT nodes. Node types are element names (FRAME, TEXT, RECTANGLE, ELLIPSE, etc.). Attributes: id, name, width, height, x, y, visible, opacity, cornerRadius, fontSize, fontFamily, fontWeight, layoutMode, itemSpacing, paddingTop/Right/Bottom/Left, strokeWeight, rotation, locked, blendMode, text, lineHeight, letterSpacing. Examples: //FRAME — all frames //FRAME[@width < 300] — frames narrower than 300px //COMPONENT[starts-with(@name, 'Button')] — components starting with "Button" //SECTION/FRAME — direct frame children
import_svg421 tokImport raw SVG markup onto the canvas as editable layers, as pasting it into Figma does: a frame (a group when the SVG has no width, height, or viewBox) with a group per <g>, a vector per shape, and a text layer per <text>, named by their ids, and a mask group around clipped content. Supports common SVG shapes, text with <tspan> styles, inherited presentation attributes, opacity, transforms, gradients, clip paths, and internal <use> references.
set_effects419 tokSet effects on a node (drop shadow, inner shadow, blur). Pass an array or a single effect.
diff_visual417 tokPixel diff between two rendered nodes. Returns a PNG with changed pixels in red over a faded copy of the source, the changed pixel ratio, and the changed region in source-node coordinates. Use it to confirm an edit only touched the intended area.
lint405 tokCheck the design for accessibility and consistency issues: low text contrast, small touch targets and text, off-scale spacing and radius, colors that match a variable but are not bound, and structure hygiene. Findings are sorted by severity. A `fix` is safe to apply with lint_fix; `suggestions` change values and need judgment.
export_image374 tokExport nodes as a raster image (PNG, JPG, or WEBP). Returns base64-encoded image data. Use to visually verify designs.
create_slice372 tokCreate a slice (export region) on the canvas.
set_radius369 tokSet corner radius. Use individual corners for independent values.
lint_fix345 tokApply lint fixes: bind colors to the variable they match and round geometry to whole pixels. With suggestions: true, also apply each finding’s first suggestion (snap radius and spacing to the scale, raise text to the minimum size, convert groups to frames, delete hidden layers). Returns what was applied and what remains.
analyze_clusters340 tokFind repeated design patterns (potential components). Groups nodes by structural signature — type, size, and child structure.
describe337 tokSemantic description of one or more nodes. Pass `id` for a single node, or `ids` for multiple nodes in one call. Omit depth for auto — adapts to subtree size (small block → deeper, large page → shallower).
design_to_tokens325 tokWrite the document variables as a stylesheet of CSS custom properties: defaults in :root, every other mode under its condition (a selector such as [data-theme="dark"] or an @media query), aliases as var() references. The tailwind format puts tokens with a Tailwind v4 namespace (--color-*, --spacing-*, --radius-*, --text-*, …) in @theme and adds a @custom-variant per mode. The dtcg format returns W3C design token files instead: one per collection mode, text and effect styles as typography and shadow tokens, and a resolver document; collection and type filters do not apply to it. Issues lists to
bind_variable319 tokBind a variable to a node property. For fills/strokes color bindings use indexed format like "fills/0/color".
insert_icon316 tokInsert one or more vector icons onto the canvas. Pass a single name or multiple names to batch-insert into the same parent. If already cached by fetch_icons — instant, no network request.
set_layout_child312 tokConfigure auto-layout child: sizing (FIXED/HUG/FILL), grow, alignment, absolute positioning.
set_minmax307 tokSet min/max width and height constraints on a node.
arrange306 tokArrange top-level nodes on the canvas in a grid, row, or column layout. Useful after batch creation to tidy up overlapping frames.
set_font_range299 tokSet font properties for a text range.
insert_library_component297 tokInsert a reusable component from an enabled library by stable library and asset identity.
import_design_tokens295 tokImport W3C design token (DTCG) files into the document as variables, and typography and shadow tokens as text and effect styles. Pass each file with its path: a file per mode grouped by folder (as Figma exports modes), a .resolver.json with the files it refers to, or a Tokens Studio file with $themes. Collections and modes with the same names as existing ones are updated, variables are matched by name, and nothing is deleted. Returns what was added, updated, and skipped and why.
unbind_variable290 tokRemove a variable binding from a node property.
analyze_colors285 tokAnalyze color palette usage across the current page. Shows frequency, variable bindings, and optionally clusters similar colors.
add_comment280 tokLeave a comment on the canvas, as a person does with the Comment tool: pinned on a layer by ID, which it then follows, or at x, y on a page. Text may use Markdown: **bold**, *italic*, ~~strikethrough~~, [links](https://…), and - or 1. lists.
fetch_iconshttp275 tokPre-fetch icons from Iconify into cache. Batches by prefix (one HTTP request per set). Call this once with all needed icons, then use insert_icon to place them instantly. Popular sets: lucide (outline), mdi (filled), heroicons, tabler, solar, mingcute, ri (remix).
get_page_tree271 tokGet the node tree of the current page. Returns lightweight hierarchy: id, type, name, size, and text for TEXT nodes. Use depth, root_id, or node_types to keep large pages small. Use get_node for full properties of a specific node.
viewport_set264 tokSet viewport position and zoom.
search_icons248 tokSearch Iconify for icons by keyword. Accepts multiple queries — all searched in parallel. Returns results keyed by query.
set_text_properties244 tokSet text layout properties: alignment, auto-resize, text case, decoration, truncation.
path_move227 tokMove all path points by an offset.
node_move226 tokMove a node to new coordinates.
create_instance225 tokCreate an instance of a component.
get_components219 tokList reusable components from the document and enabled component libraries, optionally filtered by name.
get_node214 tokGet detailed properties of a node by ID. Use depth to limit child recursion (0 = node only, 1 = direct children, etc). Default: unlimited.
diff_create214 tokPatch that turns one node tree into another, as JSX attribute changes per node plus moved, added, and removed children. Children are matched by name. Apply it to the first tree with diff_apply.
analyze_typography207 tokAnalyze typography usage across the current page. Shows font families, sizes, weights, and their frequencies.
set_fill205 tokSet fill on a node. Solid: color="#ff0000". Linear gradient: gradient="top-bottom" or "left-right" with color (start) and color_end (end).
set_stroke205 tokSet the stroke (border) of a node.
get_selection204 tokGet the selected nodes: the place to start when the user points at layers. Returns each selected node with its direct children by default; children past the depth are counted as childCount. Use get_node or describe for deeper branches.
node_resize197 tokResize a node.
batch_update197 tokExecute multiple modifications in one call. Each operation is {id, props} where props can include: spacing, padding, padding_horizontal, padding_vertical, counter_align, sizing_horizontal, sizing_vertical, grow, name, visible, corner_radius, auto_resize (for text), direction. Runs all updates with one layout recompute.
get_comments197 tokRead the comments people left on the canvas, oldest first: each thread with its text, author, page, the layer it is pinned to, its position, replies, and whether it is resolved. Open threads only unless includeResolved is set. Use it to find review feedback to act on, then reply_to_comment and resolve_comment.
calc193 tokArithmetic calculator. ALWAYS use instead of mental math. Pass one expression or a JSON array of expressions — all evaluated in one call. Supports: + - * / % ** ( ) min max floor ceil round abs sqrt pow. Examples: "844 - 56 - 96 - 82", '["1440 * 8 / 12", "(952 - 16) / 2", "floor(390 * 0.6)"]'
close_file193 tokClose an open document tab. With unsaved changes it fails unless unsaved is "save" or "discard"; it never prompts in the app.
set_font192 tokSet font properties of a text node.
diff_apply192 tokApply a patch from diff_create, diff_show, or diff_changes. Each node must still have the patch's old values unless force is set, and nothing changes unless every hunk applies. Use dryRun to check first.
analyze_spacing184 tokAnalyze spacing values (gap, padding) across the current page. Checks grid compliance.
reply_to_comment183 tokAnswer a comment thread by ID from get_comments, for example to say what you changed. A reply reopens a resolved thread. Text may use Markdown, as in add_comment.
path_scale181 tokScale vector path from center.
export_pdf176 tokExport nodes as a vector PDF document. Text remains selectable, paths stay sharp at any zoom. Returns base64-encoded PDF data.
set_blend175 tokSet blend mode of a node.
stock_photo174 tokSearch stock photos and apply to leaf image placeholders or closed area geometry. Pass a JSON array; each item is {id, query, index?, orientation?}. Containers with content, text, lines, and structural nodes are rejected.
node_tree174 tokGet a node tree with types and hierarchy.
set_image_fill173 tokSet an image fill on a node from base64-encoded image data.
node_ancestors173 tokGet the ancestor chain from a node to the page root.
set_rotation170 tokSet rotation angle of a node in degrees.
expose_instance_swap168 tokExpose nested instances as an instance-swap slot on their component.
create_variable167 tokCreate a new variable in a collection.
combine_as_variants166 tokCombine components sharing a parent into a component set (variant set). Components named as Figma names variants, "State=On, Size=Large", get those variant properties; names like "Button/Primary" derive a Variant property from the segments after the first slash.
set_constraints161 tokSet resize constraints for a node within its parent.
export_svg160 tokExport nodes as SVG markup. Returns the SVG string.
diff_show160 tokPreview setting JSX attributes on a node, without changing it. Returns the patch, which diff_apply applies.
set_opacity156 tokSet opacity of a node (0-1).
find_nodes154 tokFind nodes by name pattern and/or type.
list_available_fonts149 tokList font families the host can render (system fonts on desktop plus any bundled fonts). Use this to discover what fonts are available to set on a text node — distinct from list_fonts which only reports families currently used in the page.
resolve_comment148 tokMark a comment thread by ID as resolved once its feedback is addressed, which hides it from the canvas and the open list; pass resolved: false to reopen it.
get_jsx146 tokGet JSX representation of a node and its children. Compact round-trip format — same syntax as the render tool.
set_variable144 tokSet the value of a variable for a specific mode.
get_behaviour143 tokRead the behaviour of a main component, component set, or variant by property and slot names, with the required values and parts still missing. Without an ID, list every behaviour kind with the values and parts it binds.
create_slot139 tokMake a frame inside a main component a slot, as Create slot does: instances can then hold their own content in it, and a behaviour can bind it as a part. Returns the slot name.
update_settings136 tokChange editor settings with a partial object shaped like get_settings output. Returns the applied patch. Credentials, models, MCP connections, storage, and tool access are not exposed.
set_text_resize132 tokSet text auto-resize mode.
save_file131 tokSave the current document to disk. If path is provided, it must be inside the configured MCP root.
diff_jsx130 tokStructural diff between two nodes in JSX format. Shows added/removed children, changed props.
find_variables130 tokFind variables by name pattern.
design_to_component_map130 tokAnalyze the document and return a structured component decomposition: components (with variants, props, instance counts), screens, and a dependency overview.
set_stroke_align129 tokSet stroke alignment of a node.
open_file126 tokOpen a .fig or .pen file from inside the configured MCP root.
new_document125 tokCreate a new empty document with an optional save path inside the configured MCP root.
reparent_node124 tokMove a node into a different parent.
path_set124 tokSet vector path data on a node. Provide a VectorNetwork JSON.
node_replace_with123 tokReplace a node with JSX content.
path_flip123 tokFlip vector path horizontally or vertically.
list_variables122 tokList all design variables (colors, numbers, strings, booleans).
boolean_subtract121 tokSubtract the second node from the first.
viewport_zoom_to_fit120 tokZoom viewport to fit specified nodes.
set_locked120 tokSet locked state of a node.
set_visible119 tokSet visibility of a node.
node_to_component119 tokConvert one or more frames/groups into components.
get_font_status118 tokReport whether fonts used on the current page are faithfully available. Returns requested faces, their loaded source, active substitutions, why an installed face could not be loaded, and affected nodes.
boolean_exclude118 tokExclude (XOR) multiple nodes.
set_text117 tokSet text content of a text node.
select_nodes117 tokSelect one or more nodes by ID.
rename_node117 tokRename a node in the layers panel.
flatten_nodes116 tokFlatten nodes into a single vector.
boolean_union116 tokUnion (combine) multiple nodes.
boolean_intersect114 tokIntersect multiple nodes.
undo114 tokUndo the newest change made through MCP or the CLI in a document. Fails if the newest change was made in the editor, so the user's work is never reverted.
group_nodes113 tokGroup selected nodes.
switch_page107 tokSwitch to a different page by name or ID.
list_fonts106 tokList fonts used in the current page.
create_component105 tokConvert a frame/group into a component.
clone_node104 tokClone (duplicate) a node.
delete_collection104 tokDelete a variable collection and all its variables.
redo104 tokRedo the newest change undone through MCP or the CLI. Fails if the newest undone change was made in the editor.
delete_node103 tokDelete a node by ID.
ungroup_node103 tokUngroup a group node.
node_bounds103 tokGet absolute bounding box of a node.
node_bindings103 tokGet variable bindings for a node.
path_get103 tokGet vector path data of a node.
node_children102 tokGet direct children of a node.
get_collection102 tokGet a variable collection by ID.
get_variable101 tokGet a variable by ID.
create_collection101 tokCreate a new variable collection.
create_page100 tokCreate a new page.
activate_document100 tokBring an open document tab to the front in the app, optionally switching it to a page.
delete_variable99 tokDelete a variable.
page_bounds92 tokGet bounding box of all objects on the current page.
get_current_page90 tokGet the current page name and ID.
viewport_get89 tokGet current viewport position and zoom level.
list_pages88 tokList all pages in the document.
list_libraries88 tokList available published component libraries.
list_collections87 tokList all variable collections.
get_settings74 tokRead editor settings: appearance (theme, language, animations, accent color), snapping, canvas rendering, recovery, AI chat, and design check preferences.
list_documents65 tokList open OpenPencil documents/tabs with their IDs, file paths, current pages, and pages.
get_codegen_prompt58 tokGet design-to-code generation guidelines. Call before generating frontend code.
Security signals
100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 23d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-19 · 23d ago · GitHub
Latest release
2026-10-14 · 27d ago · GitHub · v0.16.0
Package published
no data · npm/PyPI
Registry entry updated
no data · official registry
How it compares in AI & LLM Tools
Against the most-starred ai & llm tools servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| Open Pencil (this) | 9,107 | 132 | 26,273 | Active | local |
| Memory | 91,356 | 9 | 949 | Active | local |
| Claude Flow | 76,638 | — | not measured | Active | local |
| Next AI Draw.io | 36,318 | 16 | 4,856 | Active | local |
| Serena Agent | 30,371 | — | not measured | Active | local |
| Cua | 30,160 | — | not measured | Active | — |
FAQ
›How do I install the Open Pencil MCP server in Claude Code?
Run: claude mcp add open-pencil -- npx -y @open-pencil/mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Open Pencil require an API key?
No required environment variables are declared in its published metadata.
›Can I use Open Pencil as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Open Pencil in the official MCP registry?
No. It was indexed from npm.
›How many tokens does Open Pencil add to my context?
Its tool definitions total about 26,273 tokens, resent on every turn.
Sources and method
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-23
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to Open Pencil
Other ai & llm tools MCP servers.