MCP Application & IDE Screenshot Server
Provides a ShareX CLI bridge via the trigger_sharex_workflow tool, allowing invocation of ShareX custom uploaders or annotation workflows silently.
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., "@MCP Application & IDE Screenshot Servercapture VS Code and my running app side by side for debugging"
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.
MCP Application & IDE Screenshot Server
A Windows-focused Model Context Protocol (MCP) server for capturing application windows, IDEs, monitors, and screen regions for visual debugging. It uses PrintWindow for background capture and MSS for foreground screen capture. Capture is fast—typically tens of milliseconds—but depends on the selected mode, window type, and image format.
Install and run
The project targets Python 3.10+ and can be run directly with uvx:
uvx --from . mcp-app-screenshotFor local development:
uv sync
uv run mcp dev server.pyRelated MCP server: Screenshot MCP Server
MCP tools
list_open_windows()lists permitted, visible application windows.capture_application_window(target="", mode="background", max_width=1568, max_height=1568, format="png", quality=80, save_path=None, allow_foreground_fallback=False, hwnd=None, pid=None, client_area_only=False, delay_ms=0)captures a chosen window.hwnd, thenpid, take priority overtarget.capture_ide_and_app(ide_target="Code.exe", app_target="...", max_width=1568, max_height=1568, format="png", quality=80, allow_foreground_fallback=False)captures both independently, retaining a successful capture when the other fails.capture_screen(monitor=0, max_width=1568, max_height=1568, format="png", quality=80, delay_ms=0)captures all monitors (0) or one monitor (1..N).capture_region(left, top, width, height, max_width=1568, max_height=1568, format="png", quality=80, delay_ms=0)captures an arbitrary desktop rectangle.wait_for_window(target, timeout_s=10)waits for an allowed visible window and returns its description.trigger_sharex_workflow(workflow_name="ActiveWindow")triggers one approved ShareX workflow.
Capture tools return a JSON metadata string followed by an MCP image. Metadata includes the window title, process, PID, HWND, original and final dimensions, and the mode used. Supported response formats are png, jpeg, and webp; quality applies to JPEG and WebP.
Security and configuration
The server does not expose windows belonging to password managers by default. These environment variables configure its boundaries:
Variable | Default | Purpose |
|
| The trusted ShareX executable used by |
|
| The only directory where |
| unset | Optional comma-separated process allowlist, matched case-insensitively. When set, only listed processes are visible or capturable. |
|
| Comma-separated process blocklist, matched case-insensitively. It takes precedence over the allowlist. |
For example, to expose only VS Code and a development application:
$env:ALLOWED_PROCESSES = "Code.exe,MyApp.exe"
$env:SCREENSHOT_DIR = "D:\mcp-screenshots"Client configuration
Use uvx from an MCP client configuration:
{
"mcpServers": {
"app-screenshot": {
"command": "uvx",
"args": [
"--from",
"C:\\path\\to\\mcp-app-screenshot",
"mcp-app-screenshot"
],
"env": {
"SCREENSHOT_DIR": "C:\\path\\to\\screenshots",
"ALLOWED_PROCESSES": "Code.exe,MyApp.exe"
}
}
}
}Limitations
PrintWindow cannot reliably capture popup menus and some GPU-rendered windows. Use mode="foreground" for those applications, or set allow_foreground_fallback=True to opt into bringing the target window to the front. Foreground capture can include anything visually covering the window at capture time.
Demo
Screenshot/GIF demo placeholder.
Development
uv run --with pytest --with ruff pytest
uv run --with ruff ruff check .License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Capture screenshots, detect visual regressions between page versions, and analyze with AI.
Cross-device AI memory with encrypted activity capture and context handoff between AI tools
Give AI coding agents access to your Vynix visual feedback, bug reports, and AI diagnosis.
Grabbit gives AI agents eyes on the web through a hosted MCP server. Send a public URL and get a pixel-perfect hosted image back, without maintaining Chromium, Playwright, or a browser fleet. Capture a full page, exact viewport, or single CSS selector as PNG, JPEG, or WebP. Grabbit handles cookie and consent banners, waits for JavaScript-heavy pages, blocks private and internal URLs, supports safe retries with idempotency keys, and delivers async results through signed webhooks. Completed captures include a CDN URL. Connect with OAuth 2.1 or an API key. Grabbit works with Claude, Cursor, Codex, and any MCP client. Live captures cost $0.002 each. The $50 annual plan includes 25,000 prepaid credits that never reset or expire. Free test keys return placeholder images, so you can wire up the integration before paying. Home: https://grabbit.live Docs: https://grabbit.live/screenshot-api Built by BrainGrid.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables LLMs to capture and analyze screenshots of your screen, windows, or regions with smart detection capabilities. Features natural language queries, automatic window targeting, and text enhancement for UI debugging and visual inspection.2MIT
- 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
- AlicenseAqualityFmaintenanceEnables 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
- AlicenseNot gradedqualityDmaintenanceMCP server for capturing screenshots of desktop windows on Windows. Allows AI assistants to see what's on screen for UI development, debugging, and iterating on designs.MIT