Documentation Index
Fetch the complete documentation index at: https://mintlify.com/open-pencil/open-pencil/llms.txt
Use this file to discover all available pages before exploring further.
Installation
The OpenPencil MCP server is distributed as@open-pencil/mcp on npm. It provides two executables:
openpencil-mcp— stdio transport (for IDE integrations)openpencil-mcp-http— HTTP transport (for scripts and CI)
Requirements
- Bun — The MCP server requires the Bun runtime. Install from bun.sh.
Global Installation
Install the package globally to use theopenpencil-mcp and openpencil-mcp-http commands from any directory:
Using bunx (No Install)
Run the MCP server without installing by usingbunx:
Local Project Installation
If you want to lock the MCP server version in a project:Verify Installation
Test Stdio Transport
The stdio transport doesn’t print anything to stdout (it uses stdout for MCP protocol messages). To verify it’s working, check that it starts without errors:Ctrl+C to stop.
Test HTTP Transport
Start the HTTP server:Troubleshooting
Command not found: openpencil-mcp
Cause: Global bin directory not in PATH. Fix: Add Bun’s global bin to your PATH. Run:bunx @open-pencil/mcp instead of installing globally.
Bun runtime errors
Cause: The MCP server requires Bun (not Node.js). Fix: Ensure thecommand in your MCP config is openpencil-mcp (which has a #!/usr/bin/env bun shebang), not node.
Port already in use (HTTP transport)
Cause: Another process is using port 3100. Fix: Change the port with thePORT environment variable:
File access denied
Cause: HTTP transport restricts file access toOPENPENCIL_MCP_ROOT.
Fix: Set the root directory:
Version Check
Check the installed version:Updating
Update to the latest version:Next Steps
- Stdio Transport Setup — configure IDE integrations
- HTTP Transport Setup — run the HTTP server
- Tools Reference — explore available tools