Screenshot MCP Server

Integrations

  • Provides automatic JPEG compression for captured screenshots, enabling efficient transfer of screen content for AI processing

  • Supports capturing screenshots on Linux operating systems, allowing AI tools to view and analyze content on Linux screens

  • Supports capturing screenshots on macOS operating systems, allowing AI tools to view and analyze content on macOS screens

MCP サーバーのスクリーンショット

AI ツールにスクリーンショット機能を提供し、画面のコンテンツをキャプチャして処理できるようにする MCP サーバー。

概要

このMCPサーバーにより、AIツールはユーザーの画面のスクリーンショットを撮影できるようになり、AIアシスタントはユーザーが見ているものを把握・分析できるようになります。サーバーは画像のキャプチャ、圧縮、そしてAI処理に適した形式での配信を処理します。

特徴

  • 全画面スクリーンショットを撮る
  • 効率的な転送のための自動JPEG圧縮
  • 信頼性の高い伝送のためにBase64でエンコードされた画像データ
  • stdio と SSE トランスポートモードの両方をサポート
  • 設定可能な画質と最適化
  • テスト用のシンプルなコマンドラインインターフェース

インストール

ソースから

# 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 .

利用可能なツール

スクリーンショット

説明: ユーザーの画面のスクリーンショットを撮り、JPEG 画像として返します。

パラメータ: なし

戻り値:

  • 画像コンテンツは JPEG 形式で、base64 でエンコードされています

使用法

サーバーは次の 2 つの方法で使用できます。

コマンドラインクライアント

# Take a screenshot and save it to a file screenshot_mcp_server-client output.jpg

プログラムによる使用

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...

要件

  • Python 3.10 以降 (< 3.13)
  • 依存関係:
    • mcp >= 1.0.0
    • pyautogui >= 0.9.54
    • 枕 >= 10.0.0
  • オペレーティングシステム: Linux、macOS、Windows

構成

サーバーは 2 つのトランスポート モードをサポートしています。

  • stdio (デフォルト): コマンドラインで使用する場合
  • SSE: Webベースのアプリケーションの場合、デフォルトでポート3001で実行されます

SSE モードで実行するには:

screenshot_mcp_server-server-sse --port 3001

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています。

著者

ティム・キッチンズ ( timkitch@codingthefuture.ai )

-
security - not tested
F
license - not found
-
quality - not tested

AI ツールがユーザーの画面のスクリーンショットをキャプチャして処理できるようにすることで、AI アシスタントがシンプルな MCP インターフェースを通じてユーザーが見ているものを確認して分析できるようになります。

  1. Overview
    1. Features
      1. Installation
        1. From Source
      2. Available Tools
        1. take_screenshot
      3. Usage
        1. Command Line Client
        2. Programmatic Usage
      4. Requirements
        1. Configuration
          1. License
            1. Author
              ID: sg2duym9c8