Stitch-MCP
Stitch-MCP
Un servidor MCP (Model Context Protocol) que expone las capacidades de Google Stitch como herramientas locales mediante el reenvío de solicitudes al endpoint remoto de Stitch MCP.
Qué hace esto
Este servidor:
Ejecuta un servidor de herramientas MCP local (stdio) usando
mcp.server.fastmcp.FastMCPReenvía las llamadas a herramientas a
https://stitch.googleapis.com/mcpRequiere una clave de API de Stitch proporcionada a través de la variable de entorno
STITCH_API_KEY
Related MCP server: stitch-pro-mcp
Requisitos
Python 3.11+
Una clave de API de Stitch (
STITCH_API_KEY)
Instalación
Cree y active un entorno virtual, luego instale el paquete:
python -m venv .venv
source .venv/bin/activate
pip install -e .Configuración
El servidor carga las variables de entorno desde un archivo .env local (a través de python-dotenv) si está presente.
Cree un archivo .env:
STITCH_API_KEY=your_api_key_hereEjecutar el servidor
Puede ejecutarlo a través del script instalado:
stitch-mcpO directamente:
python server.pyEn su cliente MCP, registre un servidor stdio que ejecute stitch-mcp (o python server.py) y asegúrese de que STITCH_API_KEY esté disponible en el entorno de ese proceso.
Herramientas disponibles
Gestión de proyectos:
list_projects(filter: Optional[str] = None)create_project(title: str)get_project(name: str)
Gestión de pantallas:
list_screens(projectId: str)get_screen(name: str, projectId: str, screenId: str)
Generación por IA:
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")
Sistemas de diseño:
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])
Notas y solución de problemas
Si ve
STITCH_API_KEY environment variable not set, verifique su.env/entorno y reinicie el proceso del cliente MCP.Algunas operaciones de generación pueden tardar unos minutos. Si una solicitud agota el tiempo de espera, espere y llame a
get_screenmás tarde (el servidor devuelve un mensaje de tiempo de espera en este caso).
Desarrollo
agent.py es un pequeño script auxiliar para probar manualmente las herramientas sin un cliente MCP. Actualice los IDs de marcador de posición y ejecute:
python agent.pyContribución
Si tiene alguna sugerencia para este proyecto o sobre el script, no dude en informarme. Y si le gustó, siéntase libre de usarlo para usted mismo. (P.D. ¡¡Dale una estrella también!! 😬 )
¡Sus contribuciones son muy bienvenidas aquí!
Bifurque (Fork) el proyecto
Compile su trabajo
Solicite un Pull Request
Créditos: Samuel Jayasingh
Última edición el: 16/04/2026
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 Servers
- AlicenseNot gradedqualityDmaintenanceA 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.625121Apache 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.865MIT
- 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
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
The Figma MCP server brings Figma design context directly into your AI workflow.
MCP server for interacting with the Supabase platform
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