homescreen-mcp
This MCP server lets an AI assistant read, edit, organize, preview, and safely apply an iPhone/iPad Home Screen layout.
Read the connected phone’s Home Screen and start a draft.
Inspect the draft, find apps, get icon colors/images, and render an HTML preview.
Rearrange apps, widgets, folders, dock, pages, and App Library membership.
Create/rename/dissolve folders and file loose apps into folders.
Sort by color, A–Z, folder contents, App Store category, or app usage.
Place items at exact grid spots, create gaps, close gaps, and swap items.
Analyze device/Screen Time usage and optimize page placement by usage.
Insert, move, delete, or remove empty pages and folders.
Undo, redo, and reset draft edits.
Diff changes, get an apply token, and apply only with explicit approval.
List backups and restore a previous layout.
Reads and writes iPhone Home Screen layouts over USB, enabling tools to rearrange apps, widgets, folders, dock, and App Library items; sort apps; preserve widget settings; and apply, verify, and restore layouts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@homescreen-mcp organize my apps by color"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Homescreen
Arrange your iPhone or iPad Home Screen from your Mac. Drag and drop with your real icons, sort by color or by how much you use each app, keep App Library apps where they belong, then apply the layout over USB. You can also let an AI assistant do the arranging through MCP.
Free and open source. Runs entirely on your Mac. No account, no server, no jailbreak.
Features
Mac app: one download, nothing to install. It finds connected iPhones and iPads, and keeps a separate draft and backups for each.
Drag-and-drop editor on the device's real grid (4×6 on iPhone; iPads report their own, e.g. 5×6): real icons, widgets at their real sizes, folders (several pages each), the dock, and page add/move/delete.
Gaps (empty spaces). Drop an app on any empty spot to place it exactly there. Homescreen writes the gap to the phone and remembers it, so it survives later edits.
Widgets keep their settings (which script, which person, which city) through every apply.
App Library that stays put. Apps you keep only in the App Library stay there when you apply, and you can drag apps into or out of it. Most tools get this wrong (why).
App Bank to park apps, folders or widgets while you rearrange.
One-click organizing:
by color
A–Z
by App Store category
by how much you use each app: moves your most-used apps onto the first pages, with an estimate of how many page swipes that saves. Usage comes from the device itself (no setup) or from Screen Time synced to your Mac
Undo/redo for every change, multi-select, search, and swap (⌥-drop).
Safe apply:
Nothing reaches the phone until you review and apply.
Your current layout is backed up first.
The result is read back and verified.
A failed write is never blindly retried.
Any backup can be restored in one click.
AI assistant (MCP): 30 tools so Claude (or any MCP client) can read, rearrange, sort and explain your layout. Writing to the phone stays off unless you enable it.
CLI for scripting:
homescreen read | show | diff | apply | backups | restore | probe | ui.
Related MCP server: PhonePilot Local
Requirements
A Mac with Apple silicon and macOS 14 or later (the app). The Python package also runs on Intel Macs with Python 3.11+.
An iPhone or iPad connected by USB and trusted ("Trust This Computer").
Tested with iOS 27.0.1 (iPhone 17 Pro Max), iOS 26.6.2 (iPhone 17 Pro), iPadOS 26.6.2 (iPad Air 13") and the iOS 27.2 simulator. Other versions may work; the safety checks will tell you if a write didn't land as planned.
Install
The app: download Homescreen-<version>.dmg from Releases, open it and drag Homescreen to Applications.
The app isn't notarized by Apple (that needs a paid developer account), so the first time macOS will refuse to open it. Right-click Homescreen in Applications, choose Open, then Open again. Or, after the first try, go to System Settings › Privacy & Security and click Open Anyway. You only do this once.
Or the Python package (CLI, MCP server and the same editor in your browser):
pipx install git+https://github.com/kats1123/homescreen-mcp
homescreen uiUse it
Open Homescreen and plug in your iPhone or iPad. Unlock it and tap Trust if asked.
Pick the device at the top if several are connected, then click Read.
Rearrange.
Click Review & Apply.
Before a big rearrangement, unhide any hidden Home Screen pages on the phone (long-press the Home Screen, tap the page dots). iOS doesn't report which pages are hidden, so apps could otherwise end up on a page you can't see.
App usage has two sources:
From the device (no setup): iOS writes a memory report now and then that lists the apps it's holding in memory. Over days and weeks that shows which apps you actually use. Apps that iOS keeps running for calls, or keeps in memory every day, are counted less, since being in memory doesn't mean you opened them. Nothing on the device is changed.
From Screen Time: turn on Settings › Screen Time › Share Across Devices on the device and the Mac. Homescreen reads the synced history locally, which needs Full Disk Access for Homescreen (or the Terminal you run
homescreenfrom) in System Settings › Privacy & Security.
Let an AI assistant arrange it
Add the MCP server to Claude Code. With the app, use Device › Copy MCP Setup Command and paste it in Terminal. It points at the engine inside the app:
claude mcp add homescreen -- /Applications/Homescreen.app/Contents/Resources/engine/engine mcpWith the Python package:
claude mcp add homescreen -- homescreen-mcpor to Claude Desktop (claude_desktop_config.json):
{ "mcpServers": { "homescreen": { "command": "homescreen-mcp" } } }Then ask things like "organize my apps by color", "put the apps I use most on page 1" or "file my loose apps into folders that make sense".
The assistant edits a draft. You apply it in the app (homescreen ui, then Review & Apply) or with homescreen apply <token>. To let the assistant apply by itself, start the server with HOMESCREEN_ALLOW_APPLY=1.
Why other tools dump App Library apps onto your Home Screen
Found by reading SpringBoard's code in the iOS 27.2 simulator, then confirmed on a real iPhone:
Over USB, SpringBoard's
getIconStateonly returns a list:[dock, page 1, page 2, …]. There's no App Library in it, in anyformatVersion.Writing that list back with
setIconStatereaches-[SBIconController importIconState:].+[SBIconStateArchiver rootArchiveFromITunesRepresentation:]turns the list into{buttonBar, iconLists}and nothing else.Every installed app the layout doesn't mention is then put on a page. Writing back an unchanged layout moved 33 App Library apps onto a phone's Home Screen.
What Homescreen does instead: SpringBoard's import also accepts its own on-disk dictionary form, which has the App Library as ignored. Homescreen sends:
buttonBarandiconLists, with apps as bundle-id strings, folders with their contents, and widgets unchanged.ignored: the App Library. USB can't read it, so it's computed as installed apps (including offloaded ones), minus apps on the Home Screen, minus hidden and system-only apps.
Widgets keep their settings. A configured widget (which script, which person, which city) is linked to its settings by an element ID. Over USB that ID only appears as userSelectedElementIdentifier. Writing a widget without it as uniqueIdentifier makes SpringBoard save the widget with no ID, and its settings are orphaned. Homescreen sends it back, and remembers each widget's ID across reads in case iOS drops one. Verified on iOS 27.0.1: a configured Scriptable widget kept its script through a write.
Web clips in the App Library. Web clips aren't installed apps, so the installed-app list can't put them in ignored, and USB never reports them. A write that leaves one out makes iOS put it in the first free spot on a page. Homescreen remembers every web clip it has seen on each phone and sends it in ignored. If iOS surfaces one it has never reported, the apply result names it (hidden_webclips); move it to the App Library and apply again. Found on iOS 26.6.2.
Keys it leaves out (Today View, page IDs) keep their values on the phone. Any installed app that isn't listed anywhere goes to the App Library, never onto a page.
tools/sbhelper/ contains the simulator harness used to work this out. It feeds layouts to the simulator's SpringBoard through the same import path a USB write takes.
How it works
pymobiledevice3 talks to the phone over USB:
com.apple.springboardservicesfor the layout and iconsinstallation_proxyfor the installed apps
Nothing is rebuilt. Each app, folder and widget keeps its original data, and edits only move it around. Unknown fields go back untouched.
Validation runs before every apply:
page capacity: 24 slots; small/medium/large widgets take 4/8/16
dock of 4, and folders of 9 per page
no folders or widgets inside folders
no item lost or duplicated, and an empty App Bank
Screen Time comes from the Biome
App.InFocusstreams macOS keeps for synced devices. Page swipes are estimated as page N costing N−1 swipes, plus folder pages, with the dock free.Local only. The app listens on 127.0.0.1, and every change request needs a per-launch token. The one optional network call is Group by App Store category: it sends bundle IDs to Apple's public lookup API, asks first, and caches the results.
Data (drafts, backups, icon cache) lives in ~/Library/Application Support/homescreen-mcp.
Gaps and hidden pages: what iOS allows over USB
iOS stores gaps as pinned cells for each page (
listMetadata→fixedLocations), keyed by page ID.Writing gaps works. Homescreen sends page IDs plus the pins and verifies the result. Tested on iOS 27.0.1 and the iOS 27.2 simulator.
Reading them doesn't. None of SpringBoard's USB exports (
getIconStatein anyformatVersion) includes gaps or hidden pages. They only return the order of icons. And a write without them clears every gap, even on pages nobody touched.What that means in practice:
Gaps set in Homescreen are remembered for each phone and sent with every write, so they last.
Gaps made on the iPhone itself can't be seen, so they close on the first apply. Recreate them in Homescreen (drop the app on that spot); the Apply screen warns about this.
Hidden pages are likewise invisible over USB. Unhide them before applying.
Limitations
Hidden pages and gaps made on the phone itself can't be read (see above).
iPad support is new. The grid, dock size and folder size come from the device (an iPad Air 13" reports 5×6, a 26-app dock and 16 per folder page), and arranging through MCP or the CLI works (tested on iPadOS 26.6.2). The editor draws the iPad's grid. iPad widget sizes don't map onto the icon grid like iPhone ones, so a widget page is only accepted when it keeps the shape iPadOS gave it.
A few system apps that iOS never shows on the Home Screen are listed in
NEVER_ON_HOME_SCREEN(homescreen/device.py). If a write reports one underadded_by_ios, add it there.
Development
Build the Mac app (Apple silicon, Xcode command-line tools) into build/:
macapp/build.shIt bundles the engine with PyInstaller, compiles the Swift shell in macapp/Shell, ad-hoc signs the app and makes a DMG.
git clone https://github.com/kats1123/homescreen-mcp && cd homescreen-mcp
python3 -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/python -m pytest -q testsWithout a phone:
HOMESCREEN_FIXTURE=<layout.plist> homescreen ui. Build a test layout withpython tests/fake_phone.py fake.plist --dict.On a booted simulator:
HOMESCREEN_SIM=booted homescreen ui.
Disclaimer
Not affiliated with, endorsed by or sponsored by Apple Inc. iPhone, iOS and Screen Time are trademarks of Apple Inc. This tool uses private device interfaces that can change with any iOS update. It backs up before every write and verifies after, but you use it at your own risk; keep your own iPhone backups too.
License
MIT. See LICENSE.
Available Tools
30 toolsapplyA
Write the draft to the iPhone. Only call when the user explicitly asked to apply this draft. Needs the apply_token from the latest diff. Backs up first and verifies after.
Inputs: apply_token (required). Returns: object
app_store_categoriesA
App Store genre per app (Apple apps are 'Apple'). This sends the bundle ids to Apple's public lookup API, so only call it when the user is fine with that. Cached locally.
Inputs: ids. Returns: object
arrangeA
Set the whole top-level layout at once. pages = list of pages, each a list of ids in order (row by row). library = apps kept only in the App Library. Every top-level item and library app must appear exactly once. dock / library omitted = unchanged.
Inputs: pages (required), dock, library. Returns: object
close_gapsC
Let placed items flow with the rest again (removes their gaps).
Inputs: item_ids (required). Returns: object
create_folderC
Make a folder at target/index holding item_ids (in order).
Inputs: name (required), target (required), item_ids (required), index. Returns: object
diffA
What applying the draft would change, any problems, and the apply_token.
Inputs: no named parameters. Returns: object
dissolve_folderC
Remove a folder, putting its apps where it was.
Inputs: folder_id (required). Returns: object
file_into_foldersA
File loose apps into folders: {folder name: [app ids]}. Apps join an existing folder with that name, or a new folder (2+ apps). Apps on page 1 are left alone by default.
Inputs: groups (required), keep_first_page. Returns: object
find_appsC
Find items by name or bundle id substring.
Inputs: query (required). Returns: result
get_iconsB
Icon images for up to 24 apps, in the order given.
Inputs: ids (required).
icon_colorsA
Dominant icon color per app (family, background, hex, hue 0-360). Omit ids for every app.
Inputs: ids. Returns: object
list_backupsB
Layouts saved before each apply/restore, oldest first.
Inputs: no named parameters. Returns: result
moveC
Move one item to target ('dock', 'library', 'page:N', 'folder:[:N]'), at index
(0-based, default end) or just before the item with id before.
'library' = App Library only, off the Home Screen.
Inputs: target (required), item_id (required), index, before. Returns: object
optimize_by_usageB
Most-used apps and folders onto the earliest pages, most-used apps onto each folder's first page (usage from screen_time, else the device's memory reports, else Screen Time). Widgets keep their pages; dock and App Library untouched.
Inputs: keep_first_page. Returns: object
page_opA
Page operations: op='insert' (new empty page at page), 'move' (page -> to),
'delete' (its apps go to the App Library, like iOS).
Inputs: op (required), page (required), to. Returns: object
place_atB
Put an item in an exact spot (row 1-6, column 1-4) on a page, leaving empty spaces around it, like dragging it to an empty spot on the iPhone. Other items flow around it.
Inputs: row (required), page (required), column (required), item_id (required). Returns: object
read_phoneA
Read the Home Screen from the connected iPhone and start a fresh draft from it. Discards any unapplied draft.
Inputs: no named parameters. Returns: object
redoA
Redo the last undone draft edit.
Inputs: no named parameters. Returns: object
remove_emptyB
Drop empty pages and empty folders from the draft.
Inputs: no named parameters. Returns: object
rename_folderC
Rename a folder.
Inputs: name (required), folder_id (required). Returns: object
render_previewA
Write an HTML preview (draft vs phone, moved icons outlined) and return its path.
Inputs: no named parameters. Returns: object
reset_draftA
Throw away draft edits and go back to the layout as read from the phone (undoable).
Inputs: no named parameters. Returns: object
restoreC
Write a backup to the iPhone. Only when the user explicitly asked. Same gate as apply.
Inputs: backup (required). Returns: object
screen_timeB
Which apps get used, the top apps with where they are now, and estimated page swipes for
the device vs the draft. source='device': the device's own memory reports (no setup; apps iOS
keeps running for calls or in memory every day count less, listed under 'background');
source='mac': Screen Time synced to this Mac (Share Across Devices), last days days.
Inputs: days, source. Returns: object
show_layoutB
The current draft: dock, every page and the App Library-only apps, as {id, name} items (folders carry their contents, widgets their size).
Inputs: no named parameters. Returns: object
sort_alphabeticallyC
A-Z sort of folders and loose apps. Page 1 is left alone by default.
Inputs: folders_first, keep_first_page. Returns: object
sort_by_colorA
Rainbow-sort loose apps (red -> purple, then white/gray/black). Folders and widgets go first. Page 1 is left alone by default.
Inputs: keep_first_page. Returns: object
sort_folder_contentsC
A-Z inside every folder.
Inputs: no named parameters. Returns: object
swapC
Trade the places of two items.
Inputs: a (required), b (required). Returns: object
undoB
Undo the last draft edit.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Most tools target a clearly distinct operation (read_phone, diff, apply, undo/redo, page_op), and the descriptions draw useful boundaries between fine-grained moves (move vs place_at vs swap vs arrange). A few pairs still risk misselection: create_folder vs file_into_folders (which also creates folders), and reset_draft vs restore vs undo all sound like 'go back' operations.
All names use snake_case uniformly, and the dominant convention is verb-first for mutations (move, swap, create_folder, dissolve_folder, remove_empty) with noun-style names for query-like reads (screen_time, icon_colors, app_store_categories). The deviation is that some reads are verb-first (find_apps, get_icons, show_layout) while others are nouns, and bare verbs like 'diff' and 'arrange' sit alongside compound names.
30 tools is above the heavy threshold, and a few seems consolidatable (undo/redo, reset_draft vs undo, diff/apply sequencing). However the domain is genuinely rich — layout editing, grouping, preview, diff-token gating, and backup/restore — so most tools do earn a distinct place rather than being filler.
The lifecycle is well covered: read from device, inspect draft, fine-grained and bulk edits, page/folder management, color/usage-based sorting, preview, diff-gated apply, undo/redo, and backups with restore. Minor gaps remain, such as no explicit tool for creating or resizing widgets and no clear way to pull an App Library app back to the Home Screen other than a general move.
Maintenance
Related MCP Connectors
Give an AI agent an iPhone to see, tap and type on over MCP. Free early access (Simulator).
Let your AI agent control real iPhones: screenshots, tap, swipe, type and open apps.
Read-only context from your desktop activity, so your AI assistant knows what you worked on.
Give your AI agent a memory and body on your iPhone: set alarms, ring your phone, over MCP.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceControl real iPhones from Claude through MCP, enabling AI to read screens, plan multi-step tasks, and execute human-like touch gestures on stock iOS devices without jailbreak.54 npmMIT- AlicenseNot gradedqualityCmaintenanceEnables compatible AI apps to observe and control a locally connected iPhone through stdio MCP tools for screenshots, taps, swipes, long presses, text entry, key and button presses, app listing, and app launching, all reusing the console's device session.GPL 3.0
- AlicenseNot gradedqualityBmaintenanceLets an AI client read and reorganize a connected iPhone's home screen — moving apps and web clips, creating folders, and rearranging pages — with automatic backups, previews, and validation before any change is written to the device.32MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents and MCP clients to operate a real iPhone locally, completing app and device tasks without jailbreak or extra hardware.1,730AGPL 3.0