MCP iOS Simulator Screenshot
MCP iOS シミュレータのスクリーンショット
モデル コンテキスト プロトコル (MCP) を使用して iOS シミュレータからスクリーンショットをキャプチャするサーバー。
概要
このプロジェクトは、iOS シミュレータの現在の画面をキャプチャし、指定されたディレクトリに保存する MCP プロトコル サーバーを実装します。
Related MCP server: Screeny MCP Server
設定
クラインとルーコード
Cline および Roo Code の場合、基本的な形式は次のとおりです。
{
"mcpServers": {
"mcp-ios-simulator-screenshot": {
"command": "npx",
"args": ["-y", "mcp-ios-simulator-screenshot"]
}
}
}リポジトリをクローンする場合は、次の構成を使用できます。
{
"mcpServers": {
"mcp-ios-simulator-screenshot": {
"command": "node",
"args": ["/path/to/mcp-ios-simulator-screenshot/build/index.js"]
}
}
}カーソル、クロードデスクトップ
Cursor および Claude Desktop の場合、 --output-dirと出力ディレクトリを指定する必要があります。
{
"mcpServers": {
"mcp-ios-simulator-screenshot": {
"command": "npx",
"args": [
"mcp-ios-simulator-screenshot",
"--output-dir",
"/path/to/your/output/directory"
]
}
}
}MCPツールパラメータ
スクリーンショットを取得
iOS シミュレータからスクリーンショットをキャプチャし、指定されたディレクトリに保存します。
パラメータ | タイプ | 説明 | デフォルト値 |
出力ファイル名 | 弦 | 出力ファイル名 | タイムスタンプ.png |
出力ディレクトリ名 | 弦 | スクリーンショットのサブディレクトリ名 | .スクリーンショット |
サイズ変更 | ブール値 | 画像をおよそVGAサイズにリサイズするかどうか | 真実 |
最大幅 | 整数 | サイズ変更の最大幅(ピクセル) | 640 |
デバイスID | 弦 | シミュレータデバイスを指定する | 起動したデバイス |
出力形式
成功した場合:
{
"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
}
}
}注: serverConfig.commandLineArgs.outputDirフィールドは、サーバーの起動時に--output-dirパラメータが指定された場合にのみ応答に含まれます。
{
"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."
}
}トラブルシューティング
スクリーンショットをキャプチャできない場合:
iOSシミュレータが実行中かどうかを確認する
Xcodeコマンドラインツールがインストールされているかどうかを確認する
xcrun simctl io booted screenshotコマンドを直接実行できるかどうかを確認します
権限エラーが発生した場合:
出力ディレクトリへの書き込み権限があるかどうかを確認してください
要件
Node.js 16.0.0以上
macOS(iOSシミュレータが必要)
Xcode コマンドラインツール
テクノロジースタック
タイプスクリプト
Node.js
MCP SDK(@modelcontextprotocol/sdk)
ライセンス
マサチューセッツ工科大学
その他の言語
Available Tools
1 toolget_screenshotC
Capture a screenshot from iOS Simulator
| Name | Required | Description | Default |
|---|---|---|---|
| output_filename | No | Output filename (if not specified, timestamp.png will be used) | |
| output_directory_name | No | Subdirectory name for screenshots (if not specified, .screenshots will be used) | .screenshots |
| resize | No | Whether to resize the image to approximately VGA size | |
| max_width | No | Maximum width for resizing (pixels) | |
| device_id | No | Specify a simulator device (if not specified, the booted device will be used) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. 'Capture a screenshot' implies a read operation, but it doesn't specify whether this requires specific simulator states, permissions, or has side effects. The description lacks information about error conditions, what happens if no device is booted, or the format/location of output beyond what's in parameter descriptions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that states the core purpose without unnecessary words. It's appropriately sized for a straightforward tool and gets directly to the point. Every word earns its place in conveying the essential function.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with no annotations and no output schema, the description is insufficiently complete. While the purpose is clear, it lacks important behavioral context about how the tool operates, what it returns, error handling, and dependencies. The description doesn't compensate for the absence of structured metadata that would help an agent understand the tool's behavior and constraints.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 100% schema description coverage, all parameters are well-documented in the schema itself. The description adds no additional parameter information beyond what's already in the schema descriptions. This meets the baseline expectation when schema coverage is complete, but doesn't provide extra semantic context.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Capture') and target resource ('screenshot from iOS Simulator'), making the purpose immediately understandable. It lacks sibling differentiation, but since there are no sibling tools, this doesn't reduce clarity. The description is specific enough to distinguish this from other potential screenshot tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, prerequisites, or context. It simply states what the tool does without indicating appropriate scenarios or limitations. While there are no sibling tools to differentiate from, the description offers no usage context whatsoever.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
- First observed
get_screenshot
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is singular and clearly defined, making it impossible for an agent to misselect between non-existent alternatives.
A single tool inherently has perfect naming consistency, as there are no other tools to compare against. The tool name 'get_screenshot' follows a clear verb_noun pattern, which would be consistent if more tools existed.
A single tool is too few for most practical server purposes, as it severely limits functionality and flexibility. While the server's name suggests a focused domain (iOS Simulator screenshots), one tool feels thin and incomplete for even basic operations like listing simulators or managing screenshots.
The tool surface is severely incomplete for the implied domain of iOS Simulator interactions. It only provides screenshot capture, with obvious gaps such as listing available simulators, starting/stopping simulators, or managing screenshot files, which are essential for a coherent workflow.
Maintenance
Related MCP Connectors
MCP server for visual regression testing: triage a PR's UI diffs from your coding agent.
MCP server for Appcircle mobile CI/CD platform.
MCP server to assist with JxBrowser development.
A Model Context Protocol (MCP) server for Selise Blocks Cloud integration
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceAn MCP server to control iOS Simulators.1353MIT
- AlicenseNot gradedqualityBmaintenanceA privacy-first macOS MCP server that enables AI agents to capture screenshots of pre-approved application windows for development and debugging tasks.14MIT
- AlicenseAqualityDmaintenanceA macOS-based MCP server that allows for capturing screenshots of displays and windows, as well as recording window activity to MP4 files. It leverages a Swift CLI backend to interact with macOS CoreGraphics and AVFoundation APIs for seamless screen capture management.7181MIT
- AlicenseNot gradedqualityCmaintenanceMCP server to control iOS simulators for automation, enabling device management, input control, and screen capture via Facebook IDB.10MIT