🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@mcpware/pagecast

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcpware/pagecast

Record any browser page as GIF or video via MCP — powered by Playwright + ffmpeg

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
173
-2.26%
Maintainers
1
Weekly downloads
 
Created
Source

Pagecast

npm version license GitHub stars GitHub forks

English | 廣東話

The MCP server that turns agent-run browser sessions into GIFs and videos you can actually ship.

Tell your AI to record what it does. It opens a browser, does the thing, and hands you back a GIF, WebM, or MP4. You watch it happen live.

The demo below was recorded by Pagecast itself. Yes, really.

Moltbook Demo

Why

You built a web app. You need a demo GIF for the README. So you:

  • Open a screen recorder
  • Manually click through the demo
  • Export, crop, optimize
  • UI changes → repeat everything

Or — you tell your AI:

"Go to https://myapp.localhost:3000, play around with it for 5 seconds and make a GIF"

The AI calls record_and_gif → outputs recordings/recording-{id}.gif. Done.

The browser is visible by default — you watch the AI work in real time.

Use Cases

What you sayWhat happensOutput
"Record my app and make a demo GIF"AI opens browser, interacts, exports GIF.gif
"Log into dashboard, toggle dark mode, record it"AI performs full workflow, captures everything.webm .mp4
"Submit an empty form, record what errors show up"AI does QA, you review the recording later.webm
"Walk through the signup flow and record a video"AI creates onboarding documentation.mp4
"Post on Moltbook and record yourself doing it"AI records its own marketing material 🤯.gif
"Record my app in 1080x1920 for an IG Reel"AI records in vertical format for social media.mp4

📐 Any size. Any platform.

Record in any viewport size — the AI opens a real browser at whatever dimension you need:

FormatSizeFor
1280×72016:9GitHub README, YouTube, docs
1080×19209:16IG Reels, TikTok, YouTube Shorts
1080×10801:1Instagram posts, LinkedIn
CustomAnyWhatever you need

Quick Start

Node.js ≥ 20 and ffmpeg required.

# Add to Claude Code
claude mcp add pagecast -- npx -y @mcpware/pagecast

# Or run directly
npx @mcpware/pagecast

# Headless mode (no visible browser)
claude mcp add pagecast -- npx -y @mcpware/pagecast --headless

# First time: install browser
npx playwright install chromium

MCP Tools

ToolWhat it does
record_pageOpen a URL in Chromium, start recording. Returns session ID
interact_pagescroll, click, hover, type, press keys, select dropdowns, navigate — all captured on video
stop_recordingStop and save as .webm
convert_to_gifWebM → optimized GIF (two-pass palette, configurable FPS/width/trim)
convert_to_mp4WebM → MP4 (H.264, widely compatible for social/sharing/embedding)
record_and_gifAll-in-one: record URL for N seconds → GIF
list_recordingsList all .webm, .gif, and .mp4 files in output directory

How It Works

AI → MCP tools → Playwright (headed browser + video capture)
                       ↓
                  .webm recording
                       ↓
              ffmpeg two-pass palette
                       ↓
               optimized .gif / .mp4
  • record_page launches Chromium with recordVideo enabled
  • interact_page performs actions — scroll, click, hover, type, press keys
  • stop_recording flushes the video to disk
  • convert_to_gif runs two-pass ffmpeg: first extracts an optimal 256-color palette from all frames, then encodes with Bayer dithering. Way better quality than single-pass.

Comparison

ToolAutomatedInteractionsOutputAI-driven
Pagecast✅ click/type/scroll/hoverGIF + WebM + MP4
gifcap.devGIF
Peek / ScreenToGif / KapGIF
Playwright MCP (official)Screenshot onlyPartial
playwright-record-mcpWebM onlyPartial
VHS (Charmbracelet)Terminal onlyGIF

Pagecast is the only MCP that does browser recording + AI interactions + GIF/video output.

Configuration

SettingDefaultNotes
BrowserHeaded (visible)--headless for background
GIF FPS10Higher = smoother, larger
GIF width640pxHeight auto-scaled
Video viewport1280×720Downscaled for GIF
Output dir./recordingsOverride: RECORDING_OUTPUT_DIR

Architecture

src/
├── index.js       # MCP server — 7 tools, stdio transport
├── recorder.js    # Playwright browser lifecycle + sessions
└── converter.js   # ffmpeg two-pass GIF conversion
  • Headed by default — watch what the AI does
  • Lazy browser — Chromium only launches on first recording
  • Session-based — multiple simultaneous recordings
  • One browser, multiple contexts — each recording is isolated
  • execFile not exec — safe against shell injection

More from @mcpware

ProjectWhat it doesInstall
UI AnnotatorHover any element to see its name — zero extensions, any browsernpx @mcpware/ui-annotator
Claude Code OrganizerVisual dashboard for memories, skills, MCP servers, hooksnpx @mcpware/claude-code-organizer
Instagram MCP23 tools for the Instagram Graph APInpx @mcpware/instagram-mcp

License

MIT

Keywords

mcp

FAQs

Package last updated on 21 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts