Is the Pencil MCP server safe? What it can reach
What the Pencil MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Pencil (pen.dev) is a design tool whose desktop app or IDE extension exposes an MCP server to your AI client. The client talks over stdio, and the server reaches the running app through a local socket. The docs describe no sign-in. Its execute tool edits the open .pen document, and flags can turn off save and agent spawning.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Pencil MCP server (built into the pen.dev app) | Official | active |
It runs as a local process on your machine.
How it signs in
The docs describe no authentication for the MCP server. It connects to the running pen.dev app through a local Unix socket on macOS and Linux or a named pipe on Windows, and acts on the open .pen document.
What its tools can do
| Kind | Tools |
|---|---|
| Read | get_style, read_skill, get_app_state |
| Write | execute, save, browser, spawn_agents |
| Can’t be undone | none documented |
Pencil lists tool names and availability but gives no per-tool descriptions. save is absent when the server starts with --disable_save_tool, browser appears only when the server targets the desktop app, and spawn_agents appears only with --enable_spawn_agents. The docs say to check your client’s live tool list for your installed version.
Built-in limits
| Option | What it does |
|---|---|
--disable_save_tool | Starts the server without the save tool. |
--enable_spawn_agents | spawn_agents is off unless you start the server with this flag. |
Settings, then MCP | You enable each external client under Settings, then MCP, in the pen.dev app. |
Active document check | Pencil advises opening the intended file, giving its full path in the prompt, and having the agent call get_app_state before editing. |
The risks
- execute changes the open .pen document, so an injected instruction could rewrite or empty a design you haven’t saved elsewhere.
- save writes the document to disk, so an agent that edits the wrong open file can overwrite it.
- The docs describe no file-access limits, sandboxing or permission prompts for the server.
- spawn_agents, when you enable it, lets the server start further agents, which widens what one prompt can do.
Limit it in Claude Code
Claude Code names MCP tools mcp__pencil__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"ask": [
"mcp__pencil__execute",
"mcp__pencil__save",
"mcp__pencil__browser",
"mcp__pencil__spawn_agents"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml under [mcp_servers.<name>]. Use enabled_tools to keep only the tools you need, or disabled_tools to remove the risky ones.
Checklist
- Keep the .pen file in version control or copy it before long agent sessions.
- Open only the document you want edited and have the agent confirm it with get_app_state.
- Leave spawn_agents off unless you need it.
- Start the server with --disable_save_tool if you want to review changes before they reach disk.
- Enable only the clients you use under Settings, then MCP.
Checked against the vendor documentation on November 25, 2026. Pencil AI integration docs · Pencil installation docs
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing