# mockit-mcp

> mockit-mcp is an open-source MCP server for ai models and llm tooling. MCP server that generates iOS-style mobile UI mockups as PNG and HTML from text prompts. It is available on CLI, API, Self-hosted, macOS, Linux and Windows.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, macOS, Linux, Windows
- **Repository:** https://github.com/karyaboyraz/mockit-mcp
- **GitHub stars:** 6
- **License:** MIT
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [ui design tools](https://ai-powered.com/categories/ui-design-tools)
- **Listing updated:** 2026-12-01

## About

Mockit-mcp lets an AI client describe a phone screen in plain language and get back a rendered image plus the underlying HTML and Tailwind source. Rendering runs through headless Chromium at an iPhone-sized viewport, so each mockup is captured at retina resolution rather than as raw markup alone.

Beyond the first draft, the server keeps a disk-backed library of screens with their metadata and parent-child links, so a design can be refined with follow-up feedback such as swapping a chart or adding a button without starting over. Generation uses either the local claude CLI session or a direct Anthropic API key, switched by a single environment variable.

It suits developers and designers who prototype mobile interfaces inside Claude Code, Cursor or Windsurf and want to hand off HTML that can later be ported to SwiftUI. The system prompt that shapes the visual style can be edited in the source.

## Features

- **Text-to-PNG rendering:** Turns a written screen brief into a 390x844 image captured at 2x scale using headless Chromium.
- **HTML and Tailwind output:** Saves the generated markup alongside each image so the layout can be inspected or reused.
- **Iterative refinement:** Accepts feedback on an existing screen and produces a new version linked to its parent.
- **Local screen library:** Stores HTML, PNG and JSON metadata per screen, with listing and filtering by project.
- **Two model backends:** Runs on the local claude CLI subscription or on the Anthropic API, selected by environment variable.
- **Stdio and HTTP transports:** Can run as a local stdio process or as a networked HTTP service protected by a bearer token.
- **Editable design voice:** The system prompt controlling the visual style lives in a single source file that can be changed.

## Good for

- Sketch a mobile dashboard or onboarding screen from a text brief during early product discovery
- Iterate on an existing mockup by requesting specific layout or content changes
- Export HTML and Tailwind source as a starting point for a SwiftUI build
- Produce consistent screen variations for a small iOS-style app inside an MCP-enabled coding session

## Tools

From the tool list in its README, going by the names, 2 of 4 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `generate_screen`: Text brief to PNG and HTML.
- `iterate_screen`: Produce a new version of an existing screen from feedback.
- `list_screens` (name suggests: reads): List screens, optionally filtered by project.
- `get_screen` (name suggests: reads): Fetch metadata or full HTML for a screen.

## FAQ

### Does mockit-mcp need an Anthropic API key?

Not with the default CLI backend, which uses an existing claude CLI login. The API backend requires an Anthropic API key.

### Where are generated screens stored?

In a designs folder by default, grouped by project, with HTML, PNG and a JSON metadata file for each screen.

### What MCP tools does mockit-mcp expose?

generate_screen, iterate_screen, list_screens and get_screen.

### What does the project cost to run?

Each generation uses roughly 9 to 15K tokens; on the API backend with Opus 4.7 the README estimates about $0.50 to $0.95 per call.

### What are the best alternatives to mockit-mcp?

The closest alternatives to mockit-mcp are mcp-playwright, Rever, Muse AI Image MCP, Image Generation MCP Server and nightmarquee-mcp.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [mcp-playwright](https://ai-powered.com/mcp/mcp-playwright): mcp-playwright is an open-source MCP server for browser automation.
- [Rever](https://ai-powered.com/mcp/rever): Rever is a freemium MCP server for ai models and llm tooling.
- [Muse AI Image MCP](https://ai-powered.com/mcp/muse-ai-image-mcp): Muse AI Image MCP is a paid MCP server for design and media.
- [Image Generation MCP Server](https://ai-powered.com/mcp/image-generation-mcp-server): Image Generation MCP Server is an open-source MCP server for design and media.
- [nightmarquee-mcp](https://ai-powered.com/mcp/nightmarquee-mcp): nightmarquee-mcp is a freemium MCP server for ai models and llm tooling.
- [MCP Drawthings](https://ai-powered.com/mcp/mcp-drawthings): MCP Drawthings is an open-source MCP server for design and media.

---
Source: https://ai-powered.com/mcp/mockit-mcp
