Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To capture a screenshot with MCP, configure the official Playwright MCP server in your MCP client, navigate to the page, and call browser_take_screenshot. Use no target for the current viewport, target for one element, or fullPage: true for the entire scrollable page. Add filename to save the image; omit it to receive the image inline.

This guide covers setup, element targeting, full-page captures, image formats, resolution, file locations, troubleshooting, and an API alternative when you do not want to maintain a browser session.

What you need

  • Node.js 20 or newer.
  • An MCP client such as Claude, Cursor, or another client that supports MCP servers.
  • The official Playwright MCP package, started with npx @playwright/mcp@latest.

Playwright MCP can run headed by default or headless with its headless option. It supports Chromium-family browsers, Firefox, WebKit, and Edge, along with persistent sessions. Separately managed or headed deployments can use HTTP transport, and an existing Chromium instance can be reached through a CDP endpoint.

Configure the Playwright MCP server

Add a server entry to your MCP client’s configuration. The exact configuration-file location and JSON wrapper differ between clients, but the command is the same:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Audio Express AXHDCAP 4K HDMI Video Capture Card, Cam Link Card Game Audio Adapter HDMI to USB 2.0 Record Capture Device for Streaming, Live Broadcasting, Video Conference, Teaching, Gaming
  • [Enhanced 4K-1080P Video Capture Experience] Capture the Magic: Elevate your video recordings to new heights with our upgraded anti-static 1080P Video Capture Card. Immerse yourself in stunning visuals, supporting HDMI input at 4K 60FPS and USB output for capturing in 1080P, complete with rich stereo sound. Enjoy crystal-clear video recordings, dynamic gaming live streams, and professional conference broadcasts. Note: HDMI resolution: Max input can be 3840×2160@30Hz / Video output resolution: Max output can be 1920×1080@30Hz
  • [Seamless Real-Time Preview] Stay in the Moment: Our advanced ultra-low latency technology ensures seamless real-time transmission of video streams. Experience instant, lag-free previews, allowing you to capture every detail precisely. Effortlessly record video directly to your hard disk, all without compromising on quality or introducing any delays.
  • [Versatility and Broad Compatibility] Your Creative Hub: Connect your DSLR, camcorder, or action camera to a wide range of operating systems, including Windows, MacOS, and Linux. Unlock a world of possibilities with real-time streaming to popular platforms like Twitch, Youtube, OBS, Zoom, Potplayer, and VLC, giving you the tools to share your content effortlessly.
  • [Effortless Plug and Play] Simplicity Redefined: Say goodbye to complex installations. Our plug-and-play design eliminates the need for drivers or external power supplies. Seamlessly integrate high-definition acquisition into various scenarios, whether it's educational recordings, immersive gaming, precise medical imaging, captivating live streams, or professional broadcasting.
  • [Seize Every Detail with Precision] Unleash your creativity and attention to detail with our video capture card. Capture every nuance, every color, and every moment with precision, thanks to the enhanced capabilities of our technology. Whether you're a content creator, a gamer, or a professional, our capture card empowers you to seize the finest elements and bring them to life in your recordings and live streams.
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

Save the configuration, restart or reload the MCP client, and confirm that Playwright tools appear. If your client supports a graphical server manager, create a server named playwright, choose the npx executable, and enter @playwright/mcp@latest as its argument.

Headless and remote operation

For a server that must run without a desktop, add the documented --headless option to the arguments. Use HTTP transport when the MCP client and browser service are managed separately. If a browser is already running, configure the server to connect to its Chrome DevTools Protocol endpoint instead of launching a new browser.

Security warning for browser code

The browser_run_code_unsafe tool executes arbitrary JavaScript in the Playwright server process and is equivalent to remote-code execution. Enable it only for MCP clients you trust, and do not expose an unrestricted server to untrusted users or networks.

Capture a viewport screenshot

  1. Ask the MCP client to open the target URL, for example https://example.com.
  2. Wait for the page to finish the navigation or for the content you need to appear.
  3. Call browser_take_screenshot without a target or fullPage option.

The default result is an image of the current viewport. To persist it, provide a filename:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
{
  "filename": "artifacts/homepage.png",
  "type": "png"
}

The path is interpreted by the MCP server’s environment. A relative path is therefore saved relative to the server process’s working directory, not necessarily the folder containing your MCP client. Use an absolute path or a known shared artifact directory when another process must consume the file. If you omit filename, the image is returned inline in the tool response rather than saved as a file.

