Skip to main content
Glama

MCP iOS Simulator Screenshot

by yorifuji

MCP iOS シミュレータのスクリーンショット

モデル コンテキスト プロトコル (MCP) を使用して iOS シミュレータからスクリーンショットをキャプチャするサーバー。

概要

このプロジェクトは、iOS シミュレータの現在の画面をキャプチャし、指定されたディレクトリに保存する MCP プロトコル サーバーを実装します。

設定

クラインとルーコード

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)

ライセンス

マサチューセッツ工科大学

その他の言語

You must be authenticated.

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.

モデル コンテキスト プロトコル (MCP) を使用して iOS シミュレータからスクリーンショットをキャプチャし、指定されたディレクトリに保存するサーバー。

  1. 概要
    1. 設定
      1. クラインとルーコード
      2. カーソル、クロードデスクトップ
    2. MCPツールパラメータ
      1. スクリーンショットを取得
    3. 出力形式
      1. トラブルシューティング
        1. 要件
          1. テクノロジースタック
            1. ライセンス
              1. その他の言語

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that provides AI vision capabilities for analyzing UI screenshots, offering tools for screen analysis, file operations, and UI/UX report generation.
                  Last updated -
                  26
                  1
                  JavaScript
                  ISC License
                  • Linux
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  An official MCP server implementation that allows AI assistants to capture website screenshots through the ScreenshotOne API, enabling visual context from web pages during conversations.
                  Last updated -
                  1
                  6
                  TypeScript
                  MIT License
                  • Apple
                • -
                  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

                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