io.github.Forge-Space/ui-mcp
Forge Space MCP server for UI and backend generation via stdio transport.
★ 1MITdevtools
Install
Config snippet generator goes here (5 client tabs)
README
<div align="center">
<a href="https://forgespace.co">
<img src="https://brand.forgespace.co/logos/wordmark.svg" alt="Forge Space" height="48">
</a>
<h1>@forgespace/ui-mcp</h1>
<p>AI-driven UI and backend code generation via Model Context Protocol. 22 tools, 5 frameworks, brand-aware, npm-published, and MCP Registry-ready.</p>
</div>
[](https://www.npmjs.com/package/@forgespace/ui-mcp)
[](https://github.com/Forge-Space/ui-mcp/actions/workflows/ci.yml)
[](https://github.com/Forge-Space/ui-mcp)
[](https://opensource.org/licenses/MIT)
[](https://www.typescriptlang.org/)
[](https://modelcontextprotocol.io)
[](https://nodejs.org/)
Part of the [Forge Space](https://github.com/Forge-Space) ecosystem.

## Architecture
`@forgespace/ui-mcp` is a thin protocol adapter. All AI/generation logic lives
in [`@forgespace/siza-gen`](https://github.com/Forge-Space/siza-gen):
```
@forgespace/ui-mcp (~355 KB) @forgespace/siza-gen (~1.8 MB)
├── src/index.ts (MCP server) ├── ml/ (embeddings, quality, training)
├── tools/ (22 tool defs) ├── generators/ (react, vue, angular, svelte, html)
├── services/ (figma, analysis) ├── registry/ (502 snippets, compositions, packs)
├── resources/ (MCP resources) ├── feedback/ (self-learning, pattern promotion)
└── lib/ (browser, image) └── quality/ (anti-generic rules, diversity)
```
## Quick Start
```bash
# NPX (instant)
npx -y @forgespace/ui-mcp@latest
# Global install
npm install -g @forgespace/ui-mcp && forgespace-ui-mcp
# Docker
docker build -t forgespace-ui-mcp . && docker run --rm -i forgespace-ui-mcp
```
### IDE Integration
Add to your MCP configuration (Claude Code, Windsurf, Cursor, VS Code):
```json
{
"mcpServers": {
"forgespace-ui-mcp": {
"command": "npx",
"args": ["-y", "@forgespace/ui-mcp@latest"],
"env": {
"FIGMA_ACCESS_TOKEN": "your_token_here"
}
}
}
}
```
## Tools
| Tool | Category | Description |
| ----------------------------- | -------- | ------------------------------------------------------------------------------------------ |
| `scaffold_full_application` | Code | Full project boilerplate (React/Next.js/Vue/Angular/HTML + Tailwind) |
| `generate_ui_component` | Code | UI components with style audit, supports shadcn/ui, Radix, Headless UI, Material, PrimeVue |
| `generate_form` | Code | Production forms with Zod/Yup validation, multi-step flows, accessible markup |
| `generate_page_template` | Code | Pre-built pages (landing, dashboard, auth, pricing, CRUD) |
| `generate_prototype` | Design | Interactive HTML prototypes with navigation |
| `generate_design_image` | Design | SVG/PNG mockups of UI screens |
| `image_to_component` | Code | Screenshot/wireframe to framework-specific component |
| `refine_component` | Code | Improve components via natural language feedback |
| `generate_api_route` | Backend | API routes with validation, auth, and error handling |
| `generate_backend_module` | Backend | Full feature modules with routes, services, middleware |
| `scaffold_backend` | Backend | Complete backend projects with auth, DB, monitoring |
| `generate_from_template_pack` | Code | Multi-page apps from curated packs (SaaS, Landing, AI Chat) |
| `figma_context_parser` | Context | Read Figma files, extract tokens, map to Tailwind |
| `figma_push_variables` | Design | Write design tokens back to Figma |
| `fetch_design_inspiration` | Context | Extract visual metadata from URLs |
| `analyze_design_references` | Context | Analyze design references, detect patterns |
| `analyze_design_image` | ML