Stitch-MCP
Stitch-MCP
MCP-сервер (Model Context Protocol), который предоставляет возможности Google Stitch в качестве локальных инструментов путем пересылки запросов к удаленной конечной точке Stitch MCP.
Что это делает
Этот сервер:
Запускает локальный сервер инструментов MCP (stdio) с использованием
mcp.server.fastmcp.FastMCPПересылает вызовы инструментов на
https://stitch.googleapis.com/mcpТребует ключ API Stitch, предоставленный через переменную окружения
STITCH_API_KEY
Related MCP server: stitch-pro-mcp
Требования
Python 3.11+
Ключ API Stitch (
STITCH_API_KEY)
Установка
Создайте и активируйте виртуальное окружение, затем установите пакет:
python -m venv .venv
source .venv/bin/activate
pip install -e .Конфигурация
Сервер загружает переменные окружения из локального файла .env (через python-dotenv), если он существует.
Создайте файл .env:
STITCH_API_KEY=your_api_key_hereЗапуск сервера
Вы можете запустить его с помощью установленного скрипта:
stitch-mcpИли напрямую:
python server.pyВ вашем MCP-клиенте зарегистрируйте stdio-сервер, который запускает stitch-mcp (или python server.py), и убедитесь, что STITCH_API_KEY доступен в окружении этого процесса.
Доступные инструменты
Управление проектами:
list_projects(filter: Optional[str] = None)create_project(title: str)get_project(name: str)
Управление экранами:
list_screens(projectId: str)get_screen(name: str, projectId: str, screenId: str)
Генерация с помощью ИИ:
generate_screen_from_text(projectId: str, prompt: str, deviceType: str = "MOBILE", modelId: str = "GEMINI_3_FLASH")edit_screens(projectId: str, selectedScreenIds: list[str], prompt: str, deviceType: str = "DEVICE_TYPE_UNSPECIFIED", modelId: str = "GEMINI_3_FLASH")generate_variants(projectId: str, selectedScreenIds: list[str], prompt: str, variantCount: int = 3, creativeRange: str = "EXPLORE", aspects: Optional[list[str]] = None, deviceType: str = "DEVICE_TYPE_UNSPECIFIED", modelId: str = "GEMINI_3_FLASH")
Дизайн-системы:
list_design_systems(projectId: Optional[str] = None)create_design_system(...)update_design_system(...)apply_design_system(projectId: str, assetId: str, screen_instance_ids: list[str], screen_source_names: list[str])
Примечания и устранение неполадок
Если вы видите сообщение
STITCH_API_KEY environment variable not set, проверьте ваш файл.env/окружение и перезапустите процесс MCP-клиента.Некоторые операции генерации могут занимать несколько минут. Если время ожидания запроса истекло, подождите и вызовите
get_screenпозже (в этом случае сервер возвращает сообщение о тайм-ауте).
Разработка
agent.py — это небольшой вспомогательный скрипт для ручного тестирования инструментов без MCP-клиента. Обновите идентификаторы-заполнители и запустите:
python agent.pyВклад
Если у вас есть какие-либо предложения по этому проекту или скрипту, не стесняйтесь сообщить мне. И если вам понравилось, вы можете свободно использовать его для себя. (P.S. Поставьте звездочку! 😬 )
Ваш вклад здесь очень приветствуется!
Сделайте форк проекта
Скомпилируйте свою работу
Отправьте Pull Request
Авторы: Samuel Jayasingh
Последнее редактирование: 16/04/2026
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
MCP server for generating rough-draft project plans from natural-language prompts.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA universal MCP server for Google Stitch that enables AI-powered UI/UX design generation by extracting design context and metadata from existing screens. It allows users to fetch screen code and images to create consistent, styled UI components across multiple projects.652121Apache 2.0
- AlicenseAqualityDmaintenanceAn intelligent MCP server for Google Stitch that generates production-ready UI from text prompts, with auto-orchestration of design systems, WCAG accessibility, responsive breakpoints, and framework conversion (React, Vue, Svelte).17118MIT
- AlicenseNot gradedqualityDmaintenanceComprehensive MCP server for Google Stitch with 36 tools covering design-to-code workflows, including screen generation, code extraction, design analysis, and project management.965MIT
- FlicenseAqualityDmaintenanceMCP server that gives AI coding agents the ability to design UIs through Google Stitch. It generates production-ready HTML and screenshots from natural language prompts.9-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/samueljayasingh/StitchMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server