MCP iOS Simulator Screenshot
A server that captures screenshots from iOS Simulator using the Model Context Protocol (MCP).
Overview
This project implements an MCP protocol server that captures the current screen of the iOS Simulator and saves it to a specified directory.
Setup
Cline and Roo Code
For Cline and Roo Code, the basic format is:
If you clone the repository, you can use the following configuration:
Cursor, Claude Desktop
For Cursor and Claude Desktop, you need to specify the --output-dir
and the output directory:
MCP Tool Parameters
get_screenshot
Captures a screenshot from iOS Simulator and saves it to the specified directory.
Parameter | Type | Description | Default Value |
---|---|---|---|
output_filename | string | Output filename | timestamp.png |
output_directory_name | string | Subdirectory name for screenshots | .screenshots |
resize | boolean | Whether to resize the image to approximately VGA size | true |
max_width | integer | Maximum width for resizing (pixels) | 640 |
device_id | string | Specify a simulator device | booted device |
Output Format
On success:
Note: The serverConfig.commandLineArgs.outputDir
field is only included in the response when the --output-dir
parameter is specified when starting the server.
Troubleshooting
- If you cannot capture screenshots:
- Check if iOS Simulator is running
- Check if Xcode Command Line Tools are installed
- Check if the
xcrun simctl io booted screenshot
command can be executed directly
- If permission errors occur:
- Check if you have write permissions for the output directory
Requirements
- Node.js 16.0.0 or higher
- macOS (iOS Simulator required)
- Xcode Command Line Tools
Technology Stack
- TypeScript
- Node.js
- MCP SDK (@modelcontextprotocol/sdk)
License
MIT
Other Languages
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
Un servidor que captura capturas de pantalla del Simulador de iOS utilizando el Protocolo de contexto de modelo (MCP) y las guarda en un directorio específico.
- Descripción general
- Configuración
- Parámetros de la herramienta MCP
- Formato de salida
- Solución de problemas
- Requisitos
- Pila de tecnología
- Licencia
- Otros idiomas
Related Resources
Related MCP Servers
- -securityFlicense-qualityAn MCP server to control iOS Simulators.Last updated -346
- AsecurityFlicenseAqualityA 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 caLast updated -11
- AsecurityFlicenseAqualityAn 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 -2608
- AsecurityAlicenseAqualityAn 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 -26015MIT License