Skip to main content
Glama

MCP iOS Simulator Screenshot

by yorifuji

Screenshot des MCP iOS-Simulators

Ein Server, der mithilfe des Model Context Protocol (MCP) Screenshots vom iOS-Simulator aufnimmt.

Überblick

Dieses Projekt implementiert einen MCP-Protokollserver, der den aktuellen Bildschirm des iOS-Simulators erfasst und in einem angegebenen Verzeichnis speichert.

Aufstellen

Cline und Roo Code

Für Cline- und Roo-Code ist das grundlegende Format:

{ "mcpServers": { "mcp-ios-simulator-screenshot": { "command": "npx", "args": ["-y", "mcp-ios-simulator-screenshot"] } } }

Wenn Sie das Repository klonen, können Sie die folgende Konfiguration verwenden:

{ "mcpServers": { "mcp-ios-simulator-screenshot": { "command": "node", "args": ["/path/to/mcp-ios-simulator-screenshot/build/index.js"] } } }

Cursor, Claude Desktop

Für Cursor und Claude Desktop müssen Sie --output-dir und das Ausgabeverzeichnis angeben:

{ "mcpServers": { "mcp-ios-simulator-screenshot": { "command": "npx", "args": [ "mcp-ios-simulator-screenshot", "--output-dir", "/path/to/your/output/directory" ] } } }

MCP-Tool-Parameter

get_screenshot

Erstellt einen Screenshot vom iOS-Simulator und speichert ihn im angegebenen Verzeichnis.

ParameterTypBeschreibungStandardwert
AusgabedateinameSchnurAusgabedateinameZeitstempel.png
AusgabeverzeichnisnameSchnurUnterverzeichnisname für Screenshots.Screenshots
Größe ändernBoolescher WertOb die Bildgröße auf etwa VGA-Größe geändert werden sollWAHR
maximale Breiteganze ZahlMaximale Breite für die Größenänderung (Pixel)640
Geräte-IDSchnurGeben Sie ein Simulatorgerät angebootetes Gerät

Ausgabeformat

Bei Erfolg:

{ "success": true, "message": "iOS Simulator screenshot saved successfully", "filePath": ".screenshots/simulator_2025-04-10T16-51-16-755Z.png", "metadata": { "width": 1170, "height": 2532, "format": "png", "size": 382946, "timestamp": "2025-04-10T16:51:16.755Z" }, "serverConfig": { "commandLineArgs": { "outputDir": "/Users/username/Desktop" // Only included when --output-dir is specified } } }

Hinweis: Das Feld serverConfig.commandLineArgs.outputDir ist nur dann in der Antwort enthalten, wenn beim Starten des Servers der Parameter --output-dir angegeben wird.

{ "success": false, "message": "Error capturing iOS Simulator screenshot: [error message]", "error": { "code": "ENOENT", "command": "xcrun simctl io booted screenshot --type=png -", "stderr": "No matching devices found." } }

Fehlerbehebung

  • Wenn Sie keine Screenshots aufnehmen können :
    • Überprüfen Sie, ob der iOS-Simulator ausgeführt wird
    • Überprüfen Sie, ob Xcode-Befehlszeilentools installiert sind
    • Überprüfen Sie, ob der Befehl xcrun simctl io booted screenshot direkt ausgeführt werden kann
  • Wenn Berechtigungsfehler auftreten :
    • Überprüfen Sie, ob Sie Schreibberechtigungen für das Ausgabeverzeichnis haben

Anforderungen

  • Node.js 16.0.0 oder höher
  • macOS (iOS-Simulator erforderlich)
  • Xcode-Befehlszeilentools

Technologie-Stack

  • Typoskript
  • Node.js
  • MCP SDK (@modelcontextprotocol/sdk)

Lizenz

MIT

Weitere Sprachen

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Ein Server, der mithilfe des Model Context Protocol (MCP) Screenshots vom iOS-Simulator aufnimmt und in einem angegebenen Verzeichnis speichert.

  1. Überblick
    1. Aufstellen
      1. Cline und Roo Code
      2. Cursor, Claude Desktop
    2. MCP-Tool-Parameter
      1. get\_screenshot
    3. Ausgabeformat
      1. Fehlerbehebung
        1. Anforderungen
          1. Technologie-Stack
            1. Lizenz
              1. Weitere Sprachen

                Related MCP Servers

                • -
                  security
                  F
                  license
                  -
                  quality
                  A lightweight Model Context Protocol (MCP) server that enables your LLM to capture screenshots of any specified URL and return only the access URL for the captured image. This tool simplifies the process of generating and sharing webpage snapshots, making it perfect for integrating visual capture ca
                  Last updated -
                  1
                  Python
                • -
                  security
                  -
                  license
                  -
                  quality
                  An MCP server that provides web development tools including taking screenshots of screens, enabling AI agents to capture and analyze visual content during development.
                  Last updated -
                  2
                  TypeScript
                • A
                  security
                  F
                  license
                  A
                  quality
                  An MCP server providing web development tools such as screen capturing capabilities that let AI agents take and work with screenshots of the user's screen.
                  Last updated -
                  2
                  27
                  2
                  TypeScript
                  • Apple

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/yorifuji/mcp-ios-simulator-screenshot'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server