Mockit MCP logo

Mockit MCP

by karyaboyraz

Generates iOS UI mockups as PNG and HTML from text prompts, with iterative refinement and local or HTTP MCP transports.

Install Mockit MCP

Run the project’s own setup commands, in order.

Setup steps from the project

karyaboyraz/mockit-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/karyaboyraz/mockit-mcp.git
    
  2. 2. Install
    cd mockit-mcp
    
  3. 3. Install
    npm install
    
  4. 4. Install
    npx playwright install chromium
    
  5. 5. Install
    npm run build
    
  6. 6. Add to Claude Code
    claude mcp add mockit -- node "$(pwd)/dist/server.js"
    

Overview

karyaboyraz/mockit-mcp MCP server turns natural-language briefs into iOS mobile UI mockups and returns both PNG images and HTML source. It uses Claude through either the local `claude` CLI or the Anthropic API, then renders the generated HTML with Playwright and Chromium. Use karyaboyraz/mockit-mcp MCP server when an agent needs screenshot-ready mobile concepts, stored design files, or prompt-driven visual iteration. The server supports stdio for local clients and HTTP for shared or containerized deployments.

Use cases

  • Generate iOS dashboard mockups from product briefs
  • Iterate on screen layouts using written feedback
  • Render HTML design concepts as PNG images
  • Organize generated screens by project
  • Serve mockup generation over HTTP for shared deployments

Key features

  • Text-to-PNG and HTML screen generation
  • Claude CLI and Anthropic API backends
  • Playwright Chromium rendering
  • Screen iteration with parent-child tracking
  • Disk-backed screen library
  • Stdio and HTTP transports

Tools4

What Mockit MCP lets your agent do. Expand a tool for its parameters.

Self-reported~73 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 110d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit7mo agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Mockit MCP works

What karyaboyraz/mockit-mcp MCP server does

karyaboyraz/mockit-mcp MCP server generates iOS-style mobile screen concepts from text descriptions. A request can describe the layout, content, visual style, and interaction elements for a screen. The result includes a PNG render and the HTML used to produce it, making the output useful for visual review and later implementation work.

The default render is an iPhone-class viewport measuring 390 by 844 CSS pixels at a device scale of 2. Generated files are persisted to disk as HTML, PNG, and JSON metadata. Projects can be used to organize screens, and each generated screen receives an identifier for later retrieval or iteration.

How it works

The MCP client calls generate_screen with a text brief and may also provide design_system and project values. Claude produces the screen markup, and Playwright launches headless Chromium to render that markup into a PNG. The generated HTML remains available alongside the image.

Two Claude backends are supported. The default cli backend invokes a locally installed and authenticated claude command, using an existing Claude Code subscription. The api backend calls the Anthropic SDK and requires an API key. ANTHROPIC_MODEL controls the model for the API backend; the documented default is claude-opus-4-7.

For refinement, iterate_screen accepts an earlier screen ID and a feedback string, such as a layout change. The new version tracks its relationship to the previous screen. list_screens can return the stored library, optionally filtered by project, while get_screen retrieves screen metadata or the complete HTML.

Setup and configuration

karyaboyraz/mockit-mcp MCP server requires Node.js 20 or newer and a one-time Playwright Chromium installation. A local setup installs the project dependencies, downloads Chromium, builds the TypeScript source, and starts dist/server.js through an MCP client.

The normal local transport is stdio. Set MCP_TRANSPORT=http to run the HTTP transport instead. HTTP uses port 7821 and binds to 127.0.0.1 by default. If the host is changed to a non-loopback interface, MCP_HTTP_TOKEN is required and clients must send it as a bearer token. The repository also documents Docker Compose deployment for shared or containerized use.

DESIGNS_DIR changes the output directory. VIEWPORT_WIDTH, VIEWPORT_HEIGHT, and DEVICE_SCALE adjust rendering dimensions. CLAUDE_CLI_PATH and CLAUDE_CLI_TIMEOUT_MS configure the CLI backend. PLAYWRIGHT_NO_SANDBOX controls Chromium sandbox behavior; disabling it reduces isolation and is intended only for containerized environments.

Tools and capabilities

  • generate_screen: Create a PNG and HTML screen from a text brief, with optional design-system and project fields.
  • iterate_screen: Generate a revised version from a screen ID and written feedback.
  • list_screens: List saved screens, optionally limited to a project.
  • get_screen: Retrieve metadata or full HTML for a particular screen.
  • Save generated HTML, PNG, and JSON metadata to a disk-backed library.
  • Serve MCP over stdio or HTTP.

Limitations and notes

The CLI backend depends on a logged-in local claude command. The API backend instead needs an Anthropic API key and incurs provider usage charges. Generation cost varies with model and screen complexity; the README estimates roughly 3K input tokens and 6–12K output tokens per generation, with output tokens making up most of the Opus cost.

Playwright requires a Chromium download of approximately 170 MB. HTTP deployments should not be exposed publicly without a strong MCP_HTTP_TOKEN, because generation requests use the configured Claude backend and may consume the associated subscription or API access.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mockit MCP

Clone the repository, run `npm install`, install Chromium with `npx playwright install chromium`, and build with `npm run build`. The server is then started with Node from `dist/server.js`.

Yes.

Not when using the default CLI backend with a logged-in `claude` command. The API backend requires `ANTHROPIC_API_KEY`.

Each generation produces a PNG mockup, the underlying HTML, and JSON metadata saved in the configured designs directory.

Yes. Set `MCP_TRANSPORT=http`; the documented default port is 7821. Non-loopback HTTP deployments require `MCP_HTTP_TOKEN`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMockit MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/karyaboyraz-mockit-mcp?style=directory)](https://allmcps.com/mcp/karyaboyraz-mockit-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/karyaboyraz-mockit-mcp"><img src="https://allmcps.com/api/badge/karyaboyraz-mockit-mcp?style=directory" alt="Mockit MCP on AllMCPs" /></a>