Skip to content
mcp/skillhub

Open Pencil MCP Server

by open-pencil

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.

9.1kNode.jsstdio

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/mcp

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

ModelPer 1,000 turnsWith 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 tok

    Update properties of an existing node: position, size, opacity, corner radius, visibility, text, font.

  • analyze_overlaps599 tok

    Detect 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 tok

    Make 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 tok

    Create 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 tok

    Set auto-layout (flexbox) on a frame. Direction, alignment, spacing, padding.

  • create_vector449 tok

    Create a vector node from SVG path data or a VectorNetwork.

  • render435 tok

    Render 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 tok

    Query 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 tok

    Import 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 tok

    Set effects on a node (drop shadow, inner shadow, blur). Pass an array or a single effect.

  • diff_visual417 tok

    Pixel 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 tok

    Check 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 tok

    Export nodes as a raster image (PNG, JPG, or WEBP). Returns base64-encoded image data. Use to visually verify designs.

  • create_slice372 tok

    Create a slice (export region) on the canvas.

  • set_radius369 tok

    Set corner radius. Use individual corners for independent values.

  • lint_fix345 tok

    Apply 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 tok

    Find repeated design patterns (potential components). Groups nodes by structural signature — type, size, and child structure.

  • describe337 tok

    Semantic 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 tok

    Write 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 tok

    Bind a variable to a node property. For fills/strokes color bindings use indexed format like "fills/0/color".

  • insert_icon316 tok

    Insert 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 tok

    Configure auto-layout child: sizing (FIXED/HUG/FILL), grow, alignment, absolute positioning.

  • set_minmax307 tok

    Set min/max width and height constraints on a node.

  • arrange306 tok

    Arrange 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 tok

    Set font properties for a text range.

  • insert_library_component297 tok

    Insert a reusable component from an enabled library by stable library and asset identity.

  • import_design_tokens295 tok

    Import 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 tok

    Remove a variable binding from a node property.

  • analyze_colors285 tok

    Analyze color palette usage across the current page. Shows frequency, variable bindings, and optionally clusters similar colors.

  • add_comment280 tok

    Leave 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 tok

    Pre-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 tok

    Get 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 tok

    Set viewport position and zoom.

  • search_icons248 tok

    Search Iconify for icons by keyword. Accepts multiple queries — all searched in parallel. Returns results keyed by query.

  • set_text_properties244 tok

    Set text layout properties: alignment, auto-resize, text case, decoration, truncation.

  • path_move227 tok

    Move all path points by an offset.

  • node_move226 tok

    Move a node to new coordinates.

  • create_instance225 tok

    Create an instance of a component.

  • get_components219 tok

    List reusable components from the document and enabled component libraries, optionally filtered by name.

  • get_node214 tok

    Get detailed properties of a node by ID. Use depth to limit child recursion (0 = node only, 1 = direct children, etc). Default: unlimited.

  • diff_create214 tok

    Patch 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 tok

    Analyze typography usage across the current page. Shows font families, sizes, weights, and their frequencies.

  • set_fill205 tok

    Set fill on a node. Solid: color="#ff0000". Linear gradient: gradient="top-bottom" or "left-right" with color (start) and color_end (end).

  • set_stroke205 tok

    Set the stroke (border) of a node.

  • get_selection204 tok

    Get 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 tok

    Resize a node.

  • batch_update197 tok

    Execute 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 tok

    Read 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 tok

    Arithmetic 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 tok

    Close an open document tab. With unsaved changes it fails unless unsaved is "save" or "discard"; it never prompts in the app.

  • set_font192 tok

    Set font properties of a text node.

  • diff_apply192 tok

    Apply 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 tok

    Analyze spacing values (gap, padding) across the current page. Checks grid compliance.

  • reply_to_comment183 tok

    Answer 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 tok

    Scale vector path from center.

  • export_pdf176 tok

    Export nodes as a vector PDF document. Text remains selectable, paths stay sharp at any zoom. Returns base64-encoded PDF data.

  • set_blend175 tok

    Set blend mode of a node.

  • stock_photo174 tok

    Search 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 tok

    Get a node tree with types and hierarchy.

  • set_image_fill173 tok

    Set an image fill on a node from base64-encoded image data.

  • node_ancestors173 tok

    Get the ancestor chain from a node to the page root.

  • set_rotation170 tok

    Set rotation angle of a node in degrees.

  • expose_instance_swap168 tok

    Expose nested instances as an instance-swap slot on their component.

  • create_variable167 tok

    Create a new variable in a collection.

  • combine_as_variants166 tok

    Combine 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 tok

    Set resize constraints for a node within its parent.

  • export_svg160 tok

    Export nodes as SVG markup. Returns the SVG string.

  • diff_show160 tok

    Preview setting JSX attributes on a node, without changing it. Returns the patch, which diff_apply applies.

  • set_opacity156 tok

    Set opacity of a node (0-1).

  • find_nodes154 tok

    Find nodes by name pattern and/or type.

  • list_available_fonts149 tok

    List 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 tok

    Mark 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 tok

    Get JSX representation of a node and its children. Compact round-trip format — same syntax as the render tool.

  • set_variable144 tok

    Set the value of a variable for a specific mode.

  • get_behaviour143 tok

    Read 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 tok

    Make 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 tok

    Change 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 tok

    Set text auto-resize mode.

  • save_file131 tok

    Save the current document to disk. If path is provided, it must be inside the configured MCP root.

  • diff_jsx130 tok

    Structural diff between two nodes in JSX format. Shows added/removed children, changed props.

  • find_variables130 tok

    Find variables by name pattern.

  • design_to_component_map130 tok

    Analyze the document and return a structured component decomposition: components (with variants, props, instance counts), screens, and a dependency overview.

  • set_stroke_align129 tok

    Set stroke alignment of a node.

  • open_file126 tok

    Open a .fig or .pen file from inside the configured MCP root.

  • new_document125 tok

    Create a new empty document with an optional save path inside the configured MCP root.

  • reparent_node124 tok

    Move a node into a different parent.

  • path_set124 tok

    Set vector path data on a node. Provide a VectorNetwork JSON.

  • node_replace_with123 tok

    Replace a node with JSX content.

  • path_flip123 tok

    Flip vector path horizontally or vertically.

  • list_variables122 tok

    List all design variables (colors, numbers, strings, booleans).

  • boolean_subtract121 tok

    Subtract the second node from the first.

  • viewport_zoom_to_fit120 tok

    Zoom viewport to fit specified nodes.

  • set_locked120 tok

    Set locked state of a node.

  • set_visible119 tok

    Set visibility of a node.

  • node_to_component119 tok

    Convert one or more frames/groups into components.

  • get_font_status118 tok

    Report 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 tok

    Exclude (XOR) multiple nodes.

  • set_text117 tok

    Set text content of a text node.

  • select_nodes117 tok

    Select one or more nodes by ID.

  • rename_node117 tok

    Rename a node in the layers panel.

  • flatten_nodes116 tok

    Flatten nodes into a single vector.

  • boolean_union116 tok

    Union (combine) multiple nodes.

  • boolean_intersect114 tok

    Intersect multiple nodes.

  • undo114 tok

    Undo 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 tok

    Group selected nodes.

  • switch_page107 tok

    Switch to a different page by name or ID.

  • list_fonts106 tok

    List fonts used in the current page.

  • create_component105 tok

    Convert a frame/group into a component.

  • clone_node104 tok

    Clone (duplicate) a node.

  • delete_collection104 tok

    Delete a variable collection and all its variables.

  • redo104 tok

    Redo the newest change undone through MCP or the CLI. Fails if the newest undone change was made in the editor.

  • delete_node103 tok

    Delete a node by ID.

  • ungroup_node103 tok

    Ungroup a group node.

  • node_bounds103 tok

    Get absolute bounding box of a node.

  • node_bindings103 tok

    Get variable bindings for a node.

  • path_get103 tok

    Get vector path data of a node.

  • node_children102 tok

    Get direct children of a node.

  • get_collection102 tok

    Get a variable collection by ID.

  • get_variable101 tok

    Get a variable by ID.

  • create_collection101 tok

    Create a new variable collection.

  • create_page100 tok

    Create a new page.

  • activate_document100 tok

    Bring an open document tab to the front in the app, optionally switching it to a page.

  • delete_variable99 tok

    Delete a variable.

  • page_bounds92 tok

    Get bounding box of all objects on the current page.

  • get_current_page90 tok

    Get the current page name and ID.

  • viewport_get89 tok

    Get current viewport position and zoom level.

  • list_pages88 tok

    List all pages in the document.

  • list_libraries88 tok

    List available published component libraries.

  • list_collections87 tok

    List all variable collections.

  • get_settings74 tok

    Read editor settings: appearance (theme, language, animations, accent color), snapping, canvas rendering, recovery, AI chat, and design check preferences.

  • list_documents65 tok

    List open OpenPencil documents/tabs with their IDs, file paths, current pages, and pages.

  • get_codegen_prompt58 tok

    Get 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.

  1. Last commit (default branch)

    2026-10-19 · 23d ago · GitHub

  2. Latest release

    2026-10-14 · 27d ago · GitHub · v0.16.0

  3. Package published

    no data · npm/PyPI

  4. 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.

ServerStarsToolsTokens / turnFreshnessRuns
Open Pencil (this)9,10713226,273Activelocal
Memory91,3569949Activelocal
Claude Flow76,638—not measuredActivelocal
Next AI Draw.io36,318164,856Activelocal
Serena Agent30,371—not measuredActivelocal
Cua30,160—not measuredActive—
All ai & llm tools MCP servers

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
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.

View all