Screenshot MCP
Allows targeting specific page elements using CSS selectors for capturing element-specific screenshots
Supports configuration through environment variables in a .env file for customizing browser settings, screenshot defaults, and security options
Runs as a Node.js application, with configuration options through environment variables and command-line arguments
Uses Puppeteer for browser automation to capture screenshots with support for viewport configuration, device emulation, and wait conditions
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Screenshot MCP capture a mobile screenshot of https://myapp.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Screenshot MCP
A Model Context Protocol MCP server for capturing website screenshots with full page, element, and device size features.

Features
Full-page screenshot capture with automatic scrolling
Element-specific screenshots using CSS selectors
Multiple device presets (mobile, tablet, desktop)
Custom viewport configurations
Advanced wait conditions (CSS selectors, network idle, custom delays)
Error handling and validation for secure operation
Rate limiting to prevent resource exhaustion
Related MCP server: webdev-mcp
Installation
Clone or download this project
Move to the directory:
cd /path/to/ScreenshotMCPrename
.env.exampleto.envInstall dependencies:
npm installStart Server:
npm start
Using with Claude Code
You can use Screenshot MCP directly within the Claude Code CLI or Claude Desktop to capture screenshots as part of your development workflow.
For Claude Code CLI:
Add to your ~/.config/claude/mcp_servers.json:
{
"screenshot-full-page-mcp": {
"command": "node",
"args": ["/path/to/screenshot-full-page-mcp/index.js"]
}
}or
claude mcp add screenshot-full-page-mcp node ./index.js
For Claude Desktop:
Add to your claude_desktop_config.json:
{
"mcpServers": {
"screenshot-full-page-mcp": {
"command": "node",
"args": ["/path/to/screenshot-full-page-mcp/index.js"]
}
}
}Using with Cursor
You can use Screenshot MCP directly within the Cursor IDE to capture screenshots as part of your development workflow.
Open Cursor.
Go to Settings > MCP Servers.
Add a new MCP server entry for Screenshot MCP:
{ "mcpServers": { "screenshot-full-page-mcp": { "command": "node", "args": ["/path/to/screenshot-full-page-mcp/index.js"] } } }Save your settings.
Usage
Once configured, you can use natural language commands with Claude Code:
Basic Screenshot
"Take a screenshot of https://example.com"Mobile Screenshot
"Capture a mobile screenshot of https://myapp.com"Custom Viewport
"Screenshot https://myapp.com at 1024x768 resolution"Wait for Element
"Take a screenshot of https://example.com after the loading spinner disappears"Element Screenshot
"Capture just the navigation bar from https://example.com"Available Tools
capture_screenshot
Captures a full-page screenshot with advanced configuration options.
Parameters:
url(required): The webpage URL to screenshotviewport: Viewport configurationpreset: Device preset (mobile,tablet,desktop)width: Custom width in pixels (100-5000)height: Custom height in pixels (100-5000)deviceScaleFactor: Scale factor (0.1-3)isMobile: Mobile device emulationhasTouch: Touch support emulation
waitFor: Wait conditionstype:selector,function,timeout, ornetworkidlevalue: CSS selector, function, or timeout valuetimeout: Wait timeout in milliseconds
delay: Additional delay before screenshotwaitUntil: Navigation completion condition
capture_element
Captures a screenshot of a specific page element.
Parameters:
url(required): The webpage URLselector(required): CSS selector for the target elementviewport: Viewport configuration (same as above)
list_device_presets
Lists all available device presets with their configurations.
Device Presets
Preset | Width | Height | Scale | Mobile | Touch |
mobile | 375px | 667px | 2x | Yes | Yes |
tablet | 768px | 1024px | 2x | Yes | Yes |
desktop | 1920px | 1080px | 1x | No | No |
Configuration
Environment variables can be set in the .env file:
# Browser Configuration
BROWSER_HEADLESS=true
BROWSER_TIMEOUT=30000
MAX_CONCURRENT_SCREENSHOTS=5
# Screenshot Defaults
DEFAULT_VIEWPORT_WIDTH=1920
DEFAULT_VIEWPORT_HEIGHT=1080
DEFAULT_WAIT_TIMEOUT=10000
# Security
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW=60000
# Debug
DEBUG=false
LOG_LEVEL=infoSecurity Features
URL validation (HTTP/HTTPS only)
CSS selector sanitization
Rate limiting for concurrent requests
Sandboxed browser execution
Input validation and error handling
System Requirements
Node.js 18+
Chrome/Chromium browser (installed automatically with Puppeteer)
Minimum 2GB RAM
500MB disk space
Troubleshooting
Common Issues
Browser launch fails:
Ensure sufficient system resources
Check if Chrome/Chromium is properly installed
Try setting
BROWSER_HEADLESS=falsefor debugging
Screenshot timeout:
Increase
BROWSER_TIMEOUTin.envCheck if the target website loads properly
Use appropriate
waitUntilconditions
Memory issues:
Reduce
MAX_CONCURRENT_SCREENSHOTSRestart the MCP server periodically
Monitor system memory usage
Debug Mode
Enable debug mode by setting DEBUG=true in .env file for detailed logging.
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
License
MIT License - see LICENSE file for details.
Support
For issues and questions:
Open an issue on GitHub
Check the troubleshooting section
Review the MCP documentation
Available Tools
3 toolscapture_elementC
Capture a screenshot of a specific element on a webpage
Inputs: url (required), selector (required), viewport, standardDelay.
capture_screenshotC
Capture a full-page screenshot of a webpage with advanced options
Inputs: url (required), viewport, waitFor, standardDelay, +2 more.
list_device_presetsB
List available device presets with their configurations
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: capture_element targets specific webpage elements, capture_screenshot handles full-page captures with advanced options, and list_device_presets deals with device configurations. There is no overlap or ambiguity between these functions.
The naming follows a consistent verb_noun pattern (capture_element, capture_screenshot, list_device_presets), with all tools using snake_case. The minor deviation is that list_device_presets uses 'list' instead of 'capture', but this is appropriate for its distinct function.
With only 3 tools, the count feels thin for a screenshot domain that might benefit from additional operations like managing screenshots or adjusting capture settings. However, it covers core capture functions adequately.
The toolset covers basic screenshot capture (element and full-page) and device preset listing, but lacks operations for managing captured screenshots (e.g., save, delete, annotate) or advanced configuration beyond presets. This creates minor gaps in the workflow.
Maintenance
Related MCP Connectors
Web scraping MCP server — scrape, extract structured data, screenshot any site with anti-bot bypass.
Screenshots, PDFs, image editing, QR codes, email validation and more through one hosted MCP server.
Clean PNG/JPEG screenshots via REST or MCP, with goal-driven multi-step navigation.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Related MCP Servers
- AlicenseBqualityCmaintenanceAn official MCP server implementation that allows AI assistants to capture website screenshots through the ScreenshotOne API, enabling visual context from web pages during conversations.1194 npm38MIT
- FlicenseBqualityNot gradedmaintenanceAn MCP server that provides web development tools including taking screenshots of screens, enabling AI agents to capture and analyze visual content during development.249 npm11-
- AlicenseBqualityDmaintenanceAn MCP server providing web development tools such as screen capturing capabilities that let AI agents take and work with screenshots of the user's screen.249 npm15MIT
- AlicenseBqualityDmaintenanceAn MCP server that enables AI assistants to capture and analyze web page screenshots using Puppeteer, supporting multi-breakpoint captures, error reporting, and page interactions.165 npm6MIT