screenshot-mcp
screenshot-mcp
Ein MCP-Server, der Screenshots des gesamten Monitors erstellt und diese inline (Base64) oder als gespeicherte Datei zurückgibt. Unterstützt macOS, natives Linux (X11 und Wayland), natives Windows und WSL2.
Tools
list_monitors
Listet alle angeschlossenen Monitore mit ihrem Index, ihrer Auflösung und ihrem Primärstatus auf. Rufen Sie dies zuerst auf, um die Monitor-Indizes zu finden.
take_screenshot
Erstellt einen Screenshot eines Monitors.
Argument | Typ | Standard | Beschreibung |
| integer |
| Monitor-Index aus |
|
|
|
|
| string | temporäre Datei | Ausgabepfad. Wird nur verwendet, wenn |
Tipp: Monitore mit sehr hoher Auflösung (4K, 5K) erzeugen große Base64-Blobs. Wenn Sie an Kontextgrenzen stoßen, wechseln Sie zu
return="path"und verwenden Sie dasRead-Tool, um die Datei anzuzeigen.
Related MCP server: GetScreen MCP Server
Installation
git clone https://github.com/you/screenshot-mcp
cd screenshot-mcp
npm install
npm run buildPlattformanforderungen
Plattform | Anforderung |
macOS | Nichts zusätzlich erforderlich — verwendet |
Natives Linux / X11 |
|
Natives Linux / Wayland |
|
Natives Windows | Nichts zusätzlich erforderlich — verwendet PowerShell + |
WSL2 | Nichts zusätzlich erforderlich — führt Befehle über |
Konfiguration in Claude Code
claude mcp add screenshot node /absolute/path/to/screenshot-mcp/dist/index.jsKonfiguration in Claude Desktop
Fügen Sie dies zu claude_desktop_config.json hinzu:
{
"mcpServers": {
"screenshot": {
"command": "node",
"args": ["/absolute/path/to/screenshot-mcp/dist/index.js"]
}
}
}Funktionsweise von WSL2
WSL2 hat keinen direkten Zugriff auf die Windows-Anzeige. Dieser Server erkennt WSL (über /proc/version oder WSL_DISTRO_NAME) und führt Befehle über powershell.exe aus, um ein Aufnahmeskript unter Verwendung von System.Windows.Forms.Screen und System.Drawing zu starten. Das PNG wird über den UNC-Pfad \wsl.localhost... in das Linux-Dateisystem /tmp geschrieben und anschließend wieder eingelesen.
This server cannot be deployed
Maintenance
Related MCP Connectors
Capture website screenshots, run bulk captures, and manage screenshot schedules and history.
1Screenshot any URL/HTML as PNG/JPEG/WebP, or read it as clean Markdown/text for LLMs.
Pixel-perfect webpage screenshots rendered in a real browser, full-page or viewport, via one POST.
Clean PNG/JPEG screenshots via REST or MCP, with goal-driven multi-step navigation.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceCaptures screenshots and saves them to file paths specified by client applications, primarily designed to facilitate screenshot analysis by AI assistants running in WSL environments.1-
- 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.1 npmISC
- AlicenseNot gradedqualityCmaintenanceEnterprise-grade screenshot capture server for AI agents with multi-format support, PII masking, multi-monitor support, and security controls for capturing full screens, specific windows, or custom regions across Linux, macOS, and Windows.114 npm2MIT
- AlicenseBqualityFmaintenanceEnables AI assistants running in WSL to capture Windows screenshots of full desktops, specific monitors, or individual windows by title or process name. It features DPI awareness, automatic path conversion between WSL and Windows, and customizable storage options.13MIT