
13rac1/videocapture-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Model Context Protocol (MCP) server to capture images from an OpenCV-compatible webcam or video source
Обзор
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. Here are some examples of the Video Still Capture MCP server in action: Left: Claude's view of the image | Right: Actual webcam capture :-------------------------:|:-------------------------: Left: Claude's view of the image | Right: Actual webcam capture :-------------------------:|:-------------------------: Ensure you replace /ABSOLUTE_PATH/videocapture-mcp with the project's absolute path. Ensure you replace C:\ABSOLUTE_PATH\videocapture-mcp with the project's absolute path. Alternatively, you can use the mcp CLI to install the server: This will automatically configure Claude Desktop to use your videocapture MCP server.
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
- Python 3.10+
- OpenCV (
opencv-python) - MCP Python SDK
- UV (optional)
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.
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"VideoCapture ": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"numpy",
"--with",
"opencv-python",
"mcp",
"run",
"/ABSOLUTE_PATH/videocapture_mcp.py"
]
}
}
}