1V

13rac1/videocapture-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

20 stars 9 forks 质量 52 趋势 10

模型上下文协议(MCP)服务器,用于从兼容Open&CV的摄像头或视频源捕获图像

概览

视频静态捕捉MCP是模型上下文协议(MCP)的Python实现,使AI助手能够通过OpenCV访问和控制网络摄像头和视频源。该服务器展示了一套工具,允许语言模型捕捉图像、操作相机设置和管理视频连接。没有视频采集功能。 以下是视频静态捕捉MCP服务器的一些实际运行示例: 左:克洛德对图片的视角 |右:实际摄像头拍摄 :-------------------------:|:-------------------------: 左:克洛德对图片的视角 |右:实际摄像头拍摄 :-------------------------:|:-------------------------: 确保你用项目的绝对路径替换 /ABSOLUTE_PATH/videocapture-mcp。 确保你用项目的绝对路径替换C:\ABSOLUTE_PATH\videocapture-mcp。 或者,你也可以使用 mcp CLI 来安装服务器: 这会自动配置Claude Desktop使用你的视频采集MCP服务器。

概述(AI 翻译)

一个模型上下文协议服务器,用于通过OpenCV访问和控制摄像头

概述

视频静态捕捉MCP是模型上下文协议(MCP)的Python实现,使AI助手能够通过OpenCV访问和控制网络摄像头和视频源。该服务器展示了一套工具,允许语言模型捕捉图像、操作相机设置和管理视频连接。没有视频采集功能。

示例

以下是视频静态捕捉MCP服务器的一些实际运行示例:

橙色示例

左:Claude对图像的视角 右:实际摄像头拍摄

磁石示例

左:Claude对图像的视角 右:实际摄像头拍摄

安装

先决条件

  • Python 3.10+
  • OpenCV(opencv-python)
  • MCP Python SDK
  • UV(可选)

源头安装

运行MCP服务器:

与桌面版Claude集成

macOS/Linux

编辑你的Claude桌面配置:

添加以下MCP服务器配置:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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 image Right: Actual webcam capture

Magnet Example

Left: Claude’s view of the image Right: Actual webcam capture

Installation

Prerequisites

Installation from source

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

Run the MCP server:

mcp dev videocapture_mcp.py

Integrating with Claude for Desktop

macOS/Linux

Edit your Claude Desktop configuration:

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

Add this MCP server configuration:

{
  "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:

nano $env:AppData\Claude\claude_desktop_config.json

Add this MCP server configuration:

{
  "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:

mcp install videocapture_mcp.py

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

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

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