Enables access and manipulation of Figma design files, including extracting layout information, rendering design nodes as images, and retrieving page structure metadata.
Provides tools for processing Sketch design files, allowing extraction of layout information, rendering of design nodes, and retrieval of page structure and metadata.
Supports parsing and processing of SVG files, with capabilities for layout information extraction and image rendering.
Vextra MCP Server
A server based on Model Context Protocol (MCP) for processing and parsing Vextra/Figma/Sketch/SVG design files.
Overview
Vextra MCP Server is a powerful design file processing tool that provides AI assistants (like Cursor) with the ability to access and manipulate design files through the MCP protocol. It supports multiple design file formats including Vextra, Figma, Sketch, and SVG.
Key Features
- 🎨 Multi-format Support: Supports
.vext
,.sketch
,.fig
,.svg
file formats - 📊 Layout Information Extraction: Retrieves detailed layout and structure information from design files
- 🖼️ Image Rendering: Renders design nodes as images
- 📋 Page Information Query: Retrieves page structure and metadata
- 🔄 Real-time Communication: Supports SSE (Server-Sent Events) and HTTP communication
- 🌐 Cursor Integration: Seamlessly integrates with Cursor AI assistant
Quick Start
Install Dependencies
Development Mode
Build Production Version
Configuration
1. Configure Cursor
Add the following MCP configuration in Cursor:
2. Server Configuration
The server starts by default at http://localhost:8080
and supports the following endpoints:
GET /sse
- SSE connection endpointPOST /messages
- HTTP message endpoint
API Tools
1. Get Vextra Data
Retrieves layout information and structure data from design files.
Parameters:
filePath
(required): Local file pathpageId
(optional): Page IDnodeId
(optional): Node IDdepth
(optional): Traversal depth limit
Examples:
2. Get Vextra Images
Renders design nodes as images.
Parameters:
filePath
(required): Local file pathpageId
(required): Page IDnodeIds
(required): Array of node IDsformat
(optional): Image format (png, jpg, svg)scale
(optional): Scale ratio
3. Get Vextra Pages Info
Retrieves page structure and metadata from files.
Parameters:
filePath
(required): Local file path
Returns:
- Page IDs and names
- Node count statistics
- Page structure overview
Usage Examples
Basic Usage
In Cursor, you can use it like this:
Advanced Usage
Project Structure
Tech Stack
- Node.js + TypeScript - Core runtime environment
- Express.js - Web server framework
- @modelcontextprotocol/sdk - MCP protocol support
- @kcaitech/vextra-core - Vextra core library
- skia-canvas - Image rendering engine
- Rollup - Build tool
Development Guide
Environment Requirements
- Node.js >= 16.0.0
- npm >= 8.0.0
Development Scripts
License
This project is licensed under the AGPL-3.0 License - see the LICENSE file for details.
Author
Related Links
If you have any questions or suggestions, please contact us through GitHub Issues.
This server cannot be installed
A server based on Model Context Protocol that processes and parses design files (Vextra/Figma/Sketch/SVG), enabling AI assistants to access and manipulate design content.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that integrates Figma design files with AI coding tools like Cursor, Windsurf, and Cline, allowing AI tools to access and understand Figma design data for generating more accurate code.Last updated -1613TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that connects AI tools and LLMs to Figma designs, enabling them to extract design data, analyze design systems, and generate development documentation.Last updated -811TypeScript
- AsecurityFlicenseAqualityA TypeScript server that implements the Model Context Protocol, enabling AI-powered design creation in Figma using natural language prompts through Cursor Agent.Last updated -59663JavaScript
- -securityAlicense-qualityA Model Context Protocol server that enables AI agents to control and operate TouchDesigner projects through creation, modification, and querying of nodes and project structures.Last updated -14569TypeScriptMIT License