Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"cameramcpserver": {
"args": [
"-y",
"modelcontextprotocol"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
本项目是基于 Node.js/TypeScript 的多协议摄像头控制服务,严格遵循 Model Context Protocol (MCP) TypeScript SDK,支持: - MCP 工具接口(listCameras、takePhoto、startVideo、stopVideo) - 支持 Windows(dshow)和 Linux(v4l2) - 录像推流支持 streamUrl,客户端可用 httpx/curl/ffmpeg/ffplay 拉流
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'modelcontextprotocol' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked modelcontextprotocol against OSV.dev.
Click any tool to inspect its schema.
video_stream视频流推流访问地址
http://localhost:3001/video/stream?videoID={videoID}
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in other
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 60-95% fewer tokens, same answers. Library, proxy, MCP server.
Pi Coding Agent extension (CLI-first) — routes bash/read/grep/find/ls through lean-ctx CLI for strong token savings. Optional MCP bridge can register advanced tools.
AI travel agent — 1 smart MCP tool plus 62 compatibility aliases for flights, hotels, ground transport, price alerts. No API keys required.
Research graph MCP for hypotheses, goals, runs, source quality, audits, and generated maps.
MCP Security Weekly
Get CVE alerts and security updates for CameraMCPServer and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
本项目是基于 Node.js/TypeScript 的多协议摄像头控制服务,严格遵循 Model Context Protocol (MCP) TypeScript SDK,支持:
npm install
# 配置 .env 文件(见下文)
npm run build
npm start # 或 npm run start:http
在您的本地执行时,请将.env.sample复制为.env,然后配置为您需求的参数.
# HTTP 服务端口
PORT=3001
# MCP 服务名/版本
MCP_SERVER_NAME=mcp-camera-server
MCP_SERVER_VERSION=1.0.0
# 日志等级与文件
LOG_LEVEL=info
LOG_FILEPATH=./camera.log
# 拍照/录像文件前缀与目录
PHOTO_PREFIX=image
VIDEO_PREFIX=video
PHOTO_DIR=photos
VIDEO_DIR=videos
# 录像上下文自动清理时间(秒)
FINISHED_VIDEO_CLEAN_SPAN_SECOND=1800
# 推流URL超时时间(毫秒)
STREAM_URL_EXPIRE_MS=300000
功能说明: 列出所有可用的摄像头设备
输入参数: 无
输出参数:
功能说明: 从指定摄像头拍摄照片并保存
输入参数:
输出参数:
功能说明: 启动视频录制或实时推流
输入参数:
输出参数(文件模式):
输出参数(推流模式):
功能说明: 停止正在进行的录像或推流
输入参数:
输出参数:
下载本仓库后,进入仓库根目录cd myCameraNodejs
使用npm link . 链接为全局命令
请通过npx modelcontextprotocol/inspector启动modelcontextprotocol/inspector进行测试:

在界面中:
Transport Type: 选择STDIOCommand: 选择npxArguments: 输入mcp-camera-server点击Connect按钮,即可连接到摄像头服务。
如果通过npx run start:sse启动服务,URL填入http://127.0.0.1:3001/sse(注意3001由.env中PORT指定)
curl http://localhost:3001/video/stream?videoID=xxxx-xxxx-xxxx -o output.ts
ffplay http://localhost:3001/video/stream?videoID=xxxx-xxxx-xxxx
ffmpeg -i "http://localhost:3001/video/stream?videoID=xxxx-xxxx-xxxx" -c:v libx264 -preset veryfast -crf 23 -f mp4 output.mp4
ffmpeg -i "http://localhost:3001/video/stream?videoID=xxxx-xxxx-xxxx" -c copy output.ts
如有更多问题或需求,欢迎 issue 或联系Jackgao19700@qq.com or gaoshengqiang19700@gmail.com
it is certified by MCPHub. You can get it from https://mcphub.com/mcp-servers/jackgao19700/cameramcpserver.