{"_id":"@cynosure-mcp/webcam","_rev":"2-418797e7fe531a4e0bb762382f5c045d","name":"@cynosure-mcp/webcam","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@cynosure-mcp/webcam","version":"1.0.0","keywords":["mcp","model-context-protocol","webcam","camera","image-capture","ffmpeg"],"_id":"@cynosure-mcp/webcam@1.0.0","maintainers":[{"name":"andjhagen","email":"voidvalkon@gmail.com"}],"bin":{"webcam":"dist/index.js"},"dist":{"shasum":"ebbb3008cbe03132fb0febc42e89d80037a97298","tarball":"https://registry.npmjs.org/@cynosure-mcp/webcam/-/webcam-1.0.0.tgz","fileCount":7,"integrity":"sha512-A705cJQVhZ9hyjscEqSvLlQ4jYf7tZMOTJW6CFFEJqZbkdvBCmdVOOAOhdLJDFvgHlouMaDRHjiBf7t/c5BTyg==","signatures":[{"sig":"MEUCIDFYy/6828Ge1uWIvn4mq+ZoSzVLhWNqR2AvpEouNRK7AiEA+0faEpoQ5Bwnls2Ix3W+fS8+3NxfPPEjpcqiI4WXu8E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":269871},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"6ad478e3b1853fb1384529f98cc5fcb57e2740ed","mcpName":"io.github.andreasjhagen/webcam","scripts":{"dev":"tsx src/index.ts","build":"tsc","start":"node dist/index.js"},"_npmUser":{"name":"andjhagen","email":"voidvalkon@gmail.com"},"_npmVersion":"11.12.1","description":"MCP server for capturing still images from an attached webcam","directories":{},"_nodeVersion":"24.15.0","dependencies":{"zod":"^3.24.0","ffmpeg-static":"^5.2.0","@modelcontextprotocol/sdk":"^1.27.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/webcam_1.0.0_1780242212562_0.3255496886330933","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@cynosure-mcp/webcam","mcpName":"io.github.andreasjhagen/webcam","version":"1.0.1","description":"MCP server for capturing still images from an attached webcam","type":"module","main":"dist/index.js","bin":{"webcam":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","dev":"tsx src/index.ts"},"dependencies":{"@modelcontextprotocol/sdk":"^1.27.1","ffmpeg-static":"^5.2.0","zod":"^3.24.0"},"devDependencies":{"@types/node":"^22.0.0","tsx":"^4.19.0","typescript":"^5.7.0"},"publishConfig":{"access":"public"},"keywords":["mcp","model-context-protocol","webcam","camera","image-capture","ffmpeg"],"_id":"@cynosure-mcp/webcam@1.0.1","gitHead":"a114eae53425d9d6ffe88b883a04b2ccabac7e7d","types":"./dist/index.d.ts","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-g17fVv0R6MrZAWw5cFZKaUAUC//OYl1g1T7f2BejLiUqxNPbYeIFfTnkNOUCQjgtA84/bkhXFY5nanKmss72CQ==","shasum":"c8aeec0509e23c617fd5cd6bdc68db8603367dc8","tarball":"https://registry.npmjs.org/@cynosure-mcp/webcam/-/webcam-1.0.1.tgz","fileCount":7,"unpackedSize":270226,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFlKmTuAWiJ80gqFq8LNgIKzJPOTyTwfgI2dAASnLQWbAiEAwVYnv1/KOy7iS48LF4mC8pAt5YEWDFnEdklTFn2B24s="}]},"_npmUser":{"name":"andjhagen","email":"voidvalkon@gmail.com"},"directories":{},"maintainers":[{"name":"andjhagen","email":"voidvalkon@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/webcam_1.0.1_1786486143193_0.055448229681099415"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-31T15:43:32.404Z","modified":"2026-08-11T22:09:03.589Z","1.0.0":"2026-05-31T15:43:32.768Z","1.0.1":"2026-08-11T22:09:03.394Z"},"keywords":["mcp","model-context-protocol","webcam","camera","image-capture","ffmpeg"],"description":"MCP server for capturing still images from an attached webcam","maintainers":[{"name":"andjhagen","email":"voidvalkon@gmail.com"}],"readme":"# @cynosure-mcp/webcam\n\nMCP server for capturing still images from an attached webcam. Supports Windows, macOS, and Linux. **No system dependencies required** — ffmpeg is bundled automatically via npm.\n\n## Installation\n\n```bash\nnpx @cynosure-mcp/webcam\n```\n\nOr install globally:\n\n```bash\nnpm install -g @cynosure-mcp/webcam\nwebcam\n```\n\n## Tools\n\n| Tool                   | Description                                                               |\n| ---------------------- | ------------------------------------------------------------------------- |\n| `list_webcam_devices`  | List all available webcam / video capture devices on the system           |\n| `capture_webcam_image` | Capture a still image from a webcam; returns the image inline and on disk |\n\n## Configuration\n\n| Variable            | Required | Description                                                                                                                                                          |\n| ------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `WEBCAM_DEVICE`     | No       | Default camera device. Windows: device name (e.g. `Integrated Camera`). macOS: AVFoundation index (`0`). Linux: device path (`/dev/video0`). Auto-detected if unset. |\n| `WEBCAM_OUTPUT_DIR` | No       | Directory for saved images. Defaults to a system temp directory.                                                                                                     |\n\n## MCP Config\n\n```json\n{\n  \"mcpServers\": {\n    \"webcam\": {\n      \"command\": \"npx\",\n      \"args\": [\"@cynosure-mcp/webcam\"],\n      \"env\": {\n        \"WEBCAM_DEVICE\": \"Integrated Camera\"\n      }\n    }\n  }\n}\n```\n\n## Platform Notes\n\n### Windows\n\nUses DirectShow (`dshow`) via ffmpeg. Run `list_webcam_devices` to see the exact device name, then pass it as the `device` argument to `capture_webcam_image` or set it as `WEBCAM_DEVICE`.\n\n### macOS\n\nUses AVFoundation via ffmpeg. Device indices are numeric (e.g. `\"0\"` for the first camera). Run `list_webcam_devices` to see available devices.\n\n### Linux\n\nUses Video4Linux2 (`v4l2`) via ffmpeg. Devices appear as `/dev/video0`, `/dev/video1`, etc. Run `list_webcam_devices` to enumerate them.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}