
Mcp Screenshot
io.github.Digital-Defiance由 GitHub 帳號 Digital-Defiance 發布v1.0.3更新於 Oct 24, 2026
Screenshot capture with PII masking and cross-platform support for AI agents
發布方自己的服務:screenshot.com.ar
概覽
讓 AI 助理擷取全螢幕、指定視窗或螢幕區域的截圖,並可選擇進行 PII 遮蔽。
- 可以做什麼
- 提供五個工具:screenshot_capture_full、screenshot_capture_window、screenshot_capture_region、screenshot_list_displays 和 screenshot_list_windows。截圖可存成檔案或以 base64 回傳,支援 PNG、JPEG、WebP、BMP 及可設定的品質。選用的 OCR 式 PII 遮蔽會遮蓋電子郵件、電話號碼和信用卡號。安全控制包括允許的儲存目錄、速率限制、視窗封鎖模式和稽核日誌。
- 適用情境
- 適合助理需要看到真實介面而非只有程式碼的情境:視覺除錯、無障礙與對比度檢查、響應式設計比較,以及產生附截圖的文件或缺陷報告。它是桌面端工具,適用於本機開發機而非無頭伺服器。若只需在瀏覽器工作階段內渲染網頁,則不必安裝。
- 執行需求
- 以本機 Node.js 程序透過 stdio 執行,npm 套件為 @ai-capabilities-suite/mcp-screenshot。Linux 需要 imagemagick(X11)或 grim(Wayland);macOS 需要螢幕錄製權限;Windows 不需額外相依套件。選用環境變數:SCREENSHOT_ALLOWED_DIRS、SCREENSHOT_MAX_CAPTURES_PER_MIN、SCREENSHOT_ENABLE_AUDIT_LOG、SCREENSHOT_BLOCKED_WINDOWS。不需要帳號或 API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Screenshot,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
📸 MCP ACS Screenshot Server
[NPM Version] [GitHub Release] [License: MIT] [Node.js Version] [Docker Pulls]
Give AI agents visual superpowers to see, analyze, and document your applications like senior UX designers.
This enterprise-grade MCP server transforms AI from code-only assistants into visual experts capable of UI analysis, accessibility auditing, documentation generation, and responsive design testing.
🔗 Repository
This package is now maintained in its own repository: https://github.com/Digital-Defiance/mcp-screenshot
This repository is part of the AI Capabilitites Suite on GitHub.
🤔 Why Do AI Agents Need Visual Capabilities?
AI agents today are powerful but visually blind:
- ❌ Can read HTML/CSS but can't see actual layouts
- ❌ Can suggest UI improvements without seeing the real user experience
- ❌ Can't detect accessibility issues like poor contrast or spacing
- ❌ Can't create visual documentation or bug reports
- ❌ Can't analyze responsive design across different screen sizes
Result: You're stuck manually creating screenshots, documentation, and visual analysis that AI should handle.
🎯 Revolutionary Use Cases
📚 "AI, create professional documentation"
🔍 "AI, audit this page for accessibility"
🐛 "AI, create a detailed bug report"
🎨 "AI, compare these design variations"
📱 "AI, test responsive design"
✨ What This Changes
Before: AI worked blind, relying on code descriptions
- ❌ "The button looks wrong" → AI guesses the issue
- ❌ "Create documentation" → AI writes generic text
- ❌ "Check accessibility" → AI only reviews code
- ❌ "Test responsive design" → AI can't see actual breakpoints
After: AI sees and analyzes your actual user interface
- ✅ Visual debugging - AI identifies exact pixel-level issues
- ✅ Smart documentation - AI creates guides with real screenshots and annotations
- ✅ Accessibility audits - AI measures actual contrast ratios and spacing
- ✅ Responsive testing - AI captures and compares different screen sizes
- ✅ Design analysis - AI evaluates visual hierarchy and user experience
- ✅ Professional reports - AI creates detailed visual evidence for bugs and improvements
🚀 Features
- Multi-format Support: PNG, JPEG, WebP, BMP with configurable quality
- Flexible Capture: Full screen, specific windows, or custom regions
- Privacy Protection: PII masking with OCR-based detection for emails, phone numbers, and credit cards
- Security Controls: Path validation, rate limiting, audit logging, and configurable policies
- Cross-platform: Linux (X11/Wayland), macOS, Windows with native APIs
- Multi-monitor Support: Capture from specific displays in multi-monitor setups
- Enterprise Security: Window exclusion, audit logging, rate limiting
- AI-Optimized: Structured responses perfect for AI agent workflows
Installation
NPM Installation
System Requirements
Linux:
- X11:
imagemagickpackage (providesimportcommand) - Wayland:
grimpackage
macOS:
- Built-in
screencapturecommand (no additional dependencies) - Screen Recording permission required (System Preferences > Security & Privacy > Privacy > Screen Recording)
Windows:
- No additional dependencies required
MCP Configuration
Add to your MCP settings file (e.g., ~/.kiro/settings/mcp.json or .kiro/settings/mcp.json):
🛠️ 5 Professional MCP Tools
Purpose-built for AI agents to capture, analyze, and work with visual information:
The server exposes 5 comprehensive MCP tools that enable AI agents to see and understand your applications:
1. screenshot_capture_full
Capture full screen or specific display.
Parameters:
display(string, optional): Display ID to capture (defaults to primary display)format(string, optional): Image format -png,jpeg,webp, orbmp(default:png)quality(number, optional): Compression quality 1-100 for lossy formats (default: 90)savePath(string, optional): File path to save screenshot (returns base64 if not provided)enablePIIMasking(boolean, optional): Enable PII detection and masking (default: false)
Example:
Response:
2. screenshot_capture_window
Capture specific application window by ID or title pattern.
Parameters:
windowId(string, optional): Window identifier (usewindowIdorwindowTitle)windowTitle(string, optional): Window title pattern to match (usewindowIdorwindowTitle)includeFrame(boolean, optional): Include window frame and title bar (default: false)format(string, optional): Image format (default:png)quality(number, optional): Compression quality 1-100 (default: 90)savePath(string, optional): File path to save screenshot
Example:
Response:
3. screenshot_capture_region
Capture specific rectangular region of the screen.
Parameters:
x(number, required): X coordinate of top-left cornery(number, required): Y coordinate of top-left cornerwidth(number, required): Width of region in pixelsheight(number, required): Height of region in pixelsformat(string, optional): Image format (default:png)quality(number, optional): Compression quality 1-100 (default: 90)savePath(string, optional): File path to save screenshot
Example:
Response:
4. screenshot_list_displays
List all connected displays with resolution and position information.
Parameters: None
Example:
Response:
5. screenshot_list_windows
List all visible windows with title, process, and position information.
Parameters: None
Example:
Response:
Security Configuration
The server enforces security policies to control screenshot operations. Configure via environment variables or security policy file.
Environment Variables
SCREENSHOT_ALLOWED_DIRS: Comma-separated list of allowed directories for saving screenshotsSCREENSHOT_MAX_CAPTURES_PER_MIN: Maximum captures per minute (default: 60)SCREENSHOT_ENABLE_AUDIT_LOG: Enable audit logging (default: true)SCREENSHOT_BLOCKED_WINDOWS: Comma-separated list of window title patterns to exclude
Security Policy File
Create a security-policy.json file:
Load the policy when starting the server:
Error Handling
All tools return structured error responses with error codes and remediation suggestions.
Error Codes
Error Response Format
Troubleshooting
Linux Issues
Problem: import: command not found or grim: command not found
Solution: Install required packages:
Problem: Black screen or empty captures
Solution: Check display server environment variables:
macOS Issues
Problem: PERMISSION_DENIED error
Solution: Grant Screen Recording permission:
- Open System Preferences > Security & Privacy > Privacy
- Select "Screen Recording" from the list
- Add your terminal application or Node.js to the allowed list
- Restart the application
Problem: Retina display captures are double resolution
Solution: This is expected behavior. Retina displays have 2x pixel density. Use the width and height from metadata to determine actual dimensions.
Windows Issues
Problem: Capture fails with access denied
Solution: Run the application with administrator privileges or check Windows Defender settings.
Problem: Multi-monitor captures show wrong display
Solution: Use screenshot_list_displays to get correct display IDs and positions.
General Issues
Problem: RATE_LIMIT_EXCEEDED error
Solution: The server limits captures to prevent abuse. Wait 60 seconds or adjust maxCapturesPerMinute in security policy.
Problem: INVALID_PATH error when saving
Solution: Ensure the save path is within allowed directories configured in security policy.
Problem: PII masking not working
Solution:
- Ensure tesseract.js is properly installed
- Check that
eng.traineddatalanguage file is available - PII masking requires OCR which may be slow on large images
Problem: Large file sizes
Solution:
- Use JPEG format with lower quality (60-80) for smaller files
- Use WebP format for best compression
- Reduce capture region size if possible
Problem: Out of memory errors
Solution:
- Capture smaller regions instead of full screen
- Reduce quality settings
- Close other applications to free memory
- Use streaming for very large captures
Programmatic Usage
TypeScript/JavaScript
Direct Capture Engine Usage
Development
This package is part of the AI Capabilities Suite monorepo.
Build
Test
Project Structure
Contributing
Contributions are welcome! Please ensure:
- All tests pass (
npm test) - Code follows TypeScript best practices
- New features include tests and documentation
- Security considerations are addressed
License
MIT
Support
For issues and questions:
- GitHub Issues: Create an issue
- Documentation: See TESTING.md for testing guide
- Security: Report security issues privately to [email protected]
來源:README.md,提交 d87dc1f
工具
0版本歷史
1- v1.0.3最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。
其他 Screenshot 整合
screenshot.com.ar
ar.com.screenshot官方發布者
遠端 MCP 伺服器,以真實 Chrome 瀏覽器渲染任何公開網頁,並回傳截圖或乾淨的 Markdown。

Website Screenshot API
由 GitHub 帳號 prometheus-maker 發布
由 Apify 託管的 MCP 伺服器,讓助理把任意網址截成整頁、首屏、行動版或指定元素的截圖,輸出 PNG、JPEG 或 PDF。
Website Screenshot and PDF (Apify actor)
dev.pages.website-screenshot-pdf
Website Screenshot and PDF (Apify actor) 的託管 MCP 服務,由 website-screenshot-pdf.pages.dev 發布;需要憑證;Streamable HTTP。

x402-screenshot-mcp
由 GitHub 帳號 6mickswagger9 發布
本機 stdio MCP 伺服器,為 AI 代理提供 x402 付費截圖 API,並透過 CDP facilitator 在 Base 上以 USDC 結算。

ScreenshotAPI
由 GitHub 帳號 Screenshot-API 發布
ScreenshotAPI 官方 MCP 伺服器,讓助理擷取網頁截圖、把網址或 HTML 轉成 PDF、錄製捲動影片、抓取渲染後的頁面內容,並批次截圖。