S

Screencast MCP

by TMHSDigital · io.github.TMHSDigital/screencast-mcp

Lets an agent capture the Windows desktop, a monitor, window, or region, then sample the footage into frames it can actually view so it can verify what happened on screen. It also exposes typed ffmpeg tools for trimming, cropping, scaling, redacting, annotating, zooming, and exporting recordings.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-tmhsdigital-screencast-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tmhs/screencast-mcp"
      ],
      "env": {
        "SCREENCAST_HOME": "<homedir>/.screencast-mcp",
        "SCREENCAST_ALLOWED_DIRS": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FFPROBE_PATH": "<VALUE>",
        "SCREENCAST_WHISPER_MODEL": "<VALUE>",
        "SCREENCAST_MAX_RECORDING_SEC": "3600",
        "SCREENCAST_JOB_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_RETENTION_DAYS": "<VALUE>",
        "SCREENCAST_PS_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_CONFIRM_CAPTURE": "<VALUE>",
        "SCREENCAST_TOOLSETS": "<VALUE>",
        "SCREENCAST_DEBUG_JOBS": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-tmhsdigital-screencast-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tmhs/screencast-mcp"
      ],
      "env": {
        "SCREENCAST_HOME": "<homedir>/.screencast-mcp",
        "SCREENCAST_ALLOWED_DIRS": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FFPROBE_PATH": "<VALUE>",
        "SCREENCAST_WHISPER_MODEL": "<VALUE>",
        "SCREENCAST_MAX_RECORDING_SEC": "3600",
        "SCREENCAST_JOB_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_RETENTION_DAYS": "<VALUE>",
        "SCREENCAST_PS_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_CONFIRM_CAPTURE": "<VALUE>",
        "SCREENCAST_TOOLSETS": "<VALUE>",
        "SCREENCAST_DEBUG_JOBS": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-tmhsdigital-screencast-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tmhs/screencast-mcp"
      ],
      "env": {
        "SCREENCAST_HOME": "<homedir>/.screencast-mcp",
        "SCREENCAST_ALLOWED_DIRS": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FFPROBE_PATH": "<VALUE>",
        "SCREENCAST_WHISPER_MODEL": "<VALUE>",
        "SCREENCAST_MAX_RECORDING_SEC": "3600",
        "SCREENCAST_JOB_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_RETENTION_DAYS": "<VALUE>",
        "SCREENCAST_PS_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_CONFIRM_CAPTURE": "<VALUE>",
        "SCREENCAST_TOOLSETS": "<VALUE>",
        "SCREENCAST_DEBUG_JOBS": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-tmhsdigital-screencast-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tmhs/screencast-mcp"
      ],
      "env": {
        "SCREENCAST_HOME": "<homedir>/.screencast-mcp",
        "SCREENCAST_ALLOWED_DIRS": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FFPROBE_PATH": "<VALUE>",
        "SCREENCAST_WHISPER_MODEL": "<VALUE>",
        "SCREENCAST_MAX_RECORDING_SEC": "3600",
        "SCREENCAST_JOB_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_RETENTION_DAYS": "<VALUE>",
        "SCREENCAST_PS_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_CONFIRM_CAPTURE": "<VALUE>",
        "SCREENCAST_TOOLSETS": "<VALUE>",
        "SCREENCAST_DEBUG_JOBS": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-tmhsdigital-screencast-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tmhs/screencast-mcp"
      ],
      "env": {
        "SCREENCAST_HOME": "<homedir>/.screencast-mcp",
        "SCREENCAST_ALLOWED_DIRS": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FFPROBE_PATH": "<VALUE>",
        "SCREENCAST_WHISPER_MODEL": "<VALUE>",
        "SCREENCAST_MAX_RECORDING_SEC": "3600",
        "SCREENCAST_JOB_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_RETENTION_DAYS": "<VALUE>",
        "SCREENCAST_PS_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_CONFIRM_CAPTURE": "<VALUE>",
        "SCREENCAST_TOOLSETS": "<VALUE>",
        "SCREENCAST_DEBUG_JOBS": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-tmhsdigital-screencast-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tmhs/screencast-mcp"
      ],
      "env": {
        "SCREENCAST_HOME": "<homedir>/.screencast-mcp",
        "SCREENCAST_ALLOWED_DIRS": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FFPROBE_PATH": "<VALUE>",
        "SCREENCAST_WHISPER_MODEL": "<VALUE>",
        "SCREENCAST_MAX_RECORDING_SEC": "3600",
        "SCREENCAST_JOB_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_RETENTION_DAYS": "<VALUE>",
        "SCREENCAST_PS_TIMEOUT_MS": "<VALUE>",
        "SCREENCAST_CONFIRM_CAPTURE": "<VALUE>",
        "SCREENCAST_TOOLSETS": "<VALUE>",
        "SCREENCAST_DEBUG_JOBS": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
SCREENCAST_HOME No Output is written under SCREENCAST_HOME (default <homedir>/.screencast-mcp) into recordings/, frames/, screenshots/, and edits/. Default: <homedir>/.screencast-mcp
SCREENCAST_ALLOWED_DIRS No Semicolon-separated folders tools may read from and write to besides SCREENCAST_HOME; when set (or when the client sends roots), files elsewhere are refused. Also allows overwriting files in these folders
FFMPEG_PATH No Path to the ffmpeg executable. ffmpeg and ffprobe are external dependencies and must be on PATH, or pointed at via the FFMPEG_PATH / FFPROBE_PATH environment variables. The server detects them per call and returns a clear error with an install hint if either is missing.
FFPROBE_PATH No Path to the ffprobe executable. ffmpeg and ffprobe are external dependencies and must be on PATH, or pointed at via the FFMPEG_PATH / FFPROBE_PATH environment variables. The server detects them per call and returns a clear error with an install hint if either is missing.
SCREENCAST_WHISPER_MODEL No Speech to an SRT file, locally, with FFmpeg 8's whisper filter (needs a whisper.cpp model: pass model or set SCREENCAST_WHISPER_MODEL).
SCREENCAST_MAX_RECORDING_SEC No Set SCREENCAST_MAX_RECORDING_SEC to change the default recording cap (0 disables it). Every recording also has a maxDurationSec cap (default one hour). Default: 3600
SCREENCAST_JOB_TIMEOUT_MS No The job timeout scales with the media's length (at least 10 minutes, or 4x the duration); set SCREENCAST_JOB_TIMEOUT_MS to override it.
SCREENCAST_RETENTION_DAYS No At startup, delete screenshots, frames, leftover raw event logs, and index_recording indexes older than this many days (never recordings or edits; off by default)
SCREENCAST_PS_TIMEOUT_MS No Limit in milliseconds for the PowerShell helpers that list monitors and windows and run OCR (default 20000; OCR 60000)
SCREENCAST_CONFIRM_CAPTURE No Confirm each live capture through MCP elicitation: auto (default) asks when the client supports it, 1/always also refuses captures in clients that cannot ask, 0/off never asks
SCREENCAST_TOOLSETS No Comma-separated toolsets to load: capture, watch, edit, produce, audio (doctor and get_media_info are always on; default all)
SCREENCAST_DEBUG_JOBS No 1 traces each edit job on stderr (start, a heartbeat every 30 s, and the end) to diagnose a stuck edit; default off

Similar servers