ScreenshotAPI

v1.0.2
io.github.Screenshot-API/screenshot-mcp Checked 18 hours ago Published 1 month ago

Website screenshots, URL/HTML to PDF, scrolling videos, and web scraping via ScreenshotAPI.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

take_screenshot Take a website screenshot

Captures a screenshot of a web page (or of raw HTML) in a real browser and returns the hosted image URL. By default the image is also returned inline so you can see it — except for full_page captures, which are often too tall to view; set include_image=true to force it. Supports viewport or full-page capture, a single element via 'selector', a pixel region via 'clip', retina output, ad/cookie-banner blocking, CSS/JS injection, clicking elements first, dark mode, custom headers/cookies, proxies, geolocation, and timezone. Each call uses one screenshot credit unless a cached capture is served.

generate_pdf Convert a web page or HTML to PDF

Renders a URL or raw HTML in a real browser and converts it to a PDF, returning the hosted PDF URL. Choose a paper size ('format') for paginated output; without format (and without width/height) the whole page becomes one long continuous PDF page. Supports landscape, page ranges, print backgrounds, print vs screen CSS, and all page preparation options (delay, lazy_load, ad/cookie-banner blocking, CSS/JS injection). Use save_path to save the PDF locally.

ParameterTypeDescription
accept_languagesstringAccept-Language header for localized content, e.g. 'fr-FR,fr;q=0.9'. Default 'en-US,en;q=0.8'.
adjust_topintegerScroll the viewport down this many pixels before capture. Default 0. Not supported for PDFs.
blockarrayResources to block while rendering. For a clean capture use ['ads', 'cookie_banners', 'chat_widgets']. 'tracking' blocks analytics. 'javascript', 'stylesheets', 'xhr', and 'fetch' can break pages or h…
block_specific_requestsstringSpecific request URLs or patterns to block, separated by commas, spaces, or newlines, e.g. 'https://example.com/api/data, https://ads-domain.com'.
blur_selectorstringCSS selector(s) of elements to blur, comma-separated — for redacting emails, account numbers, or other sensitive data.
bucket_namestringBucket to use with byob when several are configured under the same service.
byobbooleanSave the output to your own bucket configured under Storage Integrations in the dashboard (Bring Your Own Bucket). Default false.
click_recursionintegerHow many times to click selector_to_click in sequence. Requires selector_to_click. Default 0.
cookiesstringCookies to set before loading, as 'name=value; other=value;'. Use for pages behind a login.
cssstringCSS injected before capture, e.g. '.header { display: none; }'.
css_urlstringURL of an external stylesheet to inject before capture.
custom_htmlstringRaw HTML to render instead of loading a URL. Takes precedence over url. Inline CSS and JavaScript in the HTML are applied. Useful for pages that are not publicly reachable.
dark_modebooleanRender with the dark color scheme (for sites that support it). Default false.
delayintegerExtra wait in milliseconds after the page loads, before capture. Default 0. Use 1000-5000 for animations, charts, or late-loading content.
enable_cachingbooleanStore this capture in the cache for reuse. Cached captures served later (with fresh=false) do not consume credits. Default false.
enable_incognitobooleanRender in an isolated incognito session with no persisted cookies or storage. Default false.
formatstringPaper size. A4 or Letter for documents and invoices. Omit for a single continuous page.
freshbooleantrue (default) always renders a new capture; false returns a cached capture when one exists from a request with enable_caching=true and identical parameters.
grayscaleintegerDesaturate the output, 0 (full color, default) to 100 (fully grayscale).
headersstringExtra HTTP headers as 'Name: value;' pairs separated by semicolons, e.g. 'Authorization: Bearer abc; X-Test: 1;'.
heightintegerBrowser viewport height in pixels (max 4320). Default 876.
jsstringJavaScript executed in the page before capture, e.g. "document.querySelector('.popup').remove();".
js_urlstringURL of an external JavaScript file to execute before capture.
landscapebooleanLandscape orientation — good for wide tables and dashboards. Default false (portrait).
latitudenumberLatitude reported by the browser Geolocation API.
lazy_loadbooleanScroll through the whole page first so lazy-loaded images and sections render. Default false.
longitudenumberLongitude reported by the browser Geolocation API.
mediastringCSS media type to emulate: 'print' uses the site's print stylesheet, 'screen' matches what a visitor sees.
page_rangestringKeep only these pages, as 'start-end', e.g. '1-3' or '5-5'. Needs a paginated PDF (format or width/height).
print_backgroundbooleanInclude background colors and images in the PDF.
proxystringProxy to route the request through: 'address:port' or 'username:password@address:port' (an http:// prefix is accepted). Useful for geo-specific content or CAPTCHA-prone sites.
remove_selectorstringCSS selector(s) of elements to remove from the page before capture, comma-separated, e.g. '.ad-banner, #sidebar'. Non-matching selectors are ignored.
result_file_namestringCustom file name for the stored output. Non-unique names can overwrite earlier files.
save_pathstringOptional local path to also save the file to, e.g. './shots/home.png'. A directory path (ending in '/' or an existing directory) keeps the remote file name. Relative paths resolve against the MCP serv…
scroll_delayintegerMilliseconds to wait between scroll steps when lazy_load is true. Default 500. High values on long pages can hit the timeout.
scroll_to_elementstringCSS selector of an element to scroll into view before a viewport capture.
selector_to_clickstringCSS selector of an element to click before capture, e.g. to open a tab, dropdown, or accordion.
storage_servicestringStorage service to use with byob when several are configured: 'aws', 'wasabi', or 'google_cloud'.
template_idstringID of a saved cookie template from the ScreenshotAPI dashboard to apply before navigation.
timeoutintegerMaximum milliseconds the API waits for the page to load before aborting. Default 100000.
timezonestringIANA timezone to emulate, e.g. 'America/New_York', 'Asia/Karachi'. Default is the server timezone.
ttlintegerCache lifetime in seconds when enable_caching is true. Default 2592000 (30 days).
urlstringWebsite URL to render, including the protocol, e.g. 'https://example.com'. Either url or custom_html is required.
user_agentstringCustom User-Agent string, e.g. a mobile Safari UA to get the mobile site.
wait_for_eventstringPage lifecycle event to wait for before capture. 'load' (default) waits for all resources; 'domcontentloaded' is faster but may miss images; 'networkidle' waits until no network requests for 500ms —…
widthintegerBrowser viewport width in pixels (max 7680). Default 1680. Use ~390 to emulate a phone, ~768 for a tablet.

scrape_page Scrape page content as Markdown, text, or HTML

Loads a page in a real browser (JavaScript executed) and extracts its content: clean Markdown (best for reading and summarizing), plain text, the fully rendered HTML, and/or every image URL on the page. Extracted files are fetched and returned inline, truncated to max_content_chars. Works on JavaScript-heavy sites that plain HTTP fetches can't read. A screenshot is captured as part of the same request and counts as one credit.

ParameterTypeDescription
accept_languagesstringAccept-Language header for localized content, e.g. 'fr-FR,fr;q=0.9'. Default 'en-US,en;q=0.8'.
adjust_topintegerScroll the viewport down this many pixels before capture. Default 0. Not supported for PDFs.
blockarrayResources to block while rendering. For a clean capture use ['ads', 'cookie_banners', 'chat_widgets']. 'tracking' blocks analytics. 'javascript', 'stylesheets', 'xhr', and 'fetch' can break pages or h…
block_specific_requestsstringSpecific request URLs or patterns to block, separated by commas, spaces, or newlines, e.g. 'https://example.com/api/data, https://ads-domain.com'.
blur_selectorstringCSS selector(s) of elements to blur, comma-separated — for redacting emails, account numbers, or other sensitive data.
click_recursionintegerHow many times to click selector_to_click in sequence. Requires selector_to_click. Default 0.
cookiesstringCookies to set before loading, as 'name=value; other=value;'. Use for pages behind a login.
cssstringCSS injected before capture, e.g. '.header { display: none; }'.
css_urlstringURL of an external stylesheet to inject before capture.
custom_htmlstringRaw HTML to render instead of loading a URL. Takes precedence over url. Inline CSS and JavaScript in the HTML are applied. Useful for pages that are not publicly reachable.
dark_modebooleanRender with the dark color scheme (for sites that support it). Default false.
delayintegerExtra wait in milliseconds after the page loads, before capture. Default 0. Use 1000-5000 for animations, charts, or late-loading content.
enable_incognitobooleanRender in an isolated incognito session with no persisted cookies or storage. Default false.
extractarrayWhat to extract. Default ['markdown']. Options: markdown, text, html, image_urls.
grayscaleintegerDesaturate the output, 0 (full color, default) to 100 (fully grayscale).
headersstringExtra HTTP headers as 'Name: value;' pairs separated by semicolons, e.g. 'Authorization: Bearer abc; X-Test: 1;'.
heightintegerBrowser viewport height in pixels (max 4320). Default 876.
include_contentbooleanFetch the extracted files and return their contents inline. Default true. false returns only the file URLs.
jsstringJavaScript executed in the page before capture, e.g. "document.querySelector('.popup').remove();".
js_urlstringURL of an external JavaScript file to execute before capture.
latitudenumberLatitude reported by the browser Geolocation API.
lazy_loadbooleanScroll through the whole page first so lazy-loaded images and sections render. Default false.
longitudenumberLongitude reported by the browser Geolocation API.
max_content_charsintegerTruncate each extracted file to this many characters. Default 50000.
proxystringProxy to route the request through: 'address:port' or 'username:password@address:port' (an http:// prefix is accepted). Useful for geo-specific content or CAPTCHA-prone sites.
remove_selectorstringCSS selector(s) of elements to remove from the page before capture, comma-separated, e.g. '.ad-banner, #sidebar'. Non-matching selectors are ignored.
scroll_delayintegerMilliseconds to wait between scroll steps when lazy_load is true. Default 500. High values on long pages can hit the timeout.
scroll_to_elementstringCSS selector of an element to scroll into view before a viewport capture.
selector_to_clickstringCSS selector of an element to click before capture, e.g. to open a tab, dropdown, or accordion.
template_idstringID of a saved cookie template from the ScreenshotAPI dashboard to apply before navigation.
timeoutintegerMaximum milliseconds the API waits for the page to load before aborting. Default 100000.
timezonestringIANA timezone to emulate, e.g. 'America/New_York', 'Asia/Karachi'. Default is the server timezone.
urlstringWebsite URL to render, including the protocol, e.g. 'https://example.com'. Either url or custom_html is required.
user_agentstringCustom User-Agent string, e.g. a mobile Safari UA to get the mobile site.
wait_for_eventstringPage lifecycle event to wait for before capture. 'load' (default) waits for all resources; 'domcontentloaded' is faster but may miss images; 'networkidle' waits until no network requests for 500ms —…
widthintegerBrowser viewport width in pixels (max 7680). Default 1680. Use ~390 to emulate a phone, ~768 for a tablet.

record_scrolling_video Record a scrolling video of a web page

Records a video (mp4, webm, or gif) of the browser scrolling down a web page and returns the hosted video URL. Control scroll speed, duration, and scrolling back to the top. Set video=true to record the viewport without scrolling (for animations or live dashboards). Pass 'sizes' to record the same page at several viewport sizes in one request. Rendering takes noticeably longer than a screenshot.

ParameterTypeDescription
accept_languagesstringAccept-Language header for localized content, e.g. 'fr-FR,fr;q=0.9'. Default 'en-US,en;q=0.8'.
adjust_topintegerScroll the viewport down this many pixels before capture. Default 0. Not supported for PDFs.
blockarrayResources to block while rendering. For a clean capture use ['ads', 'cookie_banners', 'chat_widgets']. 'tracking' blocks analytics. 'javascript', 'stylesheets', 'xhr', and 'fetch' can break pages or h…
block_specific_requestsstringSpecific request URLs or patterns to block, separated by commas, spaces, or newlines, e.g. 'https://example.com/api/data, https://ads-domain.com'.
blur_selectorstringCSS selector(s) of elements to blur, comma-separated — for redacting emails, account numbers, or other sensitive data.
click_recursionintegerHow many times to click selector_to_click in sequence. Requires selector_to_click. Default 0.
cookiesstringCookies to set before loading, as 'name=value; other=value;'. Use for pages behind a login.
cssstringCSS injected before capture, e.g. '.header { display: none; }'.
css_urlstringURL of an external stylesheet to inject before capture.
custom_htmlstringRaw HTML to render instead of loading a URL. Takes precedence over url. Inline CSS and JavaScript in the HTML are applied. Useful for pages that are not publicly reachable.
dark_modebooleanRender with the dark color scheme (for sites that support it). Default false.
delayintegerExtra wait in milliseconds after the page loads, before capture. Default 0. Use 1000-5000 for animations, charts, or late-loading content.
durationnumberHow long the scrolling (or viewport recording) lasts, in seconds, 0-60.
enable_incognitobooleanRender in an isolated incognito session with no persisted cookies or storage. Default false.
file_typestringVideo format. Default mp4. gif loops and has no sound; webm is smaller.
grayscaleintegerDesaturate the output, 0 (full color, default) to 100 (fully grayscale).
headersstringExtra HTTP headers as 'Name: value;' pairs separated by semicolons, e.g. 'Authorization: Bearer abc; X-Test: 1;'.
heightintegerBrowser viewport height in pixels (max 4320). Default 876.
jsstringJavaScript executed in the page before capture, e.g. "document.querySelector('.popup').remove();".
js_urlstringURL of an external JavaScript file to execute before capture.
latitudenumberLatitude reported by the browser Geolocation API.
lazy_loadbooleanScroll through the whole page first so lazy-loaded images and sections render. Default false.
longitudenumberLongitude reported by the browser Geolocation API.
proxystringProxy to route the request through: 'address:port' or 'username:password@address:port' (an http:// prefix is accepted). Useful for geo-specific content or CAPTCHA-prone sites.
remove_selectorstringCSS selector(s) of elements to remove from the page before capture, comma-separated, e.g. '.ad-banner, #sidebar'. Non-matching selectors are ignored.
save_pathstringOptional local path to save the video to (ignored when 'sizes' is used, since that returns several files).
scroll_backbooleanScroll back up to the top after reaching the bottom. Default false.
scroll_delayintegerMilliseconds to wait between scroll steps when lazy_load is true. Default 500. High values on long pages can hit the timeout.
scroll_speedstringScrolling speed. Default normal.
scroll_to_elementstringCSS selector of an element to scroll into view before a viewport capture.
selector_to_clickstringCSS selector of an element to click before capture, e.g. to open a tab, dropdown, or accordion.
sizesarrayRecord one video per viewport size, e.g. [{width:1920,height:1080},{width:390,height:844}]. Overrides width/height.
start_immediatelybooleanStart recording as soon as navigation begins instead of after load, to capture the page loading. Default false.
template_idstringID of a saved cookie template from the ScreenshotAPI dashboard to apply before navigation.
timeoutintegerMaximum milliseconds the API waits for the page to load before aborting. Default 100000.
timezonestringIANA timezone to emulate, e.g. 'America/New_York', 'Asia/Karachi'. Default is the server timezone.
urlstringWebsite URL to render, including the protocol, e.g. 'https://example.com'. Either url or custom_html is required.
user_agentstringCustom User-Agent string, e.g. a mobile Safari UA to get the mobile site.
videobooleanRecord the visible viewport for 'duration' seconds without scrolling. Default false.
wait_for_eventstringPage lifecycle event to wait for before capture. 'load' (default) waits for all resources; 'domcontentloaded' is faster but may miss images; 'networkidle' waits until no network requests for 500ms —…
widthintegerBrowser viewport width in pixels (max 7680). Default 1680. Use ~390 to emulate a phone, ~768 for a tablet.

bulk_screenshots Capture screenshots of many URLs

Submits up to 50 URLs as one bulk screenshot job (JSON bulk API). Each entry is a URL plus any take_screenshot option using the raw API parameter names (file_type, width, height, full_page, fresh, delay, css, block_ads, no_cookie_banners, ...). 'defaults' are applied to every entry unless the entry overrides them. Returns the API's job response; if it contains a uuid, track it with get_bulk_status and fetch results with download_bulk_results. Paid plans only.

ParameterTypeDescription
screenshots *arrayEntries to capture, e.g. [{url:'https://a.com'},{url:'https://b.com',full_page:true}]. Max 50.
defaultsobjectOptions applied to every entry, e.g. {file_type:'png', width:1440, height:900, no_cookie_banners:true}.

bulk_screenshots_csv Start a bulk screenshot job from a CSV

Uploads a CSV to start a bulk screenshot job. The CSV must have a 'url' column with full https:// URLs; any other column is treated as a render option for that row using the API parameter names (file_type, width, height, css, delay, headers, ...). Pass either a local csv_path or the CSV text in csv_content. Returns the job response including its uuid for get_bulk_status and download_bulk_results. ScreenshotAPI also emails a download link when the job finishes. Paid plans only.

ParameterTypeDescription
csv_contentstringCSV text, e.g. 'url,file_type\nhttps://a.com,png\nhttps://b.com,jpg'. Used when csv_path is not given.
csv_pathstringPath to a local CSV file.

get_bulk_status Check a bulk screenshot job

Returns the progress of a bulk screenshot job by uuid: percent complete plus successful and failed URLs. Call download_bulk_results once it reaches 100%.

ParameterTypeDescription
uuid *stringJob uuid returned when the bulk job was submitted.

download_bulk_results Download bulk screenshot results

Downloads the results of a finished bulk screenshot job by uuid: one row per URL with its status, the hosted screenshot URL, and any error message.

ParameterTypeDescription
uuid *stringJob uuid returned when the bulk job was submitted.