Skip to main content

MCP server for autonomous macOS, iOS Simulator, and Android screen recording with frame extraction.

Project description

video-capture-mcp

macOS, iOS Simulator, and Android screen recording plus key-frame extraction for MCP-aware AI agents.

PyPI CI License: MIT Python macOS

video-capture-mcp gives AI agents a stdio MCP server for recording UI motion while they operate apps, then extracting frames with ffmpeg. It is designed for bugs and requirements that screenshots miss, such as keyboards opening, hover/unhover states, and transient layout glitches.

Features

  • 3 OS recording backends in one MCP server: macOS, iOS Simulator, and Android.
  • App-window-bounded macOS recording with activation and visible-region checks.
  • Manual start/stop recording across macOS, iOS Simulator, and Android.
  • Hover sequence API for UI demos that need mouse movement without clicks.
  • record_and_extract for one-shot recording plus ffmpeg key-frame extraction.
  • FastMCP Image inline responses for extracted frames.

Requirements

  • macOS 12 or newer.
  • Python 3.11 or 3.12 for PyPI and uvx installs. Homebrew installs its own Python dependency.
  • ffmpeg and ffprobe.
  • Xcode Command Line Tools for iOS Simulator recording.
  • Android platform-tools and adb for Android recording.

Installation

Option 1: uvx (zero install) [Recommended]

Claude Code:

claude mcp add --scope user --transport stdio video_capture -- uvx video-capture-mcp

Claude Desktop:

{
  "mcpServers": {
    "video_capture": {
      "command": "uvx",
      "args": ["video-capture-mcp"]
    }
  }
}

VS Code / Cursor:

{
  "servers": {
    "video_capture": {
      "type": "stdio",
      "command": "uvx",
      "args": ["video-capture-mcp"]
    }
  }
}

Codex:

[mcp_servers.video_capture]
command = "uvx"
args = ["video-capture-mcp"]

Goose:

goose configure --name video_capture --command "uvx video-capture-mcp"

Option 2: pip

python3 -m pip install video-capture-mcp
claude mcp add --scope user --transport stdio video_capture -- video-capture-mcp

Codex:

[mcp_servers.video_capture]
command = "video-capture-mcp"
args = []

Option 3: Homebrew

brew install Corvus400/tap/video-capture-mcp
claude mcp add --scope user --transport stdio video_capture -- video-capture-mcp

Codex:

[mcp_servers.video_capture]
command = "video-capture-mcp"
args = []

macOS Permissions

See docs/permissions.md for full details.

  • Screen Recording is required for start_recording target=macos and start_app_window_recording.
  • Accessibility is required for move_pointer and hover_sequence.
  • This is a macOS TCC requirement and cannot be granted automatically by an MCP server. It is normally a one-time permission for the process that launches the server, not a per-recording step.
  • From Claude Code or Codex, use check_macos_permissions when setup is unclear. It reports whether Screen Recording works, the launcher process macOS is evaluating, the System Settings location, and the required MCP client restart.
  • Add the launcher process to System Settings > Privacy & Security > Screen Recording. For uvx and pip, this is usually the Python interpreter for that environment. For Homebrew, it is the installed video-capture-mcp executable.

Quickstart (Claude Code)

  1. Install ffmpeg.

    brew install ffmpeg
    
  2. Register the MCP server.

    claude mcp add --scope user --transport stdio video_capture -- uvx video-capture-mcp
    
  3. Ask Claude Code to start recording a visible app window:

    {
      "app_name": "Finder",
      "options": {
        "include_cursor": true
      }
    }
    
  4. Have the agent operate the UI, then call mcp__video_capture__stop_recording with the returned session_id.

Tools

Tool Purpose Key args
start_recording Start recording on selected target target, duration_seconds, options
stop_recording Stop a session and normalize orientation session_id
stop_all_recordings Stop active sessions, optionally by target target
start_app_window_recording macOS app-window-bounded recording app_name, duration_seconds, options
get_window_region Activate and measure front-window visibility app_name, min_visible_ratio
hover_sequence Mouse-move sequence without clicks points, hold_seconds, app_name
move_pointer Single mouse-move without click x, y
extract_frames ffmpeg scene or fixed-fps frame extraction video_path, mode, max_frames
record_and_extract Record and extract in one call target, duration_seconds, output_dir
list_active_sessions List current recordings none
cleanup_stale_processes Reap recordings from dead previous server PIDs none
check_macos_permissions Diagnose macOS Screen Recording permission and setup guidance none

Detailed parameters and option schemas are in docs/tools.md.

Configuration

  • VIDEO_CAPTURE_MCP_OUTPUT_DIR: default output root for recordings when output_path is omitted. Defaults to the system temp directory under video-capture-mcp.

Troubleshooting

See docs/troubleshooting.md for TCC denial, missing ffmpeg, no booted Simulator, and unauthorized adb devices.

Development

See docs/development.md for clone, local install, tests, linting, package build, and the bin/video-capture-mcp from-source wrapper.

Security

See SECURITY.md. Report vulnerabilities through GitHub Private Security Advisories.

Explicit output_path values are treated as trusted MCP client input. Use MCP client approvals and filesystem policy to control where agents may write.

License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video_capture_mcp-0.5.0.tar.gz (48.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

video_capture_mcp-0.5.0-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

Details for the file video_capture_mcp-0.5.0.tar.gz.

File metadata

  • Download URL: video_capture_mcp-0.5.0.tar.gz
  • Upload date:
  • Size: 48.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for video_capture_mcp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a299aa36bab3c36d14a4a31dfdacc7a7b9fc6bc9abba467c5f451a152da4f14a
MD5 1b64c9a53b5b870000e15b64bf6cbdc8
BLAKE2b-256 12be8a7dc7a200ce68b580fd55b3bc5dd21030251d5aa81fc650e2787fc05dbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for video_capture_mcp-0.5.0.tar.gz:

Publisher: publish.yml on Corvus400/video-capture-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file video_capture_mcp-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for video_capture_mcp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 005bc8d384b519936a944e6fe8e3005710f3b69e5483d8c9f21cf19e2ad357d7
MD5 3657f1f317ee8a8b17178e266f4b824a
BLAKE2b-256 eaceb5068b3f0dc1d726746ce2dae3bea0054dcbe76ae40521be7f5acc8844d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for video_capture_mcp-0.5.0-py3-none-any.whl:

Publisher: publish.yml on Corvus400/video-capture-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page