start_recording
Start Recording
Start a background screen recording. Returns a session id; finalize it with stop_recording. Never auto-starts.
fpskeysaudiocursoreventsoutputtargetrequiredwebcambackendencoderqualityoverwrite+3 more
io.github.TMHSDigitalPublished by GitHub account TMHSDigitalv0.48.0Updated Nov 1, 2026
Let AI agents record the Windows screen, watch it as frames, and edit it with ffmpeg
Windows screen recorder MCP server that lets an agent record the desktop, watch the footage as frames, and edit it locally with ffmpeg.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Follow the launch instructions in the repository.
An MCP server that lets an agent record the screen, watch the footage, and make minimal ffmpeg edits — over stdio, on Windows.
Capture the desktop, a monitor, a window, or a region; sample a recording into frames the agent can actually look at; trim, crop, redact, annotate, zoom toward clicks, and export for GitHub or social. No cloud service, no telemetry: ffmpeg and ffprobe behind 58 typed tools.
For developers who want their coding agent to see and prove UI changes on Windows: bug repros, UI verification, and demo clips the agent records, checks, and edits itself. Capture is Windows-only; the watch and edit tools work on any OS with ffmpeg. Free for non-commercial use (CC BY-NC-ND 4.0); why not OBS, Playwright, or a screenshot MCP?
[npm] [MCP Registry] [CI] [License: CC BY-NC-ND 4.0] [Last commit]
[TypeScript] [Node.js] [Model Context Protocol] [ffmpeg] [Capture]
Made with the tool: start_recording with events: true, one click, then zoom { highlightClicks: true } and export_gif. How it was made · more workflows
Quick start · Tools · Configuration · More docs · Privacy
The fastest path: npx -y @tmhs/screencast-mcp setup checks FFmpeg 8, OCR, and speech, offers winget install Gyan.FFmpeg when FFmpeg is missing, and adds the server to Claude Desktop, Claude Code, Cursor, and VS Code (backing up each config). --dry-run shows the changes first; --test records a 3-second GIF to prove it works. Or set it up by hand:
You need Windows 10 or 11, Node.js 22+, and FFmpeg 8 or newer on PATH (winget install Gyan.FFmpeg, the full build). Older builds run most tools, but transcribe (the whisper filter) and backend: "wgc" (gfxcapture) need FFmpeg 8, and essentials or distro builds can lack them (Ubuntu LTS apt install ffmpeg gives 6.x). Capture is Windows-only; the watch, edit, and produce tools work anywhere ffmpeg runs. After connecting, ask the agent to run doctor: it reports the ffmpeg version, the filters and devices it has, OCR, and anything missing.
Add it to your client:
Then ask your agent:
Record my VS Code window for five seconds while I reproduce the bug, then show me the frames where something changed.
More in the workflows: a bug-repro GIF for a PR, a README demo, a UI verification loop, a social clip, a cheap review of a long recording, zoom toward clicks, and the whole edit in one call.
The core is the watch loop: the agent records, samples the footage into frames it can see, and checks what actually happened on screen. Capture only ever happens on an explicit tool call, and output lands under SCREENCAST_HOME, never in your checkout.
58 tools in 6 toolsets, generated from the server's own schemas by npm run docs (do not edit between the markers). Each name links to its reference page with every parameter, an example call, and what it returns; mcp-tools.json is the same list as JSON, and llms-full.txt all of it in one file.
Always loaded, whatever SCREENCAST_TOOLSETS selects.
Record or screenshot the desktop, a monitor, a window, or a region. Every capture is an explicit tool call: nothing records on its own.
Turn footage into something a model can read: frames, contact sheets, diffs, OCR, and a searchable text timeline.
Cut, convert, compress, and redact. A tool that writes a file refuses to replace an existing output unless overwrite: true; default output paths are always unique.
Annotate, frame, and assemble a finished piece. Tools that combine clips normalize each input to a common resolution, fps, and audio rate first.
Extract, clean up, level, transcribe, and score the soundtrack.
[!IMPORTANT]
redact_regioncovers only the rectangles you declare; it is not automatic secret detection (usefind_textwithredact: trueto locate them). Prefer the defaultboxstyle for real secrets: it is a solid, irreversible fill, whileblurandpixelatecan be partially recovered.
Every capture tool takes one target string: full, monitor:<index>, window:<title>, window:exe=<app.exe>, window:hwnd=<handle>, or region:<x>,<y>,<w>,<h>; list_targets returns ready-made ones. See start_recording and the Windows notes for how windows, monitors, and backend: "wgc" are captured.
ffmpeg and ffprobe must be on PATH, or set FFMPEG_PATH / FFPROBE_PATH. All settings are optional environment variables; doctor reports the ones in effect.
Usage: workflows walk through real tool calls and outputs: a bug-repro clip, a README demo, a UI verification loop, a social clip, a long-recording review, zoom toward clicks, and the whole edit in one pipeline call. Each tool's parameters and results are on its reference page.
Command line and CI: the same package is a headless CLI (npx -y @tmhs/screencast-mcp record -- npm run test:e2e, ... call doctor), and a GitHub Action records your test run on windows-latest and uploads the evidence on failure (being published to GitHub Marketplace). See the CI page:
Prompts and resources: the server also ships MCP prompts that clients show as slash commands (bug-repro-clip, file-bug-report, document-steps, demo-gif, verify-ui-change, review-recording) and screencast://sessions resources for attaching recordings without a filesystem tool.
Threat model and Windows notes: what capture can expose, and how window, monitor, WGC, and system-audio capture behave, are on the docs home page.
find_text) and speech (narrate) use the engines built into Windows.SCREENCAST_HOME (recordings/, screenshots/, frames/, edits/, sessions.json) unless a call names another path. find_text, wait_for_change, and screen_diff delete their captures after the call by default.start_recording events: true (or cursor: "events"), and only while that recording runs: clicks, scrolls, and cursor positions system-wide, and typing as bursts on a 0.5 s grid with no key names (keys: "shortcuts" also names Ctrl/Alt/Win chords). There is no microphone capture; system audio only with audio.source = system.SCREENCAST_HOME, or set SCREENCAST_RETENTION_DAYS; recordings and edits are never deleted automatically.Issues and pull requests are welcome — see CONTRIBUTING.md (development setup and project structure) and the Code of Conduct. Security reports go through SECURITY.md.
Released under the CC-BY-NC-ND-4.0 license: free to use and share for non-commercial purposes, with attribution and without modification. For other uses, open an issue.
Can I use it at work? Only for non-commercial purposes under this license. If your use is commercial (inside a paid product or service, or work done mainly for commercial advantage), or you are not sure, open an issue to ask about a commercial license. The licensing model is described in the TMHSDigital licensing standard.
Source: README.md at commit 880b43e
Start Recording
Start a background screen recording. Returns a session id; finalize it with stop_recording. Never auto-starts.
fpskeysaudiocursoreventsoutputtargetrequiredwebcambackendencoderqualityoverwrite+3 moreStop Recording
Stop a recording gracefully so the file is finalized; returns the path and duration.
savesessionIdrequiredPause Recording
Pause a recording; until resume_recording nothing is captured, and the gap is left out of the file, events, and markers.
sessionIdrequiredResume Recording
Resume a paused recording (same target and settings).
sessionIdrequiredSave Replay
Save the last N seconds of a replay buffer (start_recording replayBufferSec) to an mp4; the buffer keeps running.
outputlastSecreencodeoverwritesessionIdrequiredList Sessions
List all recording sessions (active and finished) with their status, target, output path, and whether the process is still alive.
Takes no parameters.
Get Session
Inspect a single recording session by id, including live status and whether its output file exists on disk.
sessionIdrequiredRead Input Events
Read the input events (clicks, scroll, cursor, shortcuts, typing bursts) of a recording made with events: true, in video seconds and pixels; e.g. types: ['down'], then sample_frames there.
tofrominputlimittypessessionIdinFrameOnlyAdd Marker
Mark a labelled moment on a recording, live or at a second. Kept in the session and a sidecar; chapters and pipeline turn markers into chapters.
atinputlabelrequiredsessionIdReview Recording
Open a recording for a person to review: in MCP Apps clients an inline player to scrub, trim, and redact, then export; elsewhere just the video's details.
inputsessionIdTake Screenshot
Capture one PNG of the screen, a monitor, a window, or a region, returned inline and by path.
outputtargetrequiredbackendoverwriteexactTitlereturnImagemaxImageWidthSample Frames
Sample PNG frames from a video (by fps, timestamps, or scene changes) and return the first few inline so the model can see what happened.
fpsmodeinputrequireddedupemaxFramesoutputDirtimestampsreturnImagesmaxImageWidthsceneThresholdmaxInlineImagesContact Sheet
Tile timestamped frames of a video into one image to see a whole recording at a glance (the cheapest first look).
modecountinputrequiredoutputpostercolumnsoverwritetileWidthreturnImagemaxImageWidthsceneThresholdScreen Diff
Compare two screenshots or frames: SSIM score, changed share, and changed boxes in b's pixels, to check a UI change happened only where expected.
arequiredbrequiredreturnImagepixelThresholdWait for Screen Change
Wait until part of the screen changes or settles, instead of guessing a sleep. Returns the elapsed time, changed regions (screenshot pixels; add `origin` for desktop), and the final state.
keepmodetargetrequiredsettleSecexactTitleintervalMstimeoutSecreturnImagepixelThresholdFind Text (OCR)
OCR (built into Windows) on the screen, an image, or video frames, with line and match boxes in image pixels (add `origin` for desktop coordinates). Locate UI text or secrets (e.g. regex 'sk-|ghp_|api.?key') to redact. Best-effort: review results.
keepinputqueryregexredacttargetbackendmaxFramestimestampexactTitlereturnImagescanEverySecIndex Recording
Build a recording's text timeline (<video>.index.json: OCR per scene, events, markers, transcript) for search_recording.
forceinputmaxFramessessionIdtranscriptsceneThresholdSearch Recording
Search an index_recording timeline (screen text, events, markers, transcript): timecoded hits, best first, secrets masked. No frames unless asked.
inputlimitqueryrequiredregeximagessessionIdGet Media Info
Probe a media file with ffprobe and return duration, resolution, frame rate, codecs, container format, and size.
inputrequiredTrim Video
Cut a video down to one sub-clip by start + (end or duration). For several segments use clip; to combine with other edits use pipeline.
endexactinputrequiredstartrequiredoutputdurationoverwriteConcatenate Videos
Join videos end to end with hard cuts: stream copy when they match, else a re-encode (`mode` says which). For transitions use xfade_transition or assemble_highlights.
inputsrequiredoutputoverwriteConvert Format
Convert media to mp4, webm, or gif. For a size-bounded GIF/WebP prefer export_gif; for a smaller mp4, compress or export_preset.
fpsinputrequiredwidthformatrequiredoutputoverwriteExport GIF or WebP
Export an animated GIF or WebP that fits a size budget (for PRs, issues, READMEs), stepping fps, width, and quality down until it fits.
fpsinputrequiredstartwidthformatoutputdurationmaxBytesoverwriteCrop Video
Crop a video to a pixel rectangle; one running off the frame is rejected.
xrequiredyrequiredinputrequiredwidthrequiredheightrequiredoutputoverwriteScale Video
Resize a video to a target width and/or height and re-encode. Provide one side to keep the aspect ratio, or both to set an exact size.
inputrequiredwidthheightoutputoverwriteChange Speed
Change playback speed by a factor (>1 faster, <1 slower) and re-encode. Audio is retempo'd to match when the source has an audio track.
inputrequiredfactorrequiredoutputoverwriteOverlay Image or Video
Composite an image or video (logo, watermark, picture-in-picture) onto a video at a pixel position, optionally scaled and time-limited; keeps the base's audio and length.
xrequiredyrequiredendinputrequiredshapestartwidthheightoutputoverlayrequiredoverwriteAdd Callouts
Annotate a video with timed boxes, text labels, and arrows. Fallback fonts used are listed in fallbackFonts; characters no font covers are reported in warnings.
inputrequireditemsrequiredoutputfontFileoverwriteKeystroke Overlay
Burn keycast-style badges for shortcuts, clicks, and typing from the recording's input event log (start_recording events: true). Never shows typed text: the log has none.
keyssizecolorinputrequiredclicksdryRuneventsoutputtypingfontFilepositionlingerSec+1 moreRe-rendered Cursor
Draw a smoothed, scaled cursor that hides when idle from the event log of a start_recording cursor: "events" recording (no OS cursor in the video), with click ripples and an optional spotlight.
sizeinputrequiredclicksdryRuneventsoutputoverwritesmoothingspotlighthideAfterSecAdd Backdrop
Frame a video or screenshot on a gradient, color, or wallpaper with padding, rounded corners, and a drop shadow, optionally on a 16:9/1:1/9:16/4:5 canvas.
imageinputrequiredaspectcolorsoutputpresetradiusshadowpaddingoverwriteshadowOpacityCompress Video
Re-encode a video smaller (H.264 CRF ladder, optional width cap). For a platform target use export_preset.
inputrequiredleveloutputmaxWidthoverwriteExtract Audio
Extract the audio track of a media file to its own file (mp3, aac, wav, or copy). Returns the output path.
inputrequiredformatrequiredoutputoverwriteNormalize Loudness
Normalize loudness to a delivery target (two-pass EBU R128 loudnorm); video is copied. Reports loudness before and after.
inputrequiredoutputtargetoverwriteDenoise Audio
Reduce steady background noise (fan, hum, hiss) in a recording's audio with an adaptive FFT denoiser. Video is copied untouched. Returns the output path.
inputrequiredoutputstrengthoverwriteTranscribe Speech
Transcribe a recording's speech to an SRT subtitle file, locally, with FFmpeg 8's whisper filter (needs a whisper.cpp model file). Returns the SRT path and the text. Pair with burn_subtitles to caption the video.
inputrequiredmodelwordsoutputlanguageoverwriteBurn In Subtitles
Burn SRT/ASS subtitles (e.g. from transcribe) into a video in the bundled font.
inputrequiredstyleoutputoverwritesubtitlesrequiredChapters
Write chapters (markers, scene changes, transcript, or a list) into an mp4/mkv/mov copy without re-encoding; returns YouTube chapter text. Can mux an SRT as soft subtitles.
frominputoutputchapterstextOnlyoverwritesessionIdsubtitlestranscriptminChapterSecsubtitleLanguageExtract Clips
Extract several frame-exact segments, each to its own file. For one segment, trim does the same.
inputrequiredoutputsegmentsrequiredoverwriteCut Idle Stretches
Remove dead air: cut stretches where the screen is frozen (and silent), keeping a short pad. Returns the time saved.
inputrequireddryRunoutputkeepSecuseAudiooverwriteminIdleSecCut By Transcript
Edit a video by its transcript: cut quoted text, cue numbers, or fillers. Also writes the re-timed .srt.
srtrequiredinputrequireddryRunoutputremovefillersoverwriteRedact Regions
Cover given rectangles in a video (e.g. secrets on screen). Not automatic detection: find them with find_text redact: true. Off-frame regions are rejected.
padcolorinputrequiredstyleoutputregionsrequiredoverwriteList Audio Devices
List DirectShow audio devices and flag a likely loopback (Stereo Mix or a virtual-audio driver), for start_recording's audio.device.
Takes no parameters.
List Video Devices
List DirectShow cameras for start_recording's webcam.device.
Takes no parameters.
List Capture Targets
List the desktop, monitors, and visible windows (topmost first, with capturability per backend). Each entry has a `target` string to pass as-is to capture tools; use it instead of guessing a title.
exetitleContainscapturableOnlyCheck Setup
Check the setup: ffmpeg/ffprobe (FFmpeg 8+?), optional filters, capture devices, Windows OCR, settings, and enabled toolsets; `problems` says what is missing and how to fix it. Call on first use or when a tool reports a missing feature.
Takes no parameters.
Crossfade Transition
Join two videos with an xfade transition (audio crossfaded); they need not match in size, fps, or audio. For more clips use assemble_highlights.
inputArequiredinputBrequiredoutputdurationoverwritetransitionAssemble Highlights
Stitch clips (including title cards) into one video with cuts or xfade transitions; they need not match in size, fps, or audio.
fpsclipsrequiredwidthheightoutputdurationoverwritetransitionTitle Card
Generate a title card clip (centered text on a solid background, silent audio track) to stitch in with assemble_highlights. Uncoverable characters are reported in warnings.
bgfpsboldtextrequiredwidthheightoutputdurationfontFilefontSizefontColoroverwriteAdd Music Bed
Lay music under a video: looped or trimmed to length, faded, leveled, and mixed with any existing audio. Video is stream-copied.
duckmusicrequiredvideorequiredfadeInoutputfadeOutoverwritemusicVolumeNarrate
Offline voiceover with the built-in Windows voices: speaks each line at its time or marker over the audio, plus an SRT.
duckratelinesrequiredvideorequiredvoiceoutputoverwriteReframe Aspect Ratio
Re-aspect a video to 16:9, 9:16, 1:1, or 4:5 by padding or cropping.
fitinputrequiredaspectrequiredoutputoverwriteZoom and Pan
Smooth animated zoom-and-pan into the action and back out, from keyframes or planned from logged clicks or screen changes.
inputrequireddryRuneventsfollowoutputholdSecmaxZoomkeyframesoverwritetransitionSechighlightColorhighlightClicksEdit Pipeline
Run several edits (trim, crop, scale, speed, cut_idle, redact, callout, keystroke_overlay, cursor, reframe, zoom, backdrop, audio, burn_subtitles, then optionally export_preset or export_gif) in one ffmpeg pass: one re-encode, no intermediate files. Prefer it over chaining edit tools; a recipe does the usual polish in one call.
inputrequiredstepsdryRunoutputrecipequalitychaptersoverwriteExport for Platform
Encode a platform-ready H.264 file (aspect, fps, bitrate, faststart) for a named platform.
fitinputrequiredoutputplatformrequiredoverwriteBug Report Package
Package a recording as a paste-ready repro folder: secret-scanned, redacted clip and GIF, contact sheet, steps from the event log, OCR'd errors, environment, report.md for gh issue create --body-file.
endgifinputstarttitleactualredactclipSecregionsexpectedmaxBytesmaxFrames+6 moreStep-by-Step Guide
Turn a recording's event log into a numbered how-to: a ringed screenshot and caption per step, marker headings; Markdown and/or one HTML file. Never includes typed text.
ocrinputtitleformatoutputDiroverwritesessionId80% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
Declare a license in the repository or the registry entry.
{ "mcpServers": { "screencast": { "command": "npx", "args": ["-y", "@tmhs/screencast-mcp"] } } }- uses: TMHSDigital/screencast-mcp@v0 with: command: npm run test:e2e