Video Still Capture MCP logo

Video Still Capture MCP

Community
13rac1

Model Context Protocol (MCP) server to capture images from an OpenCV-compatible webcam or video source

Publisher13rac1
Repositoryvideocapture-mcp
LanguagePython
Forks
7
Stars
19
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Video Still Capture MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    19 stars and 7 forks from the linked repository.

Video Still Capture MCP

A Model Context Protocol server for accessing and controlling webcams via OpenCV

Overview

Video Still Capture MCP is a Python implementation of the Model Context Protocol (MCP) that provides AI assistants with the ability to access and control webcams and video sources through OpenCV. This server exposes a set of tools that allow language models to capture images, manipulate camera settings, and manage video connections. There is no video capture.

Examples

Here are some examples of the Video Still Capture MCP server in action:

Orange Example

Left: Claude's view of the imageRight: Actual webcam capture
Claude's view of orangeWebcam capture of orange

Magnet Example

Left: Claude's view of the imageRight: Actual webcam capture
Claude's view of magnetWebcam capture of magnet

Installation

Prerequisites

Installation from source

bash
git clone https://github.com/13rac1/videocapture-mcp.git
cd videocapture-mcp
pip install -e .

Run the MCP server:

bash
mcp dev videocapture_mcp.py

Integrating with Claude for Desktop

macOS/Linux

Edit your Claude Desktop configuration:

bash
# Mac
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Linux
nano ~/.config/Claude/claude_desktop_config.json 

Add this MCP server configuration:

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

Ensure you replace /ABSOLUTE_PATH/videocapture-mcp with the project's absolute path.

Windows

Edit your Claude Desktop configuration:

powershell
nano $env:AppData\Claude\claude_desktop_config.json

Add this MCP server configuration:

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

Ensure you replace C:\ABSOLUTE_PATH\videocapture-mcp with the project's absolute path.

Using the Installation Command

Alternatively, you can use the mcp CLI to install the server:

bash
mcp install videocapture_mcp.py

This will automatically configure Claude Desktop to use your videocapture MCP server.

Once integrated, Claude will be able to access your webcam or video source when requested. Simply ask Claude to take a photo or perform any webcam-related task.

Features

  • Quick Image Capture: Capture a single image from a webcam without managing connections
  • Connection Management: Open, manage, and close camera connections
  • Video Properties: Read and adjust camera settings like brightness, contrast, and resolution
  • Image Processing: Basic image transformations like horizontal flipping

Tools Reference

quick_capture

Quickly open a camera, capture a single frame, and close it.

python
quick_capture(device_index: int = 0, flip: bool = False) -> Image
  • device_index: Camera index (0 is usually the default webcam)
  • flip: Whether to horizontally flip the image
  • Returns: The captured frame as an Image object

open_camera

Open a connection to a camera device.

python
open_camera(device_index: int = 0, name: Optional[str] = None) -> str
  • device_index: Camera index (0 is usually the default webcam)
  • name: Optional name to identify this camera connection
  • Returns: Connection ID for the opened camera

capture_frame

Capture a single frame from the specified video source.

python
capture_frame(connection_id: str, flip: bool = False) -> Image
  • connection_id: ID of the previously opened video connection
  • flip: Whether to horizontally flip the image
  • Returns: The captured frame as an Image object

get_video_properties

Get properties of the video source.

python
get_video_properties(connection_id: str) -> dict
  • connection_id: ID of the previously opened video connection
  • Returns: Dictionary of video properties (width, height, fps, etc.)

set_video_property

Set a property of the video source.

python
set_video_property(connection_id: str, property_name: str, value: float) -> bool
  • connection_id: ID of the previously opened video connection
  • property_name: Name of the property to set (width, height, brightness, etc.)
  • value: Value to set
  • Returns: True if successful, False otherwise

close_connection

Close a video connection and release resources.

python
close_connection(connection_id: str) -> bool
  • connection_id: ID of the connection to close
  • Returns: True if successful

list_active_connections

List all active video connections.

python
list_active_connections() -> list
  • Returns: List of active connection IDs

Example Usage

Here's how an AI assistant might use the Webcam MCP server:

  1. Take a quick photo:

    I'll take a photo using your webcam.

    (The AI would call quick_capture() behind the scenes)

  2. Open a persistent connection:

    I'll open a connection to your webcam so we can take multiple photos.

    (The AI would call open_camera() and store the connection ID)

  3. Adjust camera settings:

    Let me increase the brightness of the webcam feed.

    (The AI would call set_video_property() with the appropriate parameters)

Advanced Usage

Resource Management

The server automatically manages camera resources, ensuring all connections are properly released when the server shuts down. For long-running applications, it's good practice to explicitly close connections when they're no longer needed.

Multiple Cameras

If your system has multiple cameras, you can specify the device index when opening a connection:

python
# Open the second webcam (index 1)
connection_id = open_camera(device_index=1)

Troubleshooting

  • Camera Not Found: Ensure your webcam is properly connected and not in use by another application
  • Permission Issues: Some systems require explicit permission to access the camera
  • OpenCV Installation: If you encounter issues with OpenCV, refer to the official installation guide

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "13rac1-videocapture-mcp": {
      "command": "",
      "args": []
    }
  }
}

Use Video Still Capture MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Video Still Capture MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Video Still Capture MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Video Still Capture MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "13rac1-videocapture-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "videocapture-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Video Still Capture MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Video Still Capture MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Video Still Capture MCP to help me with this task?
Video Still Capture MCP
Sure. I read it.
Here is what I found using Video Still Capture MCP.

Frequently asked questions

What is the Video Still Capture MCP MCP server used for?

Video Still Capture MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Video Still Capture MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Video Still Capture MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Video Still Capture MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Video Still Capture MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Video Still Capture MCP MCP to TypingMind?

Video Still Capture MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Video Still Capture MCP MCP provide in TypingMind?

Video Still Capture MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Video Still Capture MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Video Still Capture MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