04. ์ค์ต โ ๊ณต์ Figma MCP
๋ชฉํ
๊ณต์ Figma MCP Server๋ฅผ ์ค์นํ๊ณ , ์ค์ Figma ํ์ผ์์ ์ปดํฌ๋ํธ 1๊ฐ๋ฅผ React ์ฝ๋๋ก ๋ณํํ์ฌ ์ํฌ์คํ์ด์ค์ ์ ์ฅํ๋ค.
์ค๋น๋ฌผ
โข
Figma Desktop App (Professional ์ด์ ํ๋)
โข
VS Code + GitHub Copilot (๋๋ Claude Desktop / Cursor)
โข
์ค์ต์ฉ Figma ํ์ผ (Figma Community์์ ๋ฌด๋ฃ ๋์์ธ ์์คํ
๋ณต์ ๊ถ์ฅ)
โข
Node.js 18+ (์ ํ: ๊ฒฐ๊ณผ ์ฝ๋ ์คํ์ฉ)
์ค์ต 1๋จ๊ณ โ MCP Server ํ์ฑํ
1.
Figma Desktop App ์คํ
2.
Preferences โ Enable Dev Mode MCP Server ON
3.
ํ์ฑํ ํ์ธ (์๋จ ์๋ฆผ)
์ค์ต 2๋จ๊ณ โ VS Code MCP ๋ฑ๋ก
1.
Ctrl+Shift+P โ >MCP: Add Server
2.
HTTP ์ ํ
3.
URL: http://127.0.0.1:3845/sse
4.
์ด๋ฆ: figma
์ค์ต 3๋จ๊ณ โ ์ค์ต ํ๋ก์ ํธ ์์ฑ
cd E:/์ค์ตํด๋
npm create vite@latest figma-mcp-practice -- --template react-ts
cd figma-mcp-practice
npm install
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
PowerShell
๋ณต์ฌ
tailwind.config.js:
export default {
content: ['./index.html', './src/**/*.{ts,tsx}'],
theme: { extend: {} },
plugins: [],
}
JavaScript
๋ณต์ฌ
src/index.css ์๋จ์:
@tailwind base;
@tailwind components;
@tailwind utilities;
CSS
๋ณต์ฌ
์ค์ต 4๋จ๊ณ โ Figma ์ปดํฌ๋ํธ ๋ณํ
1.
Figma Desktop App์์ Card ์ปดํฌ๋ํธ 1๊ฐ ์ ํ
2.
VS Code Copilot ์ฑํ
:
ํ์ฌ Figma์์ ์ ํ๋ ์ปดํฌ๋ํธ๋ฅผ React + TypeScript + Tailwind๋ก
src/components/Card.tsx์ ๋ง๋ค์ด์ค. Props๋ ์ถ๋ก ํด์ ๋ง๋ค์ด.
Plain Text
๋ณต์ฌ
3.
Copilot์ด MCP ํธ์ถ โ ์ฝ๋ ์๋ ์์ฑ/์ ์ฅ
์ค์ต 5๋จ๊ณ โ ๋์์ธ ํ ํฐ ์ถ์ถ
ํ๋กฌํํธ:
์ ํ๋ ์ปดํฌ๋ํธ๊ฐ ์ฌ์ฉํ๋ ๋ชจ๋ ์์/๊ฐ๊ฒฉ Variable์
src/design-system/tokens.ts ๋ก ์ถ์ถํด์ค.
๊ทธ๋ฆฌ๊ณ Card.tsx ๊ฐ hex ๋์ ํ ํฐ์ importํด์ ์ฐ๋๋ก ๋ฆฌํฉํ ๋งํด์ค.
Plain Text
๋ณต์ฌ
โข
tokens.ts ์์ฑ
โข
Card.tsx์ Tailwind ํด๋์ค๊ฐ ํ ํฐ ๊ธฐ๋ฐ(bg-[var(--color-primary)] ๋ฑ)์ผ๋ก ๋ณ๊ฒฝ
์ค์ต 6๋จ๊ณ โ ์คํ ๋ฐ ๊ฒ์ฆ
src/App.tsx์์ Card import ํ ๋ ๋:
import { Card } from './components/Card'
export default function App() {
return (
<div className="p-8">
<Card title="Hello" description="Figma MCP ์ค์ต" />
</div>
)
}
TypeScript
๋ณต์ฌ
npm run dev
PowerShell
๋ณต์ฌ
๋ธ๋ผ์ฐ์ ์ด์ด ๋์์ธ๊ณผ ์๊ฐ์ ์ผ๋ก ๋น๊ต.
์ค์ต 7๋จ๊ณ โ ํ์ด์ง ๋จ์ ๋ณํ ๋์
โข
Figma์์ ํ์ด์ง ์ ์ฒด(Frame) ์ ํ
โข
ํ๋กฌํํธ:
์ ํํ ํ์ด์ง๋ฅผ src/pages/Dashboard.tsx ๋ก ๋ง๋ค์ด์ค.
๋ฐ๋ณต๋๋ ๋ถ๋ถ์ ์ปดํฌ๋ํธ๋ก ์ถ์ถ.
Plain Text
๋ณต์ฌ
โข
๊ฒฐ๊ณผ๋ฅผ ๋ผ์ฐํฐ ๋ฑ์ ์ฐ๊ฒฐํด ๋์ ํ์ธ
ํ๊ณ ์ฒดํฌ๋ฆฌ์คํธ
MCP ๋๊ตฌ๊ฐ ์ ์ ํธ์ถ๋์๋๊ฐ?
๋์์ธ ํ ํฐ์ด ์ฝ๋์ ๋ฐ์๋์๋๊ฐ?
Figma ๋์์ธ๊ณผ ์ฝ๋ ๊ฒฐ๊ณผ์ ์๊ฐ์ ์ฐจ์ด๋ ์ด๋์ ๋ฐ์ํ๋๊ฐ?
์ด๋ค ํ๋กฌํํธ๊ฐ ๋ ์ข์ ์ฝ๋๋ฅผ ๋ง๋ค์๋๊ฐ?
Code Connect๋ฅผ ํ์ฉํ๋ฉด ๋ ๋์์ง ๋ถ๋ถ์?

