Skip to main content

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)

Metadata

Release files for iflow-mcp_codingthefuturewithai_screenshot_mcp_server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_codingthefuturewithai_screenshot_mcp_server 0.1.0
File Size Uploaded
iflow_mcp_codingthefuturewithai_screenshot_mcp_server-0.1.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_codingthefuturewithai_screenshot_mcp_server 0.1.0
File Interpreter ABI Platform
iflow_mcp_codingthefuturewithai_screenshot_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / iflow_mcp_codingthefuturewithai_screenshot_mcp_server-0.1.0.tar.gz

Download URL iflow_mcp_codingthefuturewithai_screenshot_mcp_server-0.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
70dacb4e5e20242898de523d730be5a540b063bb79259e1779b812778a7dd363
BLAKE2b-256 checksum
How to use checksums
62e683b7d3adb56161b09409c452d7f576540e6ec15f0a1ca74083919a8cbc4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_codingthefuturewithai_screenshot_mcp_server-0.1.0-py3-none-any.whl

Download URL iflow_mcp_codingthefuturewithai_screenshot_mcp_server-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7785c06fcc05bbe79bd15401d85c4cfe259310be26139feaca22e8a8ba4ad969
BLAKE2b-256 checksum
How to use checksums
1a663770f6be8616daf3f821b8a8dcb0510a5099eef8def12cb314a17898e488
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page