Skip to main content
Glama

screenshot-mcp

モニター全体のスクリーンショットを撮影し、インライン(base64)または保存されたファイルとして返すMCPサーバーです。macOS、ネイティブLinux(X11およびWayland)、ネイティブWindows、およびWSL2をサポートしています。

ツール

list_monitors

接続されているすべてのモニターを、インデックス、解像度、プライマリステータスとともに一覧表示します。モニターのインデックスを確認するために、まずこれを呼び出してください。

take_screenshot

1台のモニターのスクリーンショットを撮影します。

引数

型

デフォルト

説明

monitor

整数

0

list_monitorsから取得したモニターのインデックス

return

"inline"

"path"

"inline" = レスポンスにbase64 PNGを含める(Claudeが認識可能); "path" = ディスクに保存し、ファイルパスを返す

path

文字列

一時ファイル

出力パス。return="path"の場合のみ使用

ヒント: 超高解像度モニター(4K、5K)は大きなbase64ブロブを生成します。コンテキスト制限に達した場合は、return="path"に切り替え、Readツールを使用してファイルを表示してください。

Related MCP server: GetScreen MCP Server

インストール

git clone https://github.com/you/screenshot-mcp
cd screenshot-mcp
npm install
npm run build

プラットフォーム要件

プラットフォーム

要件

macOS

追加設定不要 — screencaptureおよびsystem_profiler(標準搭載)を使用

ネイティブLinux / X11

scrotまたはimagemagick: sudo apt install scrot

ネイティブLinux / Wayland

grim + wlr-randr: sudo apt install grim wlr-randr

ネイティブWindows

追加設定不要 — PowerShell + System.Drawingを使用

WSL2

追加設定不要 — Windows側のpowershell.exeを呼び出します

Claude Codeでの設定

claude mcp add screenshot node /absolute/path/to/screenshot-mcp/dist/index.js

Claude Desktopでの設定

claude_desktop_config.jsonに追加します:

{
  "mcpServers": {
    "screenshot": {
      "command": "node",
      "args": ["/absolute/path/to/screenshot-mcp/dist/index.js"]
    }
  }
}

WSL2の仕組み

WSL2はWindowsのディスプレイに直接アクセスできません。このサーバーはWSLを(/proc/versionまたはWSL_DISTRO_NAME経由で)検出し、powershell.exeを呼び出してSystem.Windows.Forms.ScreenおよびSystem.Drawingを使用したキャプチャスクリプトを実行します。PNGは\wsl.localhost\... UNCパス経由でLinuxの/tmpファイルシステムに書き込まれ、その後読み戻されます。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables capturing screenshots of all connected monitors with automatic JPEG compression and multi-platform support including WSL environments. Supports quality adjustment and image resizing through simple natural language commands.
    1 npm
    ISC
  • A
    license
    B
    quality
    F
    maintenance
    Enables AI assistants running in WSL to capture Windows screenshots of full desktops, specific monitors, or individual windows by title or process name. It features DPI awareness, automatic path conversion between WSL and Windows, and customizable storage options.
    1
    3
    MIT