playdate-mcp
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., "@playdate-mcp Build and launch the game, then capture a screenshot."
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.
playdate-mcp
playdate-mcp exposes the macOS Playdate Simulator as typed MCP tools by
delegating every request to a fresh playdate-simctl process.
The normal agent workflow is one playdate_run call to build, launch, inject,
and load a PDX, followed by input, state, and capture calls. Screenshot results
include the PNG as MCP image content. Use playdate_record rather than the GIF
toolbar action for end-to-end non-interactive recording.
Requirements
macOS 15 or later
Node.js 24 LTS
Playdate SDK for macOS, which includes Playdate Simulator
The package includes universal arm64 and x86_64 builds of
playdate-simctl and its injected agent from the pinned
playdate-cli 0.1.0 release.
Related MCP server: Simulator MCP
Configure an MCP client
Run playdate-mcp 0.1.2 from npm
with npx:
{
"mcpServers": {
"playdate": {
"command": "npx",
"args": ["-y", "playdate-mcp@0.1.2"],
"env": {
"PLAYDATE_SIMCTL_WORKING_DIRECTORY": "/absolute/path/to/game"
}
}
}
}The working directory setting makes relative PDX and artifact paths resolve from the game project. These environment variables configure the subprocess boundary when the server starts:
Variable | Purpose |
| Working directory for relative paths |
| Positive timeout in milliseconds; defaults to 300000 |
| Override the bundled |
| Value passed to |
| Value passed to |
Setting only PLAYDATE_SIMCTL_PATH lets that CLI resolve its adjacent agent.
Set both CLI variables to select an explicit pair.
Every tool also accepts an optional positive pid when more than one Simulator
is running. Calls that mutate the same Simulator should be issued in order; the
stateless server intentionally does not maintain a per-Simulator queue.
Development
mise install
npm ci
mise run check
npm run bundle:cliThe executable JavaScript entry point is dist/src/main.js.
bundle:cli downloads the pinned release archive and verifies its SHA-256.
npm pack runs this step automatically.
See SPEC.md for the complete tool contract and safety semantics.
Available Tools
15 toolsplaydate_capture_screenshotCapture a Playdate screenshotA
Capture the 400 by 240 framebuffer to a new PNG path and return it as MCP image content. Existing files are never overwritten.
Inputs: output_path (required), pid. Returns: signal, stderr, stdout, command, +5 more
playdate_injectEnsure the Playdate control agent is injectedAIdempotent
Diagnostic primitive that finds the selected Simulator and ensures its control agent is available. Normal control tools inject automatically.
Inputs: pid. Returns: signal, stderr, stdout, command, +5 more
playdate_loadLoad a PDXADestructiveIdempotent
Load an existing PDX directory bundle without running a build task.
Inputs: product_path (required), pid. Returns: signal, stderr, stdout, command, +5 more
playdate_pressPress a Playdate buttonA
Press and release a button for a bounded duration. Lock toggles immediately and does not accept duration_ms.
Returns: signal, stderr, stdout, command, +5 more
playdate_recordControl non-interactive Playdate GIF recordingA
Start recording to a new GIF path or stop and finalize the active recording. Recording state belongs to the Simulator agent, not this MCP server.
Returns: signal, stderr, stdout, command, +5 more
playdate_restartRestart the Playdate gameBDestructive
Restart the currently loaded game, resetting its runtime state.
Inputs: pid. Returns: signal, stderr, stdout, command, +5 more
playdate_runBuild and run a Playdate projectADestructive
Run the project's mise build task, launch or find Playdate Simulator, inject the control agent, and load the PDX. This is the normal first call and reload workflow.
Inputs: product_path (required), pid, build_task, project_directory. Returns: signal, stderr, stdout, command, +5 more
playdate_set_accelerometerSet Playdate accelerometer valuesBIdempotent
Set the Simulator accelerometer x, y, and z values.
Inputs: x (required), y (required), z (required), pid. Returns: signal, stderr, stdout, command, +5 more
playdate_set_buttonSet a Playdate button stateAIdempotent
Hold or release one button for deterministic and simultaneous input sequences.
Inputs: state (required), button (required), pid. Returns: signal, stderr, stdout, command, +5 more
playdate_set_crankSet Playdate crank stateAIdempotent
Set the crank position in degrees or set whether the crank is docked.
Returns: signal, stderr, stdout, command, +5 more
playdate_set_pausedSet Playdate Simulator pause stateAIdempotent
Pause or resume the running game.
Inputs: paused (required), pid. Returns: signal, stderr, stdout, command, +5 more
playdate_set_volumeSet or adjust Playdate volumeA
Set volume to percent, or adjust it up or down by percent. Adjustment defaults to 10 percent when percent is omitted.
Returns: signal, stderr, stdout, command, +5 more
playdate_statusGet Playdate Simulator control statusAIdempotent
Find the selected Simulator, ensure its control agent is available, and return agent status. This may inject the agent when it is absent.
Inputs: pid. Returns: signal, stderr, stdout, command, +5 more
playdate_toggle_lockToggle Playdate lock stateB
Toggle the Simulator's Playdate lock state.
Inputs: pid. Returns: signal, stderr, stdout, command, +5 more
playdate_toolbarInvoke a Playdate Simulator toolbar actionA
Invoke an exact Simulator toolbar action. The gif action may open a Save Recording dialog; use playdate_record for non-interactive GIF capture.
Inputs: action (required), pid. Returns: signal, stderr, stdout, command, +5 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most control tools target distinct inputs or actions, but playdate_status and playdate_inject heavily overlap in finding the Simulator and ensuring the agent is available. playdate_run and playdate_load are also closely related, though descriptions clarify their build/no-build distinction.
All tools share the playdate_ prefix and mostly use clear verb-first names like playdate_set_crank and playdate_capture_screenshot. Minor deviations like playdate_status and playdate_toolbar are noun-style rather than verb-style, but the overall pattern remains readable and predictable.
Fifteen tools is at the upper edge of well-scoped for a simulator-control server, and each tool covers a meaningful action or input surface. The redundant playdate_inject and broad playdate_toolbar add slight bulk but do not make the set feel bloated.
The tool surface covers the core Simulator lifecycle—build/run/load, restart, pause, status—plus key input methods, volume, lock state, screenshots, and recording. Minor gaps exist around advanced Simulator state or explicit simulator selection, but common workflows are fully supported.
Maintenance
Related MCP Connectors
Build, run, and inspect iOS apps in disposable hosted Simulators from cloud coding agents.
Create App Store screenshots, icons, ASO copy, localization, and revisions via hosted MCP.
MCP tools for TON Sites, TON DNS and TON Storage.
Drive real devices from your AI Coding tool. Embed a client SDK (Unity, Godot, Flutter, iOS/macOS, Android, React Native, Web) in your app, then capture screenshots, traverse the UI tree, inject taps and key events, and run automated test tasks on the physical device over a secure relay.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server to control iOS Simulators.53MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI to control iOS simulators through the MCP protocol. Supports device management, UI automation, and network interception including screenshot capture, text input, and HTTP request mocking.-
- AlicenseNot gradedqualityDmaintenanceLocal MCP server for iOS Simulator and macOS app automation with a TypeScript MCP layer and Swift native bridge. Enables UI inspection, input automation, and simulator control through unified generic tools.73 npm26MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for interacting with Xcode build tools, iOS Simulator, and Apple notarization services.15 npm5MIT