
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、录制滚动视频、抓取渲染后的页面内容,并批量截图。