Rank #2
Capture Card, 4K HDMI Video Capture Card, Game Capture Card, 1080P 60FPS Video Capture Device, HDMI to USB 3.0 Capture Card for Streaming, Work with Camera/Xbox/PS4/PS5/PC/OBS
  • 【1080P HD High Quality】Capture resolution up to 1080p for video source and it is ideal for all HDMI devices such as PS4, PS3, Xbox One, Xbox 360, Wii U, DVDs, DSLR, Camera, Security Camera and set top box. Note: Video input supports 4K30/60Hz and 1080p120/144Hz. Does not support 4K120Hz/144Hz. Output supports up to 2K30Hz.
  • 【Plug and Play】No driver or external power supply required, true PnP. Once plugged in, the device is identified automatically as a webcam. Detect input and adjust output automatically. Won't occupy CPU, optional audio capture. No freeze with correct setting.
  • 【Compatible with Multiple Systems】suitable for Windows and Mac OS. High speed USB 3.0 technology and superior low latency technology makes it easier for you to transmit live streaming to Twitch, Youtube, Facebook, Twitter, OBS, Potplayer and VLC.
  • 【HDMI LOOP-OUT】Based on the high-speed USB 3.0 technology, it can capture one single channel HD HDMI video signal. There is no delay when you are playing game live.
  • 【Support Mic-in for Commentary】Rybozen capture card has microphone input and you can use it to add external commentary when playing a game. Please note: it only accepts 3.5mm TRS standard microphone headset.

Capture a full-page screenshot

Set fullPage to true:

{
  "fullPage": true,
  "filename": "artifacts/long-page.webp",
  "type": "webp"
}

Playwright scrolls through the page as needed and captures the complete scrollable document, including content that is initially below the fold. Lazy-loaded images may need time to load before capture. If the page reveals content only after interaction, perform that interaction first and then call the screenshot tool.

Do not combine target and fullPage. They represent different capture scopes: one element versus the whole document.

Screenshot one element

Use the accessibility snapshot before taking an element screenshot. Call browser_snapshot to inspect roles, names, text, and stable element references. Then pass the chosen reference or a selector as target:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
{
  "target": "ref=e42",
  "filename": "artifacts/pricing-card.png",
  "type": "png"
}

A CSS selector can also be used when it is stable:

{
  "target": ".pricing-card--pro",
  "type": "jpeg",
  "filename": "artifacts/pro-card.jpg"
}

Prefer a snapshot reference when the page exposes one; it is tied to the current accessibility tree and avoids guessing at complex selectors. Re-run the snapshot after major page changes, navigation, or modal interactions because references can become stale.

Choose format and resolution

Option Values When to use it
type png, jpeg, webp PNG for lossless UI or text; JPEG for photographic content and smaller files; WebP for a modern size-quality balance.
scale Default CSS scale or "device" Use "device" for a high-resolution image based on device pixels, useful for visual review and retina documentation.
filename A server-accessible path Save an artifact for tests, reports, or later processing. Omit it for an inline response.
{
  "type": "png",
  "scale": "device",
  "filename": "artifacts/retina-view.png"
}

Device scale increases pixel dimensions and file size. It does not change the page’s CSS layout or viewport dimensions.

Rank #3
Guermok Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P 60FPS & 2K 30FPS
  • 【1080P 60FPS Video Capture Card】 This HDMI game capture card is based on USB3.0 high speed transmission port, input resolution up to 4K@30HZ, output resolution up to 2K@30Hz or 1920×1080@60Hz. Type c and USB interface can meet most of the devices in daily life. Easily meet the online capture, real-time recording, online meetings, live gaming and other functions, so you have a better visual enjoyment. Note: For capture use only; requires capture software to function and is not intended for direct screen casting to a monitor or TV
  • 【Ultra Low Latency Screen Sharing】 HDMI capture card is made of good quality aluminum alloy with strong heat dissipation, allowing you to enjoy ultra low latency while live gaming or video recording or live streaming, avoiding blue screens and lag. This HDMI to USBC capture card supports easy recording of good quality audio or HD video and transferring it to your computer or streaming platform, allowing you to record 60 fps HD video directly on your hard drive and real-time preview
  • 【Plug and Play, Easy to Carry】 This HDMI 1080P video capture card does not require any additional drivers or external power supply, just plug and play for fast capture. The capture card is small and lightweight, so you can put it in your bag for emergencies, making it very portable for outdoor live streaming. It's also a great way to share content in game recording, video conference, video recorder and online teaching
  • 【Wide Compatibility USB Capture Card】 Easily streams to Facebook, Youtube or Twitch. With the connection, this HDMI to USB C/3.0 video capture devices can be working on several Operating Systems and various software: Windows 7/ 8/ 10, Mac OS or above, Linux, Android, Laptop, Xbox One, PS3/PS4/PS5, Camera, DVDs, Set Top Box, Webcame, DSLR, Switch/Switch 2, TV BOX, HDTV, Potplayer/VLC, ZOOM, OBS Studio etc.
  • 【Package Content & Note】 1x HD Audio Capture Card , 1x USB 3.0 to USB C Adapter (A-side 3.0, B-side 2.0), 1x user manual. Please note that you need to restart the OBS Studio software after the audio setup is complete, otherwise it will result in no sound output. When using an adapter, if the device is recognized as USB 2.0, try using the other side with the USB-C port. Simply flip the capture card and reconnect it to be recognized as USB 3.0

