screenshot-mcp
screenshot-mcp
モニター全体のスクリーンショットを撮影し、インライン(base64)または保存されたファイルとして返すMCPサーバーです。macOS、ネイティブLinux(X11およびWayland)、ネイティブWindows、およびWSL2をサポートしています。
ツール
list_monitors
接続されているすべてのモニターを、インデックス、解像度、プライマリステータスとともに一覧表示します。モニターのインデックスを確認するために、まずこれを呼び出してください。
take_screenshot
1台のモニターのスクリーンショットを撮影します。
引数 | 型 | デフォルト | 説明 |
| 整数 |
|
|
|
|
|
|
| 文字列 | 一時ファイル | 出力パス。 |
ヒント: 超高解像度モニター(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 | 追加設定不要 — |
ネイティブLinux / X11 |
|
ネイティブLinux / Wayland |
|
ネイティブWindows | 追加設定不要 — PowerShell + |
WSL2 | 追加設定不要 — Windows側の |
Claude Codeでの設定
claude mcp add screenshot node /absolute/path/to/screenshot-mcp/dist/index.jsClaude 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ファイルシステムに書き込まれ、その後読み戻されます。
This server cannot be deployed
Maintenance
Related MCP Connectors
Capture website screenshots, run bulk captures, and manage screenshot schedules and history.
1Screenshot any URL/HTML as PNG/JPEG/WebP, or read it as clean Markdown/text for LLMs.
Pixel-perfect webpage screenshots rendered in a real browser, full-page or viewport, via one POST.
Clean PNG/JPEG screenshots via REST or MCP, with goal-driven multi-step navigation.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceCaptures screenshots and saves them to file paths specified by client applications, primarily designed to facilitate screenshot analysis by AI assistants running in WSL environments.1-
- AlicenseNot gradedqualityDmaintenanceEnables 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 npmISC
- AlicenseNot gradedqualityCmaintenanceEnterprise-grade screenshot capture server for AI agents with multi-format support, PII masking, multi-monitor support, and security controls for capturing full screens, specific windows, or custom regions across Linux, macOS, and Windows.114 npm2MIT
- AlicenseBqualityFmaintenanceEnables 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.13MIT