BI

blurjp/imageprepmcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

10 stars 3 forks 품질 64 트렌드 12

A Model Context Protocol (MCP) server that processes Figma designs into Claude-readable images with automatic tiling, compression, and smart cropping.

개요

A Model Context Protocol (MCP) server that processes Figma designs into Claude-readable images with automatic tiling, compression, and smart cropping. Note: The canonical source for the server lives in figma-smart-image-mcp/. The root directory only contains docs and deployment helpers. https://figma-smart-image-mcp-production.up.railway.app/ The live deployment supports - multiple users can each use their own Figma token simultaneously. - : Automatic SVG/PNG export from Figma - : Large designs automatically split into manageable tiles - : Optimized for Claude's context size limits - : Heuristic detection of UI patterns for better crops - : Each user authenticates with their own Figma token - : Reliable token storage across sessions Create or update .clauderc in your project directory: When you first use the MCP server, click in Claude. The server will start Figma OAuth automatically and return you to Claude when finished.

README

원문 README의 일부입니다. 원문 보기.

Figma Smart Image MCP Server

A Model Context Protocol (MCP) server that processes Figma designs into Claude-readable images with automatic tiling, compression, and smart cropping.

Note: The canonical source for the server lives in figma-smart-image-mcp/. The root directory only contains docs and deployment helpers.

Live Deployment

Public URL: https://figma-smart-image-mcp-production.up.railway.app/

The live deployment supports multi-tenant authentication - multiple users can each use their own Figma token simultaneously.

Features

  • Smart Export: Automatic SVG/PNG export from Figma
  • Auto Tiling: Large designs automatically split into manageable tiles
  • Compression: Optimized for Claude’s context size limits
  • Smart Crops: Heuristic detection of UI patterns for better crops
  • Multi-Tenant: Each user authenticates with their own Figma token
  • Redis-Backed: Reliable token storage across sessions

Quick Start (Using Live Deployment)

Run this command in your terminal:

claude mcp add --transport http figma-smart-image https://figma-smart-image-mcp-production.up.railway.app/mcp

That’s it! Now skip to Step 2 below.

Option B: Manual Configuration (.clauderc file)

Create or update .clauderc in your project directory:

{
  "mcpServers": {
    "figma-smart-image": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sse",
        "https://figma-smart-image-mcp-production.up.railway.app/mcp"
      ]
    }
  }
}

When you first use the MCP server, click Authenticate in Claude. The server will start Figma OAuth automatically and return you to Claude when finished. If Claude later shows Auth: not authenticated, just click Authenticate again to re-authorize.

Step 3: (Optional) Manual Token Entry

If you prefer a Personal Access Token:

  1. Get a token from Figma Settings
  2. Open https://figma-smart-image-mcp-production.up.railway.app/
  3. Enter your token and click “Connect to Figma”

Step 4: Start Using Claude

Now you can use Figma Smart Image tools in Claude:

// Ask Claude to process a Figma design
"Please extract the hero section from this Figma link:
https://www.figma.com/design/..."

How It Works

┌─────────────────┐
│  Claude Client  │
└────────┬────────┘
         │ 1. Request MCP connection
         ▼
┌─────────────────────────────┐
│  Railway Deployment         │
│  (Multi-Tenant Server)      │
└────────┬────────────────────┘
         │ 2. Returns device_code + user_code
         ▼
┌─────────────────────────────┐
│  User visits auth page      │
│  - Enters user_code         │
│  - Enters Figma token       │
└────────┬────────────────────┘
         │ 3. Token stored in Redis
         ▼
┌─────────────────────────────┐
GitHub에서 전체 README 보기

설치

npx -y @modelcontextprotocol/server-sse https://figma-smart-image-mcp-production.up.railway.app/mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "figma-smart-image": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-sse", "https://figma-smart-image-mcp-production.up.railway.app/mcp" ] } } }