Skip to main content
Glama

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

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

PLAYDATE_SIMCTL_WORKING_DIRECTORY

Working directory for relative paths

PLAYDATE_SIMCTL_TIMEOUT_MS

Positive timeout in milliseconds; defaults to 300000

PLAYDATE_SIMCTL_PATH

Override the bundled playdate-simctl

PLAYDATE_SIMCTL_AGENT_PATH

Value passed to --agent

PLAYDATE_SIMULATOR_APP_PATH

Value passed to --simulator-app

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:cli

The 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 tools
playdate_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 injectedA
Idempotent

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 PDXA
DestructiveIdempotent

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 gameB
Destructive

Restart the currently loaded game, resetting its runtime state.

Inputs: pid. Returns: signal, stderr, stdout, command, +5 more

playdate_runBuild and run a Playdate projectA
Destructive

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 valuesB
Idempotent

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 stateA
Idempotent

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 stateA
Idempotent

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 stateA
Idempotent

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 statusA
Idempotent

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

    A3.6/5.0

    Scored across 15 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Local 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 npm
      26
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for interacting with Xcode build tools, iOS Simulator, and Apple notarization services.
      15 npm
      5
      MIT