loading…
Search for a command to run...
loading…
Enables AI coding assistants to generate, edit, and scaffold HTML UIs from natural language using Google Stitch API.
Enables AI coding assistants to generate, edit, and scaffold HTML UIs from natural language using Google Stitch API.
npm version npm downloads License: MIT Node.js Version CI
Enterprise-ready Model Context Protocol (MCP) server for Google Stitch SDK — Generate beautiful web UIs from text prompts using AI.
The Stitch MCP Server bridges your AI coding assistant (Claude, Cursor, Cline, Copilot, etc.) with Google's Stitch UI Generation API. Design, generate, and scaffold production-ready HTML components directly into your workspace using natural language.
| Feature | Description |
|---|---|
| AI UI Generation | Generate complete HTML screens from text descriptions |
| Edit and Iterate | Modify existing screens with natural language prompts |
| Design Variants | Generate multiple design variations to explore options |
| Auto-Scaffold | Save generated UI directly to your project files |
| Multi-Client Support | Works with Claude Desktop, Cursor, Cline (VS Code), and any MCP client |
| One-Click Setup | Interactive installer configures everything automatically |
Run the interactive setup wizard:
npx stitch-mcp-server setup
This will:
If you prefer manual setup, add this to your MCP config file:
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["-y", "stitch-mcp-server@latest"],
"env": {
"STITCH_API_KEY": "your-api-key-here"
}
}
}
}
.cursor/mcp.json in your workspace{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["-y", "stitch-mcp-server@latest"],
"env": {
"STITCH_API_KEY": "your-api-key-here"
}
}
}
}
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["-y", "stitch-mcp-server@latest"],
"env": {
"STITCH_API_KEY": "your-api-key-here"
}
}
}
}
| Tool | Description | Example Prompt |
|---|---|---|
create_project |
Create a new Stitch project | "Create a project called 'My App'" |
list_projects |
List all your projects | "Show my Stitch projects" |
generate_screen |
Generate a UI from description | "Create a login page with email and password" |
edit_screen |
Modify an existing screen | "Make the background dark and add a sidebar" |
generate_variants |
Create design alternatives | "Show me 3 different color schemes" |
| Tool | Description | Use Case |
|---|---|---|
get_screen_code |
Fetch HTML source code | Get the raw HTML for a generated screen |
get_screen_image |
Get screenshot URL | Preview the generated design |
generate_and_fetch_code |
Generate + fetch in one call | Streamlined workflow for quick prototyping |
scaffold_project_files |
Save HTML to local files | Export directly to src/components/ |
stitch://projects — List all projects as contextstitch://projects/{id}/screens — List screens in a projectcreate_web_app — Guided workflow to build a complete web app from idea to scaffolded filesCreate a modern landing page for a SaaS product with:
- Hero section with headline and CTA button
- Features grid with 3 columns
- Testimonials carousel
- Footer with links
Generate an admin dashboard with:
- Sidebar navigation
- Stats cards at the top
- Data table with pagination
- Dark mode theme
Take the login screen and:
- Add social login buttons (Google, GitHub)
- Make it mobile responsive
- Add a "Remember me" checkbox
# Clone the repo
git clone https://github.com/0x-Professor/Stitch-mcp-server.git
cd Stitch-mcp-server
# Install dependencies
npm install
# Build
npm run build
# Run locally
STITCH_API_KEY=your-key npm start
STITCH_API_KEY=your-key npm test
This server implements several security measures:
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)MIT - 0x-Professor
Built for the AI-assisted development community
Выполни в терминале:
claude mcp add stitch-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.