Desktop Window Screenshot MCP
Provides desktop and window screenshot capabilities with automatic clipboard integration, designed for use with the Amp AI coding assistant.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Desktop Window Screenshot MCP
A Model Context Protocol (MCP) Server that provides cross-platform desktop and window screenshot capabilities with automatic clipboard integration.
Built for Amp but compatible with any MCP client.
Features
πΈ Full desktop screenshots - Capture entire screen
πͺ Window targeting - Target specific windows by ID or title
π Automatic clipboard - Screenshots automatically copied to clipboard
π₯οΈ Cross-platform - Windows, macOS, and Linux support
π Window discovery - List all available windows
π Multiple formats - PNG and JPEG with quality control
π― MCP integration - Ready for AI coding assistants
Related MCP server: Screen View MCP
Quick Start
Prerequisites
Node.js 18.0.0 or higher
npm or yarn
Installation
Clone the repository:
git clone https://github.com/Kynlos/desktop-window-screenshot-mcp.git
cd desktop-window-screenshot-mcpInstall dependencies:
npm installBuild the project:
npm run buildUsage with Amp
Setup in Amp (Recommended)
Open Amp (VSCode with Amp extension)
Access MCP Server settings
Click "Add MCP Server"
Configure as follows:
Server Name:
ScreenshotCommand or URL:
npxArguments (whitespace-separated):
tsx "C:\Users\YourUsername\path\to\desktop-window-screenshot-mcp\src\index.ts"Replace C:\Users\YourUsername\path\to\desktop-window-screenshot-mcp with your actual project path.
Alternative Setup Methods
Method 1 - Using npm start:
Command: npm
Arguments: --prefix "C:\Users\YourUsername\path\to\desktop-window-screenshot-mcp" startMethod 2 - Using built JavaScript:
Command: node
Arguments: "C:\Users\YourUsername\path\to\desktop-window-screenshot-mcp\dist\index.js"Example Path Configurations
Windows:
C:\Users\john\Documents\desktop-window-screenshot-mcp\src\index.tsmacOS/Linux:
/Users/john/projects/desktop-window-screenshot-mcp/src/index.tsUsage with Other MCP Clients
Configuration for generic MCP clients:
{
"mcpServers": {
"screenshot": {
"command": "npx",
"args": ["tsx", "/path/to/desktop-window-screenshot-mcp/src/index.ts"]
}
}
}Available Tools
πΈ take_screenshot
Take a screenshot of the entire desktop or specific window.
Parameters:
windowId(optional): Window ID to screenshot (fromlist_windows)format(optional):'png'or'jpg'(default:'png')quality(optional): 1-100 (default: 90, only for JPEG)copyToClipboard(optional): boolean (default:true)
Example:
// Full desktop screenshot
{ "name": "take_screenshot" }
// Specific window screenshot
{ "name": "take_screenshot", "arguments": { "windowId": 12345 } }πͺ take_window_screenshot
Take a screenshot by searching for a window title.
Parameters:
windowTitle(required): Part of window title to search for (case-insensitive)format(optional):'png'or'jpg'(default:'png')quality(optional): 1-100 (default: 90)
Example:
// Screenshot Notepad window
{ "name": "take_window_screenshot", "arguments": { "windowTitle": "Notepad" } }
// Screenshot browser with specific quality
{
"name": "take_window_screenshot",
"arguments": {
"windowTitle": "Chrome",
"format": "jpg",
"quality": 85
}
}π list_windows
List all visible windows with their IDs and titles.
Example:
{ "name": "list_windows" }Returns:
Found 15 visible windows:
- ID: 12345, Title: "Document.txt - Notepad", Process: notepad.exe (PID: 1234)
- ID: 67890, Title: "Google Chrome", Process: chrome.exe (PID: 5678)
...Platform Support
Platform | Status | Notes |
Windows | β Full Support | Native Windows APIs, all features |
macOS | β Full Support | Native macOS APIs, all features |
Linux | β Full Support | X11/Wayland support, all features |
Development
Local Development
# Run in development mode
npm run dev
# Build for production
npm run build
# Test the server
npm testTesting
# Basic functionality test
npm test
# Manual testing
node test-server.jsTroubleshooting
Common Issues
"Module not found" errors:
Ensure you're using the full absolute path in the Arguments field
Use forward slashes
/instead of backslashes\on Windows if neededVerify Node.js and npm are installed correctly
"Window not found" errors:
Use
list_windowsfirst to see available windowsWindow titles are case-sensitive for exact matches
Try partial title matches (e.g., "Notepad" instead of "Document.txt - Notepad")
Permission errors:
On macOS/Linux: Grant screen recording permissions if prompted
On Windows: Run as administrator if needed for certain applications
Debug Mode
Enable debug logging by setting environment variable:
DEBUG=1 npm startDependencies
@modelcontextprotocol/sdk- MCP protocol implementationscreenshot-desktop- Cross-platform screenshot captureclipboardy- Cross-platform clipboard accessnode-window-manager- Window enumeration and managementnode-screenshots- Advanced window screenshot capabilitiessharp- Image processing and format conversion
Contributing
Fork the repository
Create a feature branch:
git checkout -b feature-nameCommit changes:
git commit -am 'Add feature'Push to branch:
git push origin feature-nameSubmit a Pull Request
License
MIT License - see LICENSE file for details.
Author
Kynlo
Built for Amp - The AI-powered coding assistant.
Repository
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Screenshot any website as PNG, JPEG, WebP, PDF or scrolling MP4/GIF video, with public file links.
Full-page, first-screen, mobile or element screenshots of any URL as PNG, JPEG or PDF.
Screenshot any URL, HTML or Markdown in a real browser, and read web pages as Markdown.
Screenshots of any public web page as PNG, JPEG, WebP, PDF or a scrolling video.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables capturing screenshots of all connected monitors with automatic JPEG compression and multi-platform support including WSL environments. Supports quality adjustment and image resizing through simple natural language commands.MIT
- AlicenseDqualityDmaintenanceEnables AI assistants to capture and analyze screenshots using Claude Vision API, providing AI-powered insights about desktop interface content, UI elements, and visual layouts.28 npm2MIT
- AlicenseCqualityDmaintenanceEnables capturing screenshots and annotating images with boxes, arrows, text, highlights, and other shapes, plus editing features like blur, crop, and resize with flexible export options.425MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to capture screenshots and read clipboard content from Windows applications while operating within a WSL environment. It supports monitor or window-specific targeting and features intelligent image optimization for efficient data transfer.25MIT