Skip to main content

Allow LLMs to capture images from cameras and video streams.

Project description

framegrab-mcp-server

Overview

A Model Context Protocol (MCP) server for capturing images from cameras and video streams. Uses the framegrab library to handle the actual image capture. This server can be used to capture images from a webcam, a USB camera, an RTSP stream, a youtube live stream, or any other video source supported by the framegrab library.

This MCP server is still in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.

Tools

The following tools are available in the Framegrab MCP server:

  • list_framegrabbers: List all available framegrabbers by name, sorted alphanumerically.
  • grab_frame: Grab a frame from the specified framegrabber and return it as an image.
  • get_config: Retrieve the configuration of a specific framegrabber.
  • set_config: Update the configuration options for a specific framegrabber.
  • create_grabber: Create a new framegrabber from configuration and add it to the available grabbers.
  • release_grabber: Release a framegrabber and remove it from the available grabbers.

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "framegrab": {
      "command": "/Users/your_user/.cargo/bin/uvx",
      "args": [
        "framegrab-mcp-server"
      ]
    }
  }
}

Usage with Zed

Add the following to your zed settings.json:

{
  "context_servers": {
    "framegrab": {
      "command": {
        "path": "/Users/your_user/.cargo/bin/uvx",
        "args": [
          "framegrab-mcp-server"
        ]
      }
    }
  }
}

(experimental) Enabling autodiscovery of framegrabbers

Enable autodiscovery of framegrabbers (such as your webcam or usb cameras) by setting ENABLE_FRAMEGRAB_AUTO_DISCOVERY="true" in your environment variables. This will automatically add any discovered framegrabbers to the list of available framegrabbers:

{
  "mcpServers": {
    "framegrab": {
      "command": "/Users/your_user/.cargo/bin/uvx",
      "args": [
        "framegrab-mcp-server"
      ],
      "env": {
        "ENABLE_FRAMEGRAB_AUTO_DISCOVERY": "true"
      }
    }
  }
}

This will increase server startup time.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

framegrab_mcp_server-0.1.1.tar.gz (66.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

framegrab_mcp_server-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file framegrab_mcp_server-0.1.1.tar.gz.

File metadata

File hashes

Hashes for framegrab_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8ee8ff97c0cd1d1b44099af516294f40f4bb84737e281122479764c27be2eacf
MD5 927fa241141477baca87a0f4c402cea8
BLAKE2b-256 e3463058815ea3b8652d12f610e1628d3f157b94516881cc14e788ae8707e70c

See more details on using hashes here.

File details

Details for the file framegrab_mcp_server-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for framegrab_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45942b39363d46b76e537869c3e022664dc118e93f7bd135ea4c280ce040e812
MD5 3bb6fbf5f688ced371312cec5dd67029
BLAKE2b-256 53d524ed2602358cbe540c073061154ada6d2de515cd0f6ec5a6be73b7d72664

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page