MCP.so
登录
服务器

Mcp Window Screenshooter

@Tiartyos

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

概览

What is Mcp Window Screenshooter?

Mcp Window Screenshooter is a cross-platform Model Context Protocol (MCP) server built in Python that enables AI agents to capture screenshots of specific application windows on Windows and Linux. It provides precise window-based capture for AI verification workflows, automated testing, and application monitoring, unlike traditional full-screen capture solutions.

How to use Mcp Window Screenshooter?

Install Python 3.12+, clone the repository, and install dependencies with pip install pywinctl pillow pywin32. Start the server with python server.py in STDIO mode, then configure an MCP client (such as Cursor IDE or Claude Desktop) to point to the server file. The server exposes three tools: capture_window, list_windows, and get_window_info.

Key features of Mcp Window Screenshooter

  • Window-specific capture by name or title
  • Works on Windows and Linux with platform-optimized backends
  • Integrates with AI agents via the Model Context Protocol
  • Uses STDIO transport for reliable communication
  • Smart window state restoration and focus management after capture
  • Performance-optimized platform-specific implementations

Use cases of Mcp Window Screenshooter

  • AI development workflows like code verification via Unity editor screenshots
  • UI testing and automated testing sequences
  • Generating visual documentation of application interfaces
  • Quality assurance screenshot comparison for regression testing
  • Process monitoring and state capture for workflow verification

FAQ from Mcp Window Screenshooter

Which platforms does Mcp Window Screenshooter support?

Windows and Linux. Windows uses Win32 API with BitBlt and Graphics Capture API; Linux uses X11-based window capture.

How do I capture a specific window?

Use the capture_window tool with a window title (exact or partial). Optionally specify an output path, image format (PNG or JPEG), and JPEG quality. Returns base64 image data or a file path.

How can I see all available windows?

Call the list_windows tool. It returns an array of window objects with ID, title, position, and size information.

What happens if a window is not found?

The server returns a “window not found” error. You can first list windows with list_windows to verify the exact title, try partial matching, or ensure the window is visible.

How do I configure Mcp Window Screenshooter with Cursor IDE?

Add an entry in your MCP configuration file with command "python", args ["server.py"], and the correct working directory, using "transport": "stdio".

标签

来自「其他」的更多内容