
evalstate/mcp-webcam 是从 https://github.com/evalstate/mcp-webcam. 导入的 MCP 服务器候选
概览
evalstate/mcp-webcam 是从 https://github.com/evalstate/mcp-webcam. 导入的 MCP 服务器候选
概述(AI 翻译)
为了庆祝获得52颗GitHub星,mcp-webcam 0.2.0来了!现在支持streamable-http!!无需安装!- 现在就在https://webcam.fast-agent.ai/试试。你可以通过在URL后面添加?user= 来指定自己的用户ID。请注意,这个共享实例是为了娱乐,而非安全——请见下文如何本地运行自己的副本。
在可流式HTTP模式下,多个客户端可以同时连接,你可以选择哪个客户端用于采样。
如果星数达到100星,我会再加一个功能😊。
多用户模式
在流媒体模式下运行时,如果你设置了MCP_HOST环境变量,主机名会作为URL构建的前缀,用户进入网页时会自动生成5字符的用户ID。
MCP-摄像头
MCP服务器,提供访问您的Web摄像头。提供capture和[screenshot工具,用于从摄像头拍摄图像或截图。当前图像也作为资源提供。
MCP采样
mcp-webcam 支持“采样”!按下“采样”按钮,将采样请求连同输入的消息一起发送给客户端。
[!提示]
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
⭐⭐ mcp-webcam 0.2.0 - the 50 Star Update ⭐⭐
In celebration of getting 52 GitHub stars, mcp-webcam 0.2.0 is here! Now supports streamable-http!! No installation required! - try it now at https://webcam.fast-agent.ai/. You can specify your own UserID by adding ?user= after the URL. Note this shared instance is for fun, not security - see below for instructions how to run your own copy locally.
In streamable-http mode multiple clients can connect simultaneously, and you can choose which is used for Sampling.
If we get to 100 stars I’ll add another feature 😊.
Multi-user Mode
When run in Streaming mode, if you set an MCP_HOST environment variable the host name is used as a prefix in URL construction, and 5 character UserIDs are automatically generated when the User lands on the webpage.
mcp-webcam
MCP Server that provides access to your WebCam. Provides capture and screenshot tools to take an image from the Webcam, or take a screenshot. The current image is also available as a Resource.
MCP Sampling
mcp-webcam supports “sampling”! Press the “Sample” button to send a sampling request to the Client along with your entered message.
[!TIP] Claude Desktop does not currently support Sampling. If you want a Client that can handle multi-modal sampling request, try https://github.com/evalstate/fast-agent/ or VSCode (more details below).
Installation and Running
NPX
Install a recent version of NodeJS for your platform. The NPM package is @llmindset/mcp-webcam.
To start in STDIO mode: npx @llmindset/mcp-webcam. This starts the mcp-webcam UI on port 3333. Point your browser at http://localhost:3333 to get started.
To change the port: npx @llmindset/mcp-webcam 9999. This starts mcp-webcam the UI on port 9999.
For Streaming HTTP mode: npx @llmindset/mcp-webcam --streaming. This will make the UI available at http://localhost:3333 and the MCP Server available at http://localhost:3333/mcp.
Docker
You can run mcp-webcam using Docker. By default, it starts in streaming mode:
docker run -p 3333:3333 ghcr.io/evalstate/mcp-webcam:latest
Environment Variables
MCP_TRANSPORT_MODE- Set tostdiofor STDIO mode, defaults tostreamingPORT- The port to run on (default:3333)BIND_HOST- Network interface to bind the server to (default:localhost)MCP_HOST- Public-facing URL for user instructions and MCP client connections (default:http://localhost:3333)
Examples
# STDIO mode
docker run -p 3333:3333 -e MCP_TRANSPORT_MODE=stdio ghcr.io/evalstate/mcp-webcam:latest
# Custom port
docker run -p 8080:8080 -e PORT=8080 ghcr.io/evalstate/mcp-webcam:latest
安装
npx -y @llmindset/mcp-webcam