Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Open Pencil MCP

MCP server by open-pencil Verified · npm:@open-pencil

Connects MCP clients such as Claude Code, Cursor and Windsurf to the running OpenPencil design editor. It lets them inspect, edit and export the document open in the app. Built for designers and developers who want AI agents to work on design files.

  • Score 94
  • 10k stars
  • 32k a week
  • MIT
  • Updated

Install Open Pencil MCP

Built from the published package, never by AI.

claude mcp add open-pencil-mcp -- npx -y @open-pencil/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Open Pencil MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the open-pencil-mcp block.

About

Open Pencil MCP is the Model Context Protocol server for OpenPencil, an open-source design editor that opens .fig, .pen and .sketch files. It lets MCP clients such as Claude Code, Cursor and Windsurf inspect and edit the document open in the running app. The server is listed in the MCP Registry as dev.openpencil/mcp.

The server reuses the same tool definitions as the built-in AI chat, which has 100+ tools. A stdio mode works with most clients, and an HTTP mode is available for scripts and CI. Setting OPENPENCIL_MCP_ROOT limits file access to one directory, which defaults to the current working directory. The OpenPencil CLI works on files without the app.

Written from the project's README and checked against it.

Tools it gives your assistant

  • get_selectionRuns the get_selection tool on the document open in the running app.
  • Inspect the open documentLets an MCP client read the document open in the running OpenPencil app.
  • Edit design nodesLets an MCP client modify the document open in the running app.
  • Export assetsExports the open document or selections to formats such as PNG, JPG, SVG and PDF.

What you need

  • OpenPencil running with the document open
  • Node.js and npm to install @open-pencil/mcp
  • An MCP client such as Claude Code, Cursor or Windsurf

Try asking

  • Export the selected frame as a PNG at 2x
  • Show the current selection in my open OpenPencil document
  • Check the colors used in my open design file

Good to know

  • The MCP server works on the document open in the running app
  • File access is limited to OPENPENCIL_MCP_ROOT when set

Security check

B
  • Runs a script automatically when the package is installedIn package.json: "postinstall":

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Open Pencil MCP

All alternatives →

Compare with Appllama, codesign or Pascal 3D Editor

Open Pencil MCP: common questions

Does the OpenPencil MCP server need the app to be running?

The MCP server connects to the running app to inspect, modify and export the open document. The OpenPencil CLI works on files without the app.

Which MCP clients can connect to it?

The source names Claude Code, Cursor and Windsurf, and says any MCP client can connect. It also gives a JSON config for other clients that runs the openpencil-mcp command.

Can the server read any folder on my computer?

File access can be limited to one directory by setting OPENPENCIL_MCP_ROOT. If it is not set, the source says the default is the current working directory.

How do I install Open Pencil MCP?

In Claude Code run claude mcp add open-pencil-mcp -- npx -y @open-pencil/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Open Pencil MCP the official server?

Open Pencil MCP is published by npm:@open-pencil from its verified domain in the official MCP Registry.

Is Open Pencil MCP free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Open Pencil MCP safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.

What are alternatives to Open Pencil MCP?

Similar MCP servers: Appllama, codesign, Pascal 3D Editor, Agent-Native Design.

Does Open Pencil MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Open Pencil MCP Install

Add to stack

Loading.