camera-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@camera-mcpTake a photo with my webcam"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
camera-mcp
通过 ffmpeg / DirectShow,把本机摄像头能力暴露给 Claude 的 MCP server。
让 Claude 可以直接:列出摄像头 → 拍照 → 录像 → 停止录像,全程本地处理,文件落到磁盘。
功能
工具 | 说明 |
| 列出本机所有 DirectShow 视频设备 |
| 用指定摄像头拍一张 JPEG |
| 后台开始录像(libx264 / mp4),返回 |
| 优雅停止录像(写 q → ffmpeg 自动收尾,写入 moov 索引) |
| 列出当前所有进行中的录像 |
Related MCP server: Webcam MCP
环境要求
Windows(用了 DirectShow,Linux/macOS 需要换
avfoundation/v4l2)Node.js ≥ 18
ffmpeg(在 PATH 里,或自行改成绝对路径)
# Windows 用 winget 装 ffmpeg
winget install ffmpeg安装 & 构建
cd camera
npm install
npm run build构建产物在 dist/index.js,可执行项 camera-mcp。
配置到 Claude Code
在 ~/.claude/mcp.json(或项目级 .mcp.json)里加:
{
"mcpServers": {
"camera": {
"command": "node",
"args": ["C:/Users/hj158/mcp-servers/camera/dist/index.js"]
}
}
}启动后用 claude mcp list 应该能看到 camera: ... √ Connected。
使用示例
帮我拍一张照片
Claude 会调:
take_photo(device="HD Webcam", path="./photos/test.jpg", quality=2)用 ToDesk Camera 录一段 30 秒视频
start_recording(device="ToDesk Camera", path="./videos/demo.mp4")
# → recording_id: rec_xxxxxxxx_1
# ... 30 秒后 ...
stop_recording(recording_id="rec_xxxxxxxx_1")工具参数
take_photo
参数 | 类型 | 必填 | 说明 |
| string | ✅ | 设备名(必须来自 |
| string | 保存路径,默认 | |
| number | JPEG 质量 1-31,数字越小质量越高,默认 2 |
start_recording
参数 | 类型 | 必填 | 说明 |
| string | ✅ | 设备名 |
| string | 默认 | |
| string | 默认 | |
| number | 1-60,默认 30 |
stop_recording
参数 | 类型 | 必填 | 说明 |
| string | ✅ |
|
工作原理
设备枚举:调
ffmpeg -list_devices true -f dshow -i dummy,正则匹配"..." (video)行拍照:spawn ffmpeg,
-frames:v 1 -q:v <quality>截单帧录像:spawn ffmpeg 保持长连接,用
Map<recording_id, ChildProcess>跟踪;停止时往 stdin 写q,让 ffmpeg 走正常退出流程(否则 mp4 moov 索引缺失,很多播放器打不开)
已知限制
Windows-only(DirectShow);跨平台需要按平台分支选择 input format
多进程隔离:每次拍照/录像都新 spawn 一个 ffmpeg,启动开销约 300-500ms
录像启动 500ms 后才检查 exit code,极端情况下启动失败可能要等一下才能发现
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceA Model Context Protocol server that enables AI assistants to access and control webcams through OpenCV, allowing for image capture and camera setting manipulation.17
- Alicense-qualityCmaintenanceAn MCP server that provides LLM agents with direct access to webcam hardware for capturing high-resolution photos and recording video sequences. It enables autonomous agents to monitor environments and interact with the physical world through standard Model Context Protocol tools.3MIT
- Alicense-qualityDmaintenanceAn MCP server that enables interaction with local camera devices to capture and process images. It allows LLMs to access video devices with configurable settings such as resolution, orientation, and image format.1MIT
- AlicenseAqualityDmaintenanceAn MCP (Model Context Protocol) server for controlling OBS Studio via the built-in obs-websocket plugin. Lets Claude control your scenes, recording, streaming, audio, and more.26111MIT
Related MCP Connectors
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NingZiXi/camera-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server