Self-hosted MCP server and gallery for AI-generated mockups.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A self-hosted gallery for AI-generated mockups β with an MCP interface. Instead of cluttering your repo, mockups get a permanent home and a clean web gallery you can browse. AI tools upload them over a direct curl call; MCP handles only the lightweight coordination β listing, metadata, tagging, and retrieval.
Token-efficient by design. MCP tool parameters flow through the model context, so sending a large HTML file via a tool call wastes tokens. Mockups MPC provides an HTTP upload endpoint (POST /api/upload) β the AI writes the file locally and curls it to the server, keeping file content entirely out of the model context. MCP tools handle lightweight operations only: listing, metadata, tagging, and deletion.

Every time an AI tool generates a mockup, there's no consistent place for it to go β so they pile up in your repo or get scattered across temp dirs, sessions lose track of them, and there's no history. Mockups MPC gives them a permanent home instead: the AI pushes the mockup to the gallery, you browse it there, and the local file gets cleaned up. One place for everything, nothing cluttering your project.
Single Docker container running a FastAPI app that serves two roles:
/mcp/ (HTTP transport) and /mcp/sse (SSE transport). AI tools connect here to send and manage mockups./. Sidebar with project list and chronological feed, main viewer with iframe/image display.data/{project_slug}/{uuid}.{ext}data/ directory next to the compose fileThere is no built-in authentication. All API endpoints and MCP tools are open to anyone who can reach the server. This is designed for trusted networks (LAN, VPN, Tailscale) or behind a reverse proxy that handles auth. If you deploy this on a public network, add authentication at the proxy layer.
| Tool | Description |
|---|---|
send_mockup | Send HTML/SVG (raw string) or PNG/JPG (base64) to the gallery. Returns a gallery URL. |
list_mockups | List mockups reverse-chronologically, optionally filtered by project. |
get_mockup | Get a specific mockup by UUID with view and gallery URLs. Curl the view_url to read the file content. |
update_mockup | Update metadata (title, description, tags) or replace content. |
delete_mockup | Delete a mockup β removes both the DB record and file on disk. |
tag_mockup | Add or remove tags on an existing mockup. |
The server stores all content permanently. AI clients can clean up local files when they're no longer needed, or retrieve content later via get_mockup.
| Route | Purpose |
|---|---|
GET / | Gallery UI |
GET /view/{id} | Raw mockup (HTML rendered, images served with correct MIME type) |
GET /api/mockups | JSON listing with limit, offset, project filter |
GET /api/mockups/{id} | Single mockup metadata |
GET /api/projects | Project list with counts |
POST /api/upload | Upload a mockup file (multipart form: file, project, title, description?, tags?) |
GET /health | Health check |
Quick start (pre-built image):
Build from source:
Production (with Traefik):
Or add to .mcp.json (project-level) or ~/.claude/.mcp.json (global):
Add to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAdd instructions to your CLAUDE.md (or equivalent) so your AI uploads mockups via curl instead of passing file content through the model context:
Add to ~/.claude/CLAUDE.md for all projects, or a project's CLAUDE.md for specific ones.
The gallery auto-seeds a Setup Guide as the first entry on fresh installs. The guide covers all configuration methods with copy-able code blocks.
Layout: Sidebar (project list + chronological feed with title filter + infinite scroll) + main viewer (iframe for HTML, img for images/SVG) + metadata bar + pop-out link.
Theme: Techno Chic Minimalist β Space Grotesk, cyan accents, zinc/neutral dark backgrounds.
The test suite covers storage, database, MCP tools, API routes, upload, and gallery.
MIT β see LICENSE.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mockups-gallery)<a href="https://allmcps.com/mcp/mockups-gallery"><img src="https://allmcps.com/api/badge/mockups-gallery?style=directory" alt="Mockups Gallery on AllMCPs" /></a>