--- title: "Serve your camera to an AI app" description: "Run npx darkgrade mcp to give Claude, Cursor or any MCP app tools for your camera from the terminal, with no Studio and no code." url: https://darkgrade.com/docs/cli/mcp last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Serve your camera to an AI app > Run npx darkgrade mcp to give Claude, Cursor or any MCP app tools for your camera from the terminal, with no Studio and no code. > ## Documentation Index > Fetch the complete documentation index at: https://darkgrade.com/docs/llms.txt > Use this file to discover all available pages before exploring further. `darkgrade mcp` runs a camera MCP server from one command: it gives Claude, Cursor or any MCP app the camera tools for a Sony, Canon or Nikon over USB, with no Studio and no code. The [MCP](https://darkgrade.com/docs/overview/glossary.md#mcp) server holds the attached camera itself, and it works anywhere the CLI does. ```bash claude mcp add darkgrade -- npx -y darkgrade mcp ``` That line adds it to Claude Code. Then ask: *“What camera is connected?”* ## Add it to your app Any app that starts MCP servers as a command can use it. The command is `npx`, with the arguments `-y darkgrade mcp`. ```bash Claude Code claude mcp add darkgrade -- npx -y darkgrade mcp ``` ```json Claude Desktop { "mcpServers": { "darkgrade": { "command": "npx", "args": ["-y", "darkgrade", "mcp"] } } } ``` ```json Cursor { "mcpServers": { "darkgrade": { "command": "npx", "args": ["-y", "darkgrade", "mcp"] } } } ``` [Connect your AI app](https://darkgrade.com/docs/ai/clients.md) says where each app keeps this file. Cursor and VS Code can also add it from a link, and ask you to confirm the server first: [Add to Cursor](https://cursor.com/en/install-mcp?name=darkgrade&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImRhcmtncmFkZSIsIm1jcCJdfQ%3D%3D) [Add to VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=darkgrade&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22darkgrade%22%2C%22mcp%22%5D%7D) ## What it does - **Holds one camera.** It opens the attached camera the first time a tool needs it and closes it when the app disconnects. The tools take no `camera` argument, and there is no `camera_connect` or `camera_disconnect`: the server does both. - **Serves the camera tools.** Every tool in the [tool reference](https://darkgrade.com/docs/ai/tools.md) except `camera_connect` and `camera_disconnect`. Studio's [own tools](https://darkgrade.com/docs/ai/studio-tools.md) (brighter or darker, undo) are not included. [What differs from Studio](https://darkgrade.com/docs/ai/server.md#what-differs-from-studio) compares the three servers. - **Saves files.** A photo taken to the computer, or a file downloaded from the card, is saved in `Pictures/Darkgrade` in your home folder, and the reply names the path. Nothing is overwritten: a second `photo.jpg` becomes `photo-1.jpg`. - **Stops the Mac's camera service.** On a Mac it stops the system service that otherwise claims the camera, for as long as the camera is open. ## Flags | Flag | Does | | - | - | | `--camera VID:PID` | Use this USB device when several cameras are attached. `npx darkgrade cameras` lists them. | | `--output ` | Save photos and downloads here. | ```bash npx darkgrade mcp --camera 054c:0e78 --output ~/shoot ``` With several cameras attached and no `--camera`, the first tool call fails and names them. ## One camera, one program The server holds the camera while the app is connected, so quit Studio first, and don't run other `darkgrade camera` commands at the same time. To let Claude work alongside Studio, use [Studio's own server](https://darkgrade.com/docs/ai.md) instead. To serve several cameras, or over HTTP, [write the server yourself](https://darkgrade.com/docs/ai/server.md#write-the-server).