DeviceMock
v0.3.13D device mockups of your app, made by your coding agent from live pages or screenshots.
The DeviceMock CLI and MCP server. Your coding agent puts screenshots or pages of your app into 3D phones, foldables, tablets, and laptops, and writes the images into your project. DeviceMock also has a free editor in the browser. The MCP server and devicemock render require a DeviceMock account with access to an active Individual or Team plan. Both plans offer a 7-day free trial, which you can use once for your own plan. Cursor, VS Code, and other agents: add a local (stdio) MCP server with the command npx -y devicemock mcp. The JSON for Cursor and VS Code is on devicemock.app/connect.
Summary extracted from the README.
devicemock
The DeviceMock CLI and MCP server. Your coding agent puts screenshots or pages of your app into 3D phones, foldables, tablets, and laptops, and writes the images into your project.
DeviceMock also has a free editor in the browser. The MCP server and devicemock render require a DeviceMock account with access to an active Individual or Team plan. Both plans offer a 7-day free trial, which you can use once for your own plan.
Add the MCP server
Claude Code, in your project's folder:
claude mcp add devicemock -- npx -y devicemock mcp
Codex:
codex mcp add devicemock -- npx -y devicemock mcp
Cursor, VS Code, and other agents: add a local (stdio) MCP server with the command npx -y devicemock mcp. The JSON for Cursor and VS Code is on devicemock.app/connect.
Sign in
The first time your agent uses DeviceMock, it shows you a link and a code. Open the link, sign in, and allow the code. You can also sign in first in a terminal:
npx devicemock login
npx devicemock status shows the signed-in account and its plan. npx devicemock logout signs this computer out. The Computers settings on devicemock.app list each computer that is signed in.
Ask your agent
For example:
Make a hero image of the home page at http://localhost:3000 in an iPhone, at an angle, on a soft gradient. Export it to public/hero.png.
add_text adds a headline, a subtitle, or other text to the mockup using a font from list_fonts. The package includes variable fonts under the SIL Open Font License, with Noto fallbacks for Arabic, Hebrew, Thai, and Devanagari. Text renders without a separate font download.
App Store and Google Play sizes
list_presets lists App Store and Google Play screenshot presets and Google Play's feature graphic. Start a mockup at a preset size with new_mockup, or fit an existing mockup with resize_canvas. Devices and text keep their relative positions on the canvas. Device sizes, text sizes, text widths, and shadows scale by the smaller of the width and height scale factors. Check the preview after resizing.
At a store preset size, export_mockup writes a PNG at exactly that size without transparency. Store screenshots and feature graphics require opaque images. A transparent background becomes white. export_store_sizes writes every store preset size into a folder, with the layout fitted to each size.
Each export lists store checks as warnings. These flag words Google Play advises against, such as Free, Best, or #1, and prices the stores advise against. They also flag text covering more than 20% of a Google Play screenshot, based on its recommendation for taglines. Google Play advises against devices in the feature graphic, so those also trigger a warning.
Keep the images current
Ask the agent to save the mockup. It saves it in .devicemock/ at the project root. Then npx devicemock render makes the images again from new screenshots of your app, by hand or in CI after each deploy. In CI, set DEVICEMOCK_API_KEY in place of a sign-in. Run npx devicemock --help for all commands and options.
Live links let you update an image in a README or on another site without committing each new image. Open the mockup from a project in the DeviceMock editor, select Get a link, and create a link. Add its ID to an output of the saved mockup as liveLink. devicemock render then uploads that output to the link. See Keep mockups current.
Requirements
- Node.js 20 or later.
- DeviceMock renders in a browser on your computer. When Chrome or Edge is not installed, the MCP server downloads one the first time that it starts (about 200 MB).
npx devicemock setupdoes this step by hand and tests it.
License
This software is not open source. You may install and run it to use DeviceMock as the DeviceMock Terms allow. See LICENSE, and THIRD_PARTY_NOTICES.md for the third-party code in it.
Questions: support@devicemock.app