sketch
Ships with frontend-craft: frontend-craft is a universal frontend plugin that brings the same opinionated engineering standards to all 15 AI coding assistants.
Claude Code
> /plugin marketplace add bovinphang/frontend-craft> /plugin install frontend-craft@frontend-craft
Codex
$ codex mcp add sketch --env SKETCH_API_KEY=YOUR_VALUE -- npx -y sketch-mcp-server --stdio
Cursor
{ "mcpServers": { "sketch": { "command": "npx", "args": [ "-y", "sketch-mcp-server", "--stdio" ], "env": { "SKETCH_API_KEY": "YOUR_VALUE" } } } }
Add it to mcp.json.
Gemini CLI
{ "mcpServers": { "sketch": { "command": "npx", "args": [ "-y", "sketch-mcp-server", "--stdio" ], "env": { "SKETCH_API_KEY": "YOUR_VALUE" } } } }
Add it to settings.json.
GitHub Copilot
$ copilot mcp add sketch --env SKETCH_API_KEY=YOUR_VALUE -- npx -y sketch-mcp-server --stdio
OpenCode
{ "mcp": { "sketch": { "type": "local", "command": [ "npx", "-y", "sketch-mcp-server", "--stdio" ], "environment": { "SKETCH_API_KEY": "YOUR_VALUE" } } } }
Add it to opencode.json.
Windsurf
{ "mcpServers": { "sketch": { "command": "npx", "args": [ "-y", "sketch-mcp-server", "--stdio" ], "env": { "SKETCH_API_KEY": "YOUR_VALUE" } } } }
Add it to mcp_config.json.
From the README
What can you do with sketch?
๐จ Sketch File Analysis
Comprehensive parsing of Sketch files, extracting nodes, styles, hierarchies, and complete information
๐ Smart Token Optimization
Up to 90% token consumption reduction, significantly lowering AI call costs
๐ Intelligent Query System
16 professional tools for efficient discovery and analysis of design elements
๐ฏ Symbol Component Support
Complete Symbol Master and Instance processing capabilities
๐ผ๏ธ Visual Rendering
Render design nodes as SVG/PNG images for AI analysis
๐ Detailed Statistical Analysis
Comprehensive statistics for documents and nodes
๐ง CLI Tool Support
Support for direct npx calls without installation
Security report
Low risk
Known flaws
None known
Signed build
No
No build provenance published
Maintained
Sep 26, 2026
Last push
Licence
MIT
Runs as
npx
On your machine
Deprecated
No
Signals from public registries, not an audit. Checked Nov 11, 2026.
sketch README
Sketch MCP Server
English | ไธญๆ
A Sketch file processing server based on Model Context Protocol (MCP), designed for AI tools to intelligently analyze Sketch design files and generate Vue component code.
โจ Core Features
- ๐จ Sketch File Analysis: Comprehensive parsing of Sketch files, extracting nodes, styles, hierarchies, and complete information
- ๐ Smart Token Optimization: Up to 90% token consumption reduction, significantly lowering AI call costs
- ๐ Intelligent Query System: 16 professional tools for efficient discovery and analysis of design elements
- ๐ฏ Symbol Component Support: Complete Symbol Master and Instance processing capabilities
- ๐ผ๏ธ Visual Rendering: Render design nodes as SVG/PNG images for AI analysis
- ๐ Detailed Statistical Analysis: Comprehensive statistics for documents and nodes
- ๐ง CLI Tool Support: Support for direct npx calls without installation
๐ฆ Installation
Global Installation (Recommended)
npm install -g sketch-mcp-server
Using npx (No Installation Required)
npx sketch-mcp-server
Local Project Installation
npm install sketch-mcp-server
๐ Quick Start
Command Line Launch
# Start MCP server (stdio mode)
sketch-mcp-server
# Or use npx
npx sketch-mcp-server
AI Tool Integration
This server is designed for the following AI development environments:
- Trae AI: As an MCP server for Sketch file analysis
- Cursor: Configure as MCP tool for design-to-code workflow
- Claude Desktop: For Sketch file processing and analysis
Trae AI Configuration Example
Add MCP server configuration in Trae AI:
{
"mcpServers": {
"sketch-mcp-server": {
"command": "npx",
"args": ["sketch-mcp-server"]
}
}
}
๐ ๏ธ Tool List
๐ File Loading Tools
| Tool Name | Description |
|---|---|
loadSketchByPath | Load Sketch file from file system |
loadSketchByConfig | Load Sketch data from configuration object |
๐ Document Structure Tools
| Tool Name | Description | Optimization Features |
|---|---|---|
getDocumentStructure | Get complete document hierarchy | ๐ Supports field filtering and summary mode |
getPageStructure | Get single page structure | - |
listPages | List all page basic information | - |
๐ฏ Node Query Tools
| Tool Name | Description | Token Optimization |
|---|---|---|
getNodesSummary | Smart Node Summary | ๐ฅ 80-90% Token Reduction |
listNodes | List nodes (with filtering support) | - |
listNodesByPage | List nodes by page | - |
findNodesByName | Search nodes by name | - |
๐ Detailed Information Tools
| Tool Name | Description |
|---|---|
getNodeInfo | Get detailed information for single node |
getMultipleNodeInfo | Batch get node information (up to 100) |
getNodePosition | Get node position information |
๐ Symbol Component Tools
| Tool Name | Description |
|---|---|
getSymbolMasters | Get all Symbol Masters |
getSymbolInstances | Get all Symbol Instances |
getSymbolMasterBySymbolID | Find Master by Symbol ID |
getSymbolInstanceStyles | Get instance styles (including override styles) |
๐จ Visualization Tools
| Tool Name | Description |
|---|---|
renderNodeAsBase64 | Render node as image (SVG/PNG) |
๐ก Token Optimization Strategy
Data Volume Comparison
| Tool/Mode | Token Reduction | Use Case |
|---|---|---|
getNodesSummary | 80-90% | Initial analysis, understanding overall structure |
getDocumentStructure (summary mode) | 70-85% | Quick document structure overview |
getDocumentStructure (field filtering) | 30-50% | Structural analysis |
| Full mode | 0% | Detailed design requirements |
Recommended Workflow
- ๐ Quick Analysis: Use
getNodesSummaryto understand overall design structure - ๐ Structure Analysis: Use field-filtered
getDocumentStructureto get hierarchical relationships - ๐ฏ Detailed Information: Get detailed information for specific nodes as needed
- ๐๏ธ Visual Verification: Render key components to confirm effects
๐ Usage Examples
Basic Workflow
// 1. Load Sketch file
{
"name": "loadSketchByPath",
"arguments": {
"path": "/path/to/design.sketch"
}
}
// 2. Get smart summary (save 80-90% tokens)
{
"name": "getNodesSummary",
"arguments": {
"groupBy": "type",
"includeStats": true,
"maxSamples": 5
}
}
// 3. Get detailed information for specific nodes
{
"name": "getMultipleNodeInfo",
"arguments": {
"nodeIds": ["button-id", "text-id"]
}
}
// 4. Render node as image
{
"name": "renderNodeAsBase64",
"arguments": {
"nodeId": "button-id",
"format": "svg"
}
}
Advanced Optimization Examples
// Use field filtering to reduce data volume
{
"name": "getDocumentStructure",
"arguments": {
"fields": ["id", "name", "type", "children"],
"maxDepth": 3,
"summaryMode": false
}
}
// Smart summary grouped by style
{
"name": "getNodesSummary",
"arguments": {
"groupBy": "style",
"includeStats": true,
"maxSamples": 3
}
}
๐ฏ Tool Selection Guide
| Use Case | Recommended Tool | Token Efficiency | Description |
|---|---|---|---|
| Understanding overall structure | getNodesSummary | โญโญโญโญโญ | Most efficient overview method |
| Analyzing page hierarchy | getDocumentStructure (filtered) | โญโญโญโญ | Structured hierarchical information |
| Finding specific nodes | findNodesByName | โญโญโญ | Precise search |
| Getting detailed information | getMultipleNodeInfo | โญโญ | Batch retrieval |
| Handling Symbol components | getSymbolMasters | โญโญโญ | Component-based design |
| Visual confirmation | renderNodeAsBase64 | โญโญ | Intuitive effect viewing |
๐ง Development Guide
Environment Requirements
- Node.js >= 16.0.0
- npm or yarn
Local Development
# Clone project
git clone https://github.com/mater1996/sketch-mcp-server.git
cd sketch-mcp-server
# Install dependencies
npm install
# Build project
npm run build
# Run tests
npm test
# Start development server
npm run start:mcp
Available Scripts
npm run build # Build TypeScript to JavaScript
npm run test # Run test suite
npm run test:coverage # Run tests and generate coverage report
npm run start # Start HTTP server
npm run start:mcp # Start MCP stdio server
npm run release # Release new version
npm run release:dry # Simulate release process
๐ API Reference
For detailed API documentation, please refer to Tool Usage Guide.
Development Standards
- Write code in TypeScript
- Follow existing code style
- Add tests for new features
- Update relevant documentation
๐ License
MIT License
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐ Support
If you encounter any issues or have questions, please:
- Check the documentation
- Search existing issues
- Create a new issue if needed
Made with โค๏ธ for the design-to-code community
More MCP servers from other plugins.
Questions about sketch.
- Which coding agents can use sketch?
- sketch works in any agent that reads an MCP config file: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf. Each agent reads it from its own file; this page names the file for each one.
- How do I add sketch to Claude Code?
- Run these in order, one at a time. 1. In Claude Code: /plugin marketplace add bovinphang/frontend-craft 2. In Claude Code: /plugin install frontend-craft@frontend-craft
- Is sketch safe to install?
- Low risk. Signals from public registries, not an audit.

