Skip to main content
Glama

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

monitor

integer

0

Monitor-Index aus list_monitors

return

"inline"

"path"

"inline" = Base64-PNG in der Antwort (Claude sieht es); path = auf Festplatte speichern, Dateipfad zurückgeben

path

string

temporäre Datei

Ausgabepfad. Wird nur verwendet, wenn return="path"

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 das Read-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 build

Plattformanforderungen

Plattform

Anforderung

macOS

Nichts zusätzlich erforderlich — verwendet screencapture und system_profiler (integriert)

Natives Linux / X11

scrot oder imagemagick: sudo apt install scrot

Natives Linux / Wayland

grim + wlr-randr: sudo apt install grim wlr-randr

Natives Windows

Nichts zusätzlich erforderlich — verwendet PowerShell + System.Drawing

WSL2

Nichts zusätzlich erforderlich — führt Befehle über powershell.exe auf der Windows-Seite aus

Konfiguration in Claude Code

claude mcp add screenshot node /absolute/path/to/screenshot-mcp/dist/index.js

Konfiguration 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.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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 npm
    ISC
  • A
    license
    B
    quality
    F
    maintenance
    Enables 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.
    1
    3
    MIT