Window Screenshooter MCP Server

Window Screenshooter MCP Server

mcp-window-screenshooter•bytiartyos

A cross-platform Python MCP server that lets AI agents capture screenshots of specific application windows on Windows and Linux.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Captures a screenshot of a specific window matched by exact or partial title, optionally saving to a file or returning base64-encoded image data.
  • •Enumerates all available system windows with their ID, title, position, and size.
  • •Retrieves detailed metadata for a specific window, including position, size, visibility state, and process information.
  • •Saves and restores the original window state after capture and refocuses the calling editor when possible.

BEST FOR

  • •AI-assisted development workflows that verify UI or game editor state visually, such as checking Unity editor screenshots.
  • •Quality assurance and regression testing that compares screenshots and monitors application states.
  • •Generating labeled screenshots for computer vision training data.

ABOUT MCP-WINDOW-SCREENSHOOTER

Window Screenshooter MCP Server is cataloged as an MCP server attributed to tiartyos. A cross-platform Python MCP server that lets AI agents capture screenshots of specific application windows on Windows and Linux. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Window Screenshooter MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which platforms does the server support?

It supports Windows with full native Win32 API support and Linux with basic X11 integration.

How does the server communicate with MCP clients?

It uses STDIO transport over standard input and output.

Can the server capture minimized or hidden windows on Windows?

Yes, the Windows implementation can capture minimized, hidden, or overlapped windows.

Upstream README

View this exact version on GitHub

README.md · 1d258722de41 · Fetched 2026-11-13 13:21:42 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Window Screenshooter MCP Server 🖼️

A cross-platform Model Context Protocol (MCP) server that enables AI agents to capture screenshots of specific application windows! (≧◡≦)

Overview

Window Screenshooter is an MCP server built in Python that provides AI agents with the capability to take targeted screenshots of specific application windows across Windows and Linux platforms. Unlike traditional screen capture solutions that only capture the entire screen, this server allows precise window-based capture for AI verification workflows, automated testing, and application monitoring.

✨ New Feature: Smart Window State Restoration & Focus Management!

The latest version now includes automatic window state restoration and intelligent focus handling! 🎉

When capturing windows, the server will:

  • 📸 Save the original window state (minimized, maximized, position, etc.)
  • 🔄 Temporarily modify the window if needed for capture
  • ✨ Restore the window to its exact original state after capture
  • 🎯 Auto-detect your editor (Cursor, Trae, Windsurf, VS Code, etc.) and restore focus to it
  • 📉 Minimize captured windows if the calling application can't be found
  • 💫 Work seamlessly across all supported platforms

This means your workflow stays smooth - focus returns to your editor and windows don't get left in unexpected states!

Key Features

  • 🖼️ Window-Specific Capture: Target individual application windows by name or title
  • 🌐 Cross-Platform Support: Works on Windows and Linux with platform-optimized backends
  • 🔧 MCP Integration: Seamless integration with AI agents through Model Context Protocol
  • 📡 STDIO Transport: Uses standard input/output for reliable communication
  • ⚡ Performance Optimized: Platform-specific implementations for maximum efficiency

Installation & Setup

Prerequisites

  • Python 3.12+
  • Windows or Linux

Quick Start

  1. Clone or download this repository:

    git clone <your-repo-url>
    cd window-screenshooter
    
  2. Install dependencies:

    pip install pywinctl pillow pywin32
    # Or use the project file
    pip install -e .
    
  3. Test the server:

    python test-mcp.py
    
  4. Run the MCP server:

    # STDIO mode (for MCP clients)
    python server.py
    

MCP Tools

The server exposes three main MCP tools:

1. capture_window

Captures a screenshot of a specific window by title or identifier.

Parameters:

  • windowTitle (string): Exact or partial window title to match
  • outputPath (string, optional): Save location for screenshot
  • format (string, optional): Image format (PNG, JPEG) - default: PNG
  • quality (int, optional): JPEG quality (1-100) - default: 85

Returns: Base64-encoded image data or file path confirmation

Example:

# Save to file
await capture_window("Notepad", "screenshot.png", "PNG")

# Get base64 data
await capture_window("Calculator")

2. list_windows

Enumerates all available windows on the system.

Returns: Array of window objects with ID, title, position, and size information

Example:

await list_windows()

3. get_window_info

Retrieves detailed information about a specific window.

Parameters:

  • windowIdentifier (string): Window title or ID

Returns: Window metadata including position, size, visibility state, and process information

Example:

await get_window_info("Visual Studio Code")

Platform-Specific Features

Windows Implementation

  • Utilizes win32gui with BitBlt API for robust window capture
  • Can capture minimized, hidden, or overlapped windows
  • High-performance Graphics Capture API integration
  • Provides Windows handle (HWND) and process information

Linux Implementation

  • X11-based window capture using native protocols
  • Direct window buffer access for efficient capture
  • Support for common Linux desktop environments

MCP Client Configuration

For Cursor IDE

Add to your MCP configuration file:

{
  "mcpServers": {
    "window-screenshooter": {
      "command": "python",
      "args": ["server.py"],
      "cwd": "/path/to/window-screenshooter",
      "transport": "stdio"
    }
  }
}

For Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "window-screenshooter": {
      "command": "python",
      "args": ["server.py"],
      "cwd": "/path/to/window-screenshooter"
    }
  }
}

💡 IDE Configuration Tip

📝 Note: For optimal workflow integration, consider adding this rule to your IDE configuration:

"Before capturing windows or screens with the MCP screenshooter, ALWAYS list windows first to get correct names. If working on a Web project, the default browser is Brave. If working on a Unity project, the user wants the Unity game scene window. After you make a screenshot or capture a screen, ALWAYS use vision."

This helps ensure accurate window targeting and proper follow-up analysis of captured content! ✨

Usage Examples

AI Development Workflows

  • Code Verification: AI takes Unity editor screenshots to verify game object placement
  • UI Testing: Capture application states during automated testing sequences
  • Documentation: Generate visual documentation of application interfaces
  • Debugging: Visual confirmation of application behavior changes

Automation Scenarios

  • Quality Assurance: Screenshot comparison for regression testing
  • Process Monitoring: Capture application states for workflow verification
  • Training Data: Generate labeled screenshots for computer vision training

Error Handling

The server implements robust error handling for:

  • Window not found scenarios
  • Permission-denied capture attempts
  • Cross-platform compatibility issues
  • Invalid parameter validation
  • Graceful degradation when platform-specific features are unavailable

Development & Contributing

Project Structure

window-screenshooter/
├── server.py              # Main MCP server implementation
├── windows_capture.py     # Windows-specific capture logic
├── linux_capture.py      # Linux-specific capture logic
├── test-mcp.py           # Test script for functionality
├── mcp-config-example.json # Example MCP configuration
├── pyproject.toml        # Project dependencies
└── README.md            # This file

Testing

Run the test script to verify functionality:

python test-mcp.py

Common Issues

  1. "Window not found" errors:

    • Check exact window title with list_windows
    • Try partial title matching
    • Ensure window is visible and not minimized
  2. Permission errors on Windows:

    • Run as administrator if needed
    • Check Windows security settings
  3. Import errors:

    • Ensure all dependencies are installed: pip install pywinctl pillow pywin32
    • Check Python version (requires 3.12+)

Platform Compatibility

  • Windows: Full support with native Win32 API
  • Linux: Basic support with X11 integration

License

This project is licensed under the MIT License - see the LICENSE file for details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Window Screenshooter MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-window-screenshooter)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools