Integrations
Captures screenshots from iOS Simulator devices and saves them to a specified directory with options for output filename, directory, image resizing, and selecting specific simulator devices.
Runs on macOS to capture iOS Simulator screenshots, requiring macOS as the underlying operating system to access the iOS Simulator environment.
Leverages Xcode Command Line Tools to interact with iOS Simulator devices and capture screenshots through the xcrun simctl command.
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
- Installation:
- MCP Client Configuration:
Add the server information to your MCP client configuration file as follows:
Environment Variables
This server does not use environment variables.
Command Line Arguments
This server does not use command line arguments.
Advanced Configuration
MCP Client Configuration by Installation Method
When Installed Globally
When Installed Locally
When Cloned from Repository
When Using npx
When Using Docker
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
Project Structure
Tools
get_ios_simulator_screenshot
Captures a screenshot from the iOS Simulator and saves it to the specified directory.
Parameters
Parameter Name | Type | Description | Default Value |
---|---|---|---|
output_filename | string | Output filename | simulator_[timestamp].png |
output_directory | string | Output directory | .screenshots |
resize | boolean | Whether to resize the image | true |
max_width | integer | Maximum width for resizing (pixels) | 640 |
device_id | string | Specify a simulator device (e.g., iPhone15,2 ) | Booted device (booted ) |
Output Format
On success:
On error:
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
You must be authenticated.
A server that captures screenshots from iOS Simulator using the Model Context Protocol (MCP) and saves them to a specified directory.
- Overview
- Setup
- Environment Variables
- Command Line Arguments
- Advanced Configuration
- Troubleshooting
- Project Structure
- Tools
- Requirements
- Technology Stack
- License
- Other Languages