mcp-webcam

mcp-webcam

site icon
2025.03.29 21
TypeScript实时图像捕捉截图功能其它
mcp-webcam 是一个利用用户摄像头实时捕捉图像并发送到 Claude Desktop(或其他 MCP 客户端)的服务。它提供了 `capture` 和 `screenshot` 工具,允许 Claude 从摄像头捕获帧或启动截图功能。此外,它还提供了一个 `current view from the webcam` 资源。
View on GitHub

Overview

基本能力

产品定位

mcp-webcam 主要用于实时图像捕捉和截图功能,适用于需要与摄像头交互的场景。

核心功能

  1. 实时图像捕捉:通过摄像头实时捕捉图像并发送到 MCP 客户端。
  2. 截图功能:支持截图并自动调整大小以适应 Claude 的处理需求。
  3. 资源提供:提供 current view from the webcam 资源。

适用场景

  1. 实时图像分析:如询问用户穿着的颜色或手持物品。
  2. 截图指导:在浏览器中导航以指导截图区域。
  3. 多模态交互:适用于需要摄像头交互的本地 MCP 服务器开发。

工具列表

  1. capture:从摄像头捕获帧。
  2. screenshot:启动截图功能。

常见问题解答

  1. 不支持 Safari:截图功能在 Safari 上无法使用,因为它需要人工启动。
  2. Claude Desktop 不支持采样:如需处理多模态采样请求,建议使用 fast-agent

使用教程

使用依赖

  1. 安装最新版本的 NodeJS

安装教程

  1. claude_desktop_config.json 文件的 mcpServers 部分添加以下配置:
    "webcam": {
      "command": "npx",
      "args": [
        "-y",
        "@llmindset/mcp-webcam"
      ]
    }
  1. 确保使用 Claude Desktop 0.78 或更高版本。

调试方式

  1. 启动 Claude Desktop 并连接到 http://localhost:3333
  2. 可以询问 Claude 如 get the latest picture from my webcamwhat colour top am i wearing?
  3. 使用 "What am I holding?" 按钮发送采样请求。

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。