MCP Catalogs
Homevideocapture-mcp screenshot

videocapture-mcp

by 13rac1·17·Score 37

Python MCP server for accessing and controlling webcams via OpenCV to capture images and manipulate camera settings.

mediadeveloper-toolsai-llm
7
Forks
5
Open issues
14 mo ago
Last commit
2d ago
Indexed

Overview

Video Still Capture MCP is a Python implementation that provides AI assistants with the ability to access and control webcams and video sources through OpenCV. It exposes tools for capturing images, managing camera connections, and adjusting video properties like brightness and resolution. The server supports both quick one-time captures and persistent camera connections for multiple operations.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI assistants need to take photos or view the environment through a webcam
you:Automated image capture for documentation or analysis purposes
you:Camera control and property adjustment in AI applications
you:Can this server access multiple cameras?
you:Does this server support video streaming?

When to choose this

Choose this server when you need AI agents to capture static images from webcams for visual analysis or document processing.

When NOT to choose this

Avoid this server if you need real-time video streaming capabilities or advanced image processing beyond basic capture.

Tools this server exposes

7 tools extracted from the README
  • quick_capturequick_capture(device_index: int = 0, flip: bool = False) -> Image

    Capture a single frame from a webcam without managing connections

  • open_cameraopen_camera(device_index: int = 0, name: Optional[str] = None) -> str

    Open a connection to a camera device and return a connection ID

  • capture_framecapture_frame(connection_id: str, flip: bool = False) -> Image

    Capture a single frame from an opened video connection

  • get_video_propertiesget_video_properties(connection_id: str) -> dict

    Get properties of the video source (width, height, fps, etc.)

  • set_video_propertyset_video_property(connection_id: str, property_name: str, value: float) -> bool

    Set a property of the video source like brightness or resolution

  • close_connectionclose_connection(connection_id: str) -> bool

    Close a video connection and release resources

  • list_active_connectionslist_active_connections() -> list

    List all active video connections

Comparable tools

vision-camera-mcpopencv-pythonpycamera-mcp

Installation

Installation

Prerequisites:

  • Python 3.10+
  • OpenCV (opencv-python)
  • [MCP Python SDK](https://modelcontextprotocol.io/docs/)
  • [UV](https://astral.sh/uv/) (optional)
git clone https://github.com/13rac1/videocapture-mcp.git
cd videocapture-mcp
pip install -e .

Run the MCP server:

mcp dev videocapture_mcp.py

Claude Desktop configuration (example):

{
  "mcpServers": {
    "VideoCapture": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with",
        "numpy",
        "--with",
        "opencv-python",
        "mcp",
        "run",
        "/ABSOLUTE_PATH/videocapture_mcp.py"
      ]
    }
  }
}

FAQ

Can this server access multiple cameras?
Yes, you can specify different device indices when opening a connection, e.g., open_camera(device_index=1) for the second webcam.
Does this server support video streaming?
No, this server only provides tools for capturing still images from video sources, not continuous video streaming.

Compare videocapture-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.