Screenshot MCP Server
codingthefuturewithai/screenshot_mcp_server · 26 stars · Python
MCP server MCP server that provides screenshot capabilities for AI tools, allowing them to capture and process screen content
Install
The repo has no one-line install. Follow its README.
Files
Screenshot MCP Server
An MCP server that provides screenshot capabilities for AI tools, allowing them to capture and process screen content.
Overview
This MCP server enables AI tools to take screenshots of the user's screen, making it possible for AI assistants to see and analyze what the user is looking at. The server handles image capture, compression, and delivery in a format suitable for AI processing.
Features
- Take full screen screenshots
- Automatic JPEG compression for efficient transfer
- Base64 encoded image data for reliable transmission
- Support for both stdio and SSE transport modes
- Configurable image quality and optimization
- Simple command-line interface for testing
Installation
From Source
# Clone the repository git clone https://github.com/codingthefuturewithai/screenshot_mcp_server.git cd screenshot_mcp_server # Install using UV (recommended) uv pip install -e . # Or using pip pip install -e .
Available Tools
take_screenshot
Description: Takes a screenshot of the user's screen and returns it as a JPEG image.
Parameters: None
Returns:
- Image content in JPEG format, base64 encoded
Usage
The server can be used in two ways:
Command Line Client
# Take a screenshot and save it to a file screenshot_mcp_server-client output.jpg
Programmatic Usage
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
async with stdio_client(StdioServerParameters(command="screenshot_mcp_server-server")) as (read, write):
async with ClientSession(read, write) as session:
result = await session.call_tool("take_screenshot")
# Process the screenshot data...
Requirements
- Python 3.10 or later (< 3.13)
- Dependencies:
- mcp >= 1.0.0
- pyautogui >= 0.9.54
- Pillow >= 10.0.0
- Operating Systems: Linux, macOS, Windows
Configuration
The server supports two transport modes:
- stdio (default): For command-line usage
- SSE: For web-based applications, runs on port 3001 by default
To run in SSE mode:
screenshot_mcp_server-server-sse --port 3001
License
This project is licensed under the MIT License.
Author
Tim Kitchens (timkitch@codingthefuture.ai)
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 26
- Language
- Python
- Last push
- 2025-03-07
- Forks
- 11
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k