Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Gemini Design Server

БесплатноНе проверен

Generates frontend UI code from text descriptions, screenshots, or iterative refinement using Gemini 2.5 Flash.

GitHubEmbed

Описание

Generates frontend UI code from text descriptions, screenshots, or iterative refinement using Gemini 2.5 Flash.

README

An MCP (Model Context Protocol) server that uses Gemini 2.5 Flash to generate frontend UI code. Works with Claude Code, Cursor, and any MCP-compatible client.

Tools

Tool Description
gemini_design Generate UI code from a text description
gemini_screenshot_to_code Reproduce a UI from a screenshot image
gemini_refine Iteratively refine existing code with edit instructions

Setup

1. Clone and install

git clone <repo-url>
cd mcp-design-gemini
python -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -r requirements.txt

2. Add your Gemini API key

Create a .env file in the project root:

GEMINI_API_KEY=your_api_key_here

Get a free API key at aistudio.google.com.

3. Configure in Claude Code

Add this to your Claude Code MCP settings (~/.claude/claude_code_config.json):

{
  "mcpServers": {
    "gemini-design": {
      "command": "/ABSOLUTE/PATH/TO/mcp-design-gemini/.venv/bin/python",
      "args": ["/ABSOLUTE/PATH/TO/mcp-design-gemini/server.py"]
    }
  }
}

Replace /ABSOLUTE/PATH/TO/ with the actual path on your machine.

4. Restart Claude Code

The server starts automatically when Claude Code calls any of its tools.

Usage Examples

Generate a UI:

"Design a pricing page for a SaaS product"

Convert a screenshot:

"Convert this screenshot to code: /path/to/screenshot.png"

Refine existing code:

"Change the background to dark blue and make the font bigger"

Control token budget (on gemini_design):

  • complexity: "small" — 8K tokens (button, card)
  • complexity: "medium" — 16K tokens (form, navbar)
  • complexity: "large" — 32K tokens (full page, default)
  • complexity: "xl" — 64K tokens (dashboard, multi-page)

Features

  • Image compression — Screenshots are auto-resized before sending to Gemini (saves 50-80% on input tokens)
  • Response caching — Identical gemini_design prompts return instantly from cache
  • Dynamic token budget — Match output size to component complexity
  • Iterative refinement — Edit generated code without regenerating from scratch

Requirements

from github.com/hichammoods/mcp-design-gemini

Установка Gemini Design Server

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/hichammoods/mcp-design-gemini

FAQ

Gemini Design Server MCP бесплатный?

Да, Gemini Design Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Gemini Design Server?

Нет, Gemini Design Server работает без API-ключей и переменных окружения.

Gemini Design Server — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Gemini Design Server в Claude Desktop, Claude Code или Cursor?

Открой Gemini Design Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Gemini Design Server with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development