Live webcam and screenshot capture
## Webcam/Screenshot Capture MCP Server: Visual Input Capture The **Webcam/Screenshot Capture MCP Server** enables Google Antigravity to capture webcam images and screenshots, providing visual input for AI analysis and automated documentation. ### Why Webcam Capture MCP? - **Webcam access** - Capture from connected cameras - **Screen capture** - Take screenshots of displays - **Multiple formats** - JPEG, PNG, WebP output - **Device selection** - Choose specific cameras - **AI-ready output** - Base64 encoded for vision models ### Key Features #### 1. Webcam Capture ```python # Capture from webcam image = await mcp.call("webcam", "capture", { "device": 0, "format": "jpeg", "quality": 85 }) print(f"Image size: {image[\"width\"]}x{image[\"height\"]}") # Save to file await mcp.call("webcam", "capture_to_file", { "device": 0, "output": "/tmp/webcam.jpg" }) ``` #### 2. Device Listing ```python # List available cameras devices = await mcp.call("webcam", "list_devices", {}) for device in devices: print(f"{device[\"id\"]}: {device[\"name\"]}") # Get device capabilities caps = await mcp.call("webcam", "get_capabilities", { "device": 0 }) print(f"Resolutions: {caps[\"resolutions\"]}") ``` #### 3. Screenshot Capture ```python # Capture screen screenshot = await mcp.call("webcam", "screenshot", { "display": 0, "format": "png" }) # Capture region region = await mcp.call("webcam", "screenshot_region", { "x": 100, "y": 100, "width": 800, "height": 600 }) ``` #### 4. AI Analysis Prep ```python # Capture for vision model result = await mcp.call("webcam", "capture_for_ai", { "source": "webcam", "max_size": 1024, "format": "base64" }) # Returns base64 ready for AI print(f"Ready for analysis: {len(result[\"base64\"])} chars") ``` ### Configuration ```json { "mcpServers": { "webcam": { "command": "npx", "args": ["-y", "@anthropic/mcp-webcam-capture"] } } } ``` ### Use Cases **Visual Input**: Capture images for AI vision analysis. **Documentation**: Auto-capture for visual documentation. **Monitoring**: Periodic visual capture for monitoring. **Testing**: Visual testing and comparison. The Webcam Capture MCP Server enables visual input capture.
{
"mcpServers": {
"webcam-capture": {
"mcpServers": {
"webcam-capture": {
"args": [
"-y",
"@evalstate/webcam-capture-mcp"
],
"command": "npx"
}
}
}
}
}