Skip to content
Development
MCP

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.

From plugin
frontend-craft
2256 skills14 agents11 commands5 hooks
+1

Claude Code

> /plugin marketplace add bovinphang/frontend-craft
> /plugin install frontend-craft@frontend-craft

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

Found

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 NameDescription
loadSketchByPathLoad Sketch file from file system
loadSketchByConfigLoad Sketch data from configuration object

๐Ÿ“Š Document Structure Tools

Tool NameDescriptionOptimization Features
getDocumentStructureGet complete document hierarchy๐Ÿš€ Supports field filtering and summary mode
getPageStructureGet single page structure-
listPagesList all page basic information-

๐ŸŽฏ Node Query Tools

Tool NameDescriptionToken Optimization
getNodesSummarySmart Node Summary๐Ÿ”ฅ 80-90% Token Reduction
listNodesList nodes (with filtering support)-
listNodesByPageList nodes by page-
findNodesByNameSearch nodes by name-

๐Ÿ” Detailed Information Tools

Tool NameDescription
getNodeInfoGet detailed information for single node
getMultipleNodeInfoBatch get node information (up to 100)
getNodePositionGet node position information

๐Ÿ”„ Symbol Component Tools

Tool NameDescription
getSymbolMastersGet all Symbol Masters
getSymbolInstancesGet all Symbol Instances
getSymbolMasterBySymbolIDFind Master by Symbol ID
getSymbolInstanceStylesGet instance styles (including override styles)

๐ŸŽจ Visualization Tools

Tool NameDescription
renderNodeAsBase64Render node as image (SVG/PNG)

๐Ÿ’ก Token Optimization Strategy

Data Volume Comparison

Tool/ModeToken ReductionUse Case
getNodesSummary80-90%Initial analysis, understanding overall structure
getDocumentStructure (summary mode)70-85%Quick document structure overview
getDocumentStructure (field filtering)30-50%Structural analysis
Full mode0%Detailed design requirements

Recommended Workflow

  1. ๐Ÿ” Quick Analysis: Use getNodesSummary to understand overall design structure
  2. ๐Ÿ“‹ Structure Analysis: Use field-filtered getDocumentStructure to get hierarchical relationships
  3. ๐ŸŽฏ Detailed Information: Get detailed information for specific nodes as needed
  4. ๐Ÿ‘๏ธ 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 CaseRecommended ToolToken EfficiencyDescription
Understanding overall structuregetNodesSummaryโญโญโญโญโญMost efficient overview method
Analyzing page hierarchygetDocumentStructure (filtered)โญโญโญโญStructured hierarchical information
Finding specific nodesfindNodesByNameโญโญโญPrecise search
Getting detailed informationgetMultipleNodeInfoโญโญBatch retrieval
Handling Symbol componentsgetSymbolMastersโญโญโญComponent-based design
Visual confirmationrenderNodeAsBase64โญโญ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:

  1. Check the documentation
  2. Search existing issues
  3. Create a new issue if needed

Made with โค๏ธ for the design-to-code community

@bovinphang
Ships withfrontend-craft
2256 skills14 agents6 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
22
Star history of bovinphang/frontend-craft on GitHub, a chart by star-history.com

More MCP servers from other plugins.

chrome-devtools
Auto-invoked

chrome-devtools

MCP

Connects to Chrome over the DevTools Protocol to inspect the DOM, network requests and console output.

ecc12d293k
@affaan-m@affaan-mInstall MCP
supabase

supabase

MCP

Queries a Supabase project: Postgres tables, auth users, storage and edge functions.

supabase11d114k
@supabase@supabaseInstall MCP

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.