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.
Install Open Pencil MCP
Built from the published package, never by AI.
claude mcp add open-pencil-mcp -- npx -y @open-pencil/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"open-pencil-mcp": {
"args": [
"-y",
"@open-pencil/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"open-pencil-mcp": {
"args": [
"-y",
"@open-pencil/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"open-pencil-mcp": {
"args": [
"-y",
"@open-pencil/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add open-pencil-mcp -- npx -y @open-pencil/mcp{
"mcpServers": {
"open-pencil-mcp": {
"args": [
"-y",
"@open-pencil/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add open-pencil-mcp npx -y @open-pencil/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 →Appllama gives AI assistants research on top-grossing mobile apps, plus a build bar for native-feeling Expo and React Native screens. It suits developers building mobile apps with AI assistants.
Creates, edits and exports editable designs for AI assistants through the CoDesign MCP server, built on IMG.LY's CE.SDK design engine. It suits social teams, agencies and designers who need posters, social posts, videos and print layouts.
Pascal 3D Editor lets AI agents inspect, edit, validate, and save editable 3D building scenes through an MCP server. It is aimed at architecture, engineering, construction, and operations teams. Local use needs no Pascal account.
Agent-Native Design is the Design agent in Agent-Native, an open-source TypeScript framework. It generates and refines interactive designs with agent help. The same actions serve both the agent and the UI.
Draws and edits draw.io diagrams on a live browser canvas for AI agents such as Claude Code, Cursor and VS Code. It suits people who want to draw diagrams with AI and keep editing them by hand.
Framelink MCP for Figma gives coding assistants access to your Figma files. It supplies design data so the assistant can implement designs in any framework, mainly for use with Cursor.
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.
