screenshot_mcp_server
MCP server that provides screenshot capabilities for AI tools, allowing them to capture and process screen content
claude mcp add --transport stdio codingthefuturewithai-screenshot_mcp_server uvx screenshot_mcp_server
How to use
This MCP server provides a screenshot capability for AI tooling. It captures the user’s screen, compresses the image to JPEG, and delivers the data as a base64-encoded payload suitable for processing by AI assistants. Two transport modes are supported: stdio for command-line usage and SSE for web-based integrations. You can test the server using the provided CLI client or integrate programmatically via the MCP client interfaces to request a screenshot through the take_screenshot tool.
How to install
Prerequisites:
- Python 3.10 or newer
- Git
- uv (the Python package manager for UV runtimes) or a standard Python environment
From Source:
-
Clone the repository git clone https://github.com/codingthefuturewithai/screenshot_mcp_server.git cd screenshot_mcp_server
-
Install the package in editable mode (recommended via UV) uv pip install -e .
-
Alternatively, install with pip (editable) pip install -e .
Usage after installation:
- Run in stdio mode (default): use the provided CLI or integrate via MCP clients as shown in the usage example.
Additional notes
Notes and tips:
- The server supports two transport modes: stdio (default) and SSE (for web-based apps). SSE typically runs on port 3001 by default.
- Image data is JPEG-compressed and base64-encoded for efficient transfer.
- Ensure you have the necessary screen capture permissions on your OS (especially on macOS and Linux with Wayland/X11).
- Required dependencies include mcp, pyautogui (for screen capture), and Pillow (image processing).
- If you encounter permission or display issues on headless environments, consider using a virtual display or enabling an X server/Wayland session compatible with pyautogui.
- Environment variables are not strictly required for basic operation, but you can configure logging, ports, and transport options as needed in your deployment environment.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP