MCP server for screenshot capture and analysis
## Screen Capture MCP Server: Display Recording and Screenshots The **Screen Capture MCP Server** enables Google Antigravity to capture screens, record videos, and manage display output for documentation, testing, and monitoring purposes. ### Why Screen Capture MCP? - **Multi-display** - Capture from multiple monitors - **Video recording** - Record screen activity - **Region selection** - Capture specific areas - **Format options** - PNG, JPEG, WebP, MP4 - **Annotation** - Add annotations to captures ### Key Features #### 1. Screenshot Capture ```python # Capture full screen screenshot = await mcp.call("screen-capture", "screenshot", { "display": 0, "format": "png" }) print(f"Size: {screenshot[\"width\"]}x{screenshot[\"height\"]}") # Capture specific region region = await mcp.call("screen-capture", "screenshot_region", { "x": 100, "y": 100, "width": 800, "height": 600 }) ``` #### 2. Window Capture ```python # List windows windows = await mcp.call("screen-capture", "list_windows", {}) for win in windows: print(f"{win[\"id\"]}: {win[\"title\"]}") # Capture specific window window_shot = await mcp.call("screen-capture", "capture_window", { "window_id": windows[0]["id"] }) ``` #### 3. Video Recording ```python # Start recording recording = await mcp.call("screen-capture", "start_recording", { "display": 0, "fps": 30, "output": "/tmp/recording.mp4" }) # Stop recording await mcp.call("screen-capture", "stop_recording", { "recording_id": recording["id"] }) ``` #### 4. Annotation ```python # Capture with annotation annotated = await mcp.call("screen-capture", "annotate", { "screenshot": screenshot["data"], "annotations": [ {"type": "rectangle", "x": 100, "y": 100, "width": 200, "height": 50, "color": "red"}, {"type": "arrow", "from": [300, 300], "to": [400, 200], "color": "blue"} ] }) ``` ### Configuration ```json { "mcpServers": { "screen-capture": { "command": "npx", "args": ["-y", "@anthropic/mcp-screen-capture"] } } } ``` ### Use Cases **Documentation**: Capture screenshots for docs. **Bug Reports**: Visual bug documentation. **Video Tutorials**: Record screen tutorials. **Monitoring**: Capture for visual monitoring. The Screen Capture MCP Server enables display capture and recording.
{
"mcpServers": {
"screen-capture": {
"mcpServers": {
"screen-capture": {
"env": {
"ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY"
},
"args": [
"-y",
"screen-view-mcp"
],
"command": "npx"
}
}
}
}
}