Snapshots versus screenshots

Task Use Reason
Find a button, heading, dialog, or form control browser_snapshot Returns structured roles, text, and references for reliable interaction.
Prove how a page looks browser_take_screenshot Provides visual evidence, including layout, styling, charts, and canvas output.
Click or fill a control Snapshot reference plus interaction tool Accessibility-tree references are the normal interaction surface.
Document a visual bug Screenshot, optionally after a snapshot-guided setup Captures the rendered state that a user sees.

A screenshot is for looking at; a snapshot is for understanding and operating the page. Use both when you must locate an element and then document its appearance.

Reliable capture workflow

  1. Navigate. Open the exact URL and wait for navigation to settle.
  2. Establish state. Accept a required consent dialog, sign in through an approved test account, or set the viewport and browser context needed for the capture.
  3. Inspect. Run browser_snapshot when you need a control reference or want to confirm that the expected content exists.
  4. Interact. Click tabs, expand accordions, or dismiss overlays before taking the image.
  5. Capture. Choose viewport, element, or full page. Set the output type and filename explicitly for repeatable jobs.
  6. Verify. Check that the returned image is non-empty, has the expected dimensions, and contains the intended state.

Handling dynamic pages

Do not capture immediately after navigation when the page uses client-side rendering, animations, or lazy loading. Wait for a meaningful element through the MCP interaction tools, or pause until the content is stable. For a full-page image, scroll or otherwise trigger lazy loading before capture if the site does not load below-the-fold assets automatically.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Common errors and fixes

The Playwright tools do not appear

Cause: The MCP client has not reloaded its configuration, Node.js is too old, or npx cannot download the package.

Fix: Confirm Node.js is version 20 or newer, run npx @playwright/mcp@latest in the same environment, inspect the client’s server log, and restart the client after editing its configuration.

The screenshot is returned inline but no file exists

Cause: No filename was supplied, or the path was relative to an unexpected server working directory.

Rank #4
Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P60FPS HDMI Capture Card for Streaming, Gaming, Video Recording Compatible with Switch, Xbox, PS4/5, OBS,iPad Mac OS Windows,Camera, Zoom(Silver)
  • 【4K HDMI Input, 2K@30Hz Recording】Powered by a true USB 3.0 high-speed interface, the capture card supports up to 4K@30Hz HDMI input and records at 2K@30Hz or 1080P@60Hz. Perfect for gamers, streamers, and professionals who need crisp, smooth video for live streaming, gameplay recording, or online meetings.
  • 【Ultra Low Latency Screen Sharing】Built with a premium aluminum alloy shell and advanced chipset for stable heat dissipation, ensuring ultra-low latency transmission. Capture high-quality video and dual-channel audio in real time—no lag, no frame drop—ideal for Twitch, YouTube, or OBS streaming.
  • 【Easy Plug and Play, Compact & Portable】No driver or external power required—just plug and play via USB 3.0 or Type-C connection to your Windows or macOS computer. Lightweight and compact design makes it easy to carry for outdoor streaming, live shows, or mobile recording setups.
  • 【Wide Compatibility & Multi-Device Support】Compatible with Windows 7 8 10 11, macOS, Linux,Android and supports most popular software such as OBS, Zoom, VLC, Twitch Studio, and more. Works seamlessly with PS4, PS5, Xbox, Switch, DSLR cameras, TV boxes, and other HDMI-output devices for streaming to YouTube, Twitch, etc.
  • 【What You Get】Includes: HDMI Capture Card, USB 3.0 to USB-C Adapter, User Manual. Tips: Make sure your tablet’s OTG function is enabled before connecting. Test your HDMI device with a monitor first to confirm video and audio output, then connect to the Video Capture Card for recording.

Fix: Supply an absolute path or a documented artifact path. Remember that the MCP server, not the client UI, writes the file.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An element target cannot be found

Cause: The selector changed, the snapshot reference became stale, or the element is inside a state that has not been opened.

Fix: Run browser_snapshot again, open the relevant dialog or tab, and use the new reference. Prefer a specific, stable CSS selector over a brittle positional selector.

The full-page image is missing content

Cause: Lazy loading, delayed API responses, sticky overlays, or an image captured before rendering completed.

Fix: Wait for the content, scroll through the page to trigger lazy loads, close overlays, and capture again. If only one region is required, target that element instead of forcing a very tall document capture.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The page is blank or blocked

Cause: The site may require authentication, reject automation, depend on a browser feature, or be unreachable from the server’s network.

Best Value
Capture Card 4K HDMI Video Streaming to USB 3.0 1080P 60FPS Capture Device
  • High-Quality Video Capture, 4K HDMI Capture Card Ready: Capture smooth and vibrant video with this 4K HDMI capture card, engineered for gamers and content creators who demand crisp 1080P 60FPS video quality. Whether you're streaming to Twitch or recording gameplay for YouTube, your footage will look professional and detailed
  • Plug-and-Play USB Capture Card, No Drivers Needed: Designed as a USB capture card for streaming, this device works instantly out of the box, just plug into your PC or laptop and start capturing. Fully compatible with popular software like OBS Studio, Streamlabs, and XSplit, making setup quick and stress-free for beginners and pros alike
  • Universal Compatibility PS5, Xbox, Switch & More: Stream or record gameplay from virtually any HDMI-enabled device including Nintendo Switch, PS5, Xbox Series X, DSLR cameras, and PCs. The video capture card for gaming supports seamless passthrough so you can play without lag while your audience watches every frame in real time
  • Low-Latency Performance for Smooth Streaming: This capture card for streaming minimizes delay between gameplay and broadcast, so you get reliable, low-latency capture that works well for competitive gaming, live broadcasts, and podcast sessions. Suitable for those building their channel with high-quality, engaging content
  • Compact & Portable Design for Content Creators: Lightweight and portable, this USB 3.0 capture card works well for creators who travel or switch gaming setups often. Throw it in your bag and stream or record wherever you are, at home, events, LAN parties, streaming or studio sessions

Fix: Test the URL in the same browser context, provide the required approved session state, connect through the correct CDP endpoint, and inspect navigation errors. Do not attempt to bypass access controls.

The image is too large

Cause: Full-page capture and device scale multiply pixel dimensions.

Fix: Capture the needed element, use the default scale, choose JPEG or WebP where appropriate, or split a very long document into logical regions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Performance, reliability, and operational choices

  • Viewport versus full page: viewport captures are faster and smaller; full-page captures provide document context but require more rendering and memory.
  • Element versus full page: an element target reduces noise and output size, while a full page is better for archival or layout review.
  • Persistent sessions: useful for repeated authenticated captures, but protect the profile because it can contain cookies and local storage.
  • Headless operation: suitable for CI and servers without a display; headed mode is useful while diagnosing layout or interaction problems.
  • Output naming: include a page or test identifier and a timestamp supplied by your job runner so parallel captures do not overwrite one another.
  • Reproducibility: fix viewport, browser engine, scale, color mode, authentication state, and timing conditions when comparing screenshots.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. One request returns a PNG, JPEG, WebP, or PDF without requiring you to manage Playwright locally. Before capture it accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the result with X-Page-Verdict and X-Billed headers.

cURL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

See the ScreenshotNeo documentation for request options. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf for AI clients. Other options include full-page and CSS-selector captures, 12 device presets or custom viewports, retina scale, custom CSS and JavaScript, clicks, waits, blocked requests, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, TTL caching, signed image links, asynchronous webhooks, bulk capture for up to 100 URLs per call, a usage API, and an OpenAPI specification.

Plan Included shots Price
Free 1,000/month No card
Starter 3,000 $5
Growth 15,000 $15
Pro 60,000 $39
Scale 250,000 $99
Business 1,000,000 $249

Yearly billing gives two months free, and every feature is included on every plan. Create a free ScreenshotNeo account to get 1,000 screenshots a month with no card.

Frequently Asked Questions

Can MCP save a screenshot to my computer?

Yes. Pass a filename to browser_take_screenshot; the Playwright MCP server writes the file in its own environment. Use an absolute or shared path when the client and server run in different environments.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I use Firefox or WebKit instead of Chromium?

Yes. The Playwright MCP deployment supports Chromium-family browsers, Firefox, WebKit, and Edge; select the engine supported by your client configuration and target environment.

What should I use for a visual regression test?

Use a fixed browser engine, viewport, scale, authentication state, and page state, then save deterministic filenames. Use snapshots to locate controls and screenshots as the visual artifact.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.