WSLSnapit-MCP is a handy tool that lets AI assistants "see" what’s happening on a Windows computer, even if they are running inside a Linux-based environment like WSL (Windows Subsystem for Linux). It bridges the gap between these two systems, allowing an AI to take screenshots of the screen or read whatever is currently copied to the clipboard. This makes it much easier for an AI to help troubleshoot software, explain what is appearing on a user's screen, or quickly grab text and images to assist with a task. For more specific needs, this MCP server offers granular control over exactly what context is shared. It can target specific monitors in a multi-screen setup, find windows by their titles, or even isolate a specific application by its process name. When reading the clipboard, it intelligently detects whether the content is text or an image and delivers it in the appropriate format. This flexibility ensures the AI gets exactly the visual information it needs without the user having to manually save and upload files. Under the hood, the server is built for performance and reliability within the Model Context Protocol ecosystem. It uses a PowerShell bridge to communicate between WSL and the Windows API and employs the Sharp image processing library to handle heavy lifting. To ensure smooth interaction with LLMs, it features "smart compression" that progressively adjusts image quality and resolution to stay under the 1MB limit common in AI message protocols. This combination of DPI-awareness and optimized data transfer makes it a robust solution for developers building vision-capable AI agents in hybrid Windows/Linux workflows.
Category: Cloud & Infrastructure
Tags: automation, clipboard, screenshot, windows, wsl
bash # Clone the repository git clone https://github.com/peterparker57/WSLSnapit-MCP.git cd WSLSnapit-MCP # Install dependencies npm install # or yarn install # or bun install%APPDATA%\Claude\claude_desktop_config.json * macOS: ~/Library/Application Support/Claude/claude_desktop_config.json * Linux: ~/.config/Claude/claude_desktop_config.json json { "mcpServers": { "wslsnapit": { "command": "wsl", "args": [ "--cd", "/mnt/h/dev/mcp/wslsnapit-mcp", "node", "index.js" ] } } } Note: Ensure you adjust the path /mnt/h/dev/mcp/wslsnapit-mcp to the actual directory where you installed the server.take_screenshot Captures screenshots of monitors or specific windows. * filename (string): Filename when saving to disk (default: "screenshot.png") * monitor (string|number): "all", "primary", or specific monitor number (default: "all") * windowTitle (string): Capture window by title (partial match) * windowIndex (number): Which window to capture if multiple match (default: 1) * processName (string): Capture window by process name * folder (string): Custom folder path (supports WSL and Windows paths) * returnDirect (boolean): Return image to AI or save to disk (default: true) * quality (number): JPEG quality (1-100) for direct return (default: 80)read_clipboard Reads text or images from the Windows clipboard. * format (string): Format to read: "auto", "text", or "image" (default: "auto")take_screenshot tool with windowTitle: "Chrome" to directly capture the browser window. The built-in smart compression ensures the image is optimized for the LLM's context window, allowing the AI to "see" the CSS layout issues or console errors alongside the code in WSL. Example: A developer tells the AI: "The layout of my header is broken in Chrome. Can you look at it?" The AI captures the Chrome window, analyzes the visual alignment, and suggests the necessary CSS fixes in the WSL-based repository.read_clipboard to instantly pull whatever is currently copied on the Windows host. Whether it’s a block of code, a snippet of documentation, or an image of a graph, the AI can ingest it directly from the Windows system memory. Example: A user copies a complex JSON object from a Windows Slack message and says to their WSL-based AI: "I just copied a JSON object; can you write a TypeScript interface for it?" The AI reads the clipboard, detects the text, and generates the interface immediately.processName. The AI can capture the specific application's window to identify error messages, icon states, or configuration settings that the user might have missed. Example: A user says, "My Windows Docker Desktop is showing an…Part of MCP Servers