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:

  • create_framegrabber: Create a new framegrabber from a configuration object and add it to the available grabbers.
  • grab_frame: Grab a frame from the specified framegrabber and return it as an image in the desired format (png, jpg, or webp).
  • list_framegrabbers: List all available framegrabbers by name, sorted alphanumerically.
  • get_framegrabber_config: Retrieve the configuration of a specific framegrabber.
  • set_framegrabber_config: Update the configuration options for a specific framegrabber.
  • release_framegrabber: Release a framegrabber and remove it from the available grabbers.

Resources

The following resources are available in the Framegrab MCP server:

  • framegrabbers: Lists all available framegrabbers by name, sorted alphanumerically.

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.

If autodiscovery is enabled, then you can also configure how RTSP autodiscovery works by changing FRAMEGRAB_RTSP_AUTO_DISCOVERY_MODE. By default, it is set to "off", which disables RTSP autodiscovery. For a thorough attempt at autodiscovery, set it to "complete_fast".

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

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.2.tar.gz (66.3 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.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for framegrab_mcp_server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cc0faf7b4fc12f86737b1a294af799c684ecf5175c588329deacaec69a8a7879
MD5 5ce4527326e44dcc1c85af97400c2f95
BLAKE2b-256 120f5bcf134026ac3cd8d6a6a74597acf086b3f02e5ade9237d5064f681c3b51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for framegrab_mcp_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79bf75804e67a3778de8f13b5947fe0cfe9eb953c70b6d0be1e221031600e922
MD5 9f889560c1a60bb4ba74888d491ed93d
BLAKE2b-256 812a9a386367572f4eba1113b9071709fbf0a2e3dcffa6d29bf576f96763f0f8

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