--- title: "MCP quickstart" description: "Darkgrade MCP lets Claude, Cursor or any MCP app control a Sony, Canon or Nikon camera, through Studio or one command: set exposure, focus and shoot by asking." url: https://darkgrade.com/docs/ai last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # MCP quickstart > Darkgrade MCP lets Claude, Cursor or any MCP app control a Sony, Canon or Nikon camera, through Studio or one command: set exposure, focus and shoot by asking. > ## 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 is a Model Context Protocol server that gives Claude, Cursor or any MCP app a [tool](https://darkgrade.com/docs/overview/glossary.md#tool) for every camera operation on a Sony, Canon or Nikon camera: set the ISO, focus on a point, take a photo, start recording, list the card. You describe the shot and Claude runs the camera. It is for interchangeable-lens and compact cameras from Sony, Canon and Nikon (mirrorless, DSLR, cinema), not webcams or security cameras. [MCP](https://darkgrade.com/docs/overview/glossary.md#mcp) (the Model Context Protocol) is the standard way AI apps call tools, so Claude Code, Claude Desktop, Cursor, VS Code and any other MCP app can connect. There are three ways to serve the tools: | Way | Choose it when | You need | | - | - | - | | [**Studio**](#with-studio) | You are on a Mac and want no code, with the live picture and every change on screen | [Darkgrade Studio](https://darkgrade.com/docs/studio.md) | | [**One command**](#without-studio-one-command): `npx darkgrade mcp` | You have no Studio, or you are not on a Mac | [Node.js](https://nodejs.org) 22.18 or newer | | [**Your own server**](https://darkgrade.com/docs/ai/server.md#write-the-server) | You want several cameras, HTTP or your own rules | [Slate](https://darkgrade.com/docs/slate/getting_started/quickstart.md), the TypeScript library | **You need** a Sony, Canon or Nikon camera on a USB cable (Darkgrade works with [97 Sony, Canon and Nikon cameras](https://darkgrade.com/docs/slate/getting_started/camera-compatibility.md)) and an AI app on the same computer. For the first way you also need a Mac with [Darkgrade Studio](https://darkgrade.com/docs/studio.md) (in alpha: ask for a build on [Discord](https://discord.gg/fbDbdJv9dX)). Have Claude set itself up. Paste this prompt into Claude, ChatGPT or your coding agent: > Set up Darkgrade's camera tools so you can run my camera over MCP. Read https://darkgrade.com/docs/ai.md and https://darkgrade.com/docs/ai/clients.md first. Ask me which AI app I use and whether I have Darkgrade Studio, then give me the exact steps for that app, one at a time. If I have no Studio or am not on a Mac, use the one-command server (npx -y darkgrade mcp) that https://darkgrade.com/docs/cli/mcp.md describes. When it is connected, check it by asking the camera what it can do. ## With Studio #### 1. Open Studio with your camera Open Studio (in alpha: ask for a build on [Discord](https://discord.gg/fbDbdJv9dX)), plug in your camera and switch it on (steps 1 and 2 of the [Studio quickstart](https://darkgrade.com/docs/studio.md)). Studio connects to it by itself and shows its live picture. #### 2. Turn on the camera tools In Studio, open **Darkgrade Studio → Settings…** (⌘ ,) and turn on **Let AI apps control the camera** under **Integrations**. Studio shows **Running** and the **Server address**: ```text http://127.0.0.1:7461/mcp ``` #### 3. Add Darkgrade to your AI app For Claude Code, run this once in a terminal. Studio shows the same command under **Add to Claude Code**, ready to copy. ```bash claude mcp add --transport http darkgrade-studio \ http://127.0.0.1:7461/mcp ``` Using Claude Desktop, Cursor or VS Code? [Connect your AI app](https://darkgrade.com/docs/ai/clients.md#claude-desktop) has the steps for each. #### 4. Ask Start with a question, so you can see it working before anything changes: > What camera is connected, and what are its settings right now? Then direct: > Set ISO to 800 and take a photo. Claude calls [`camera_set_iso`](https://darkgrade.com/docs/functionality/exposure.md#iso), then [`camera_take_photo`](https://darkgrade.com/docs/functionality/photos.md#take-a-photo), and tells you the ISO the camera [read back](https://darkgrade.com/docs/overview/glossary.md#read-back) and the new photo's file name. Every change shows in Studio as it happens. ## Without Studio: one command No Studio, or not on a Mac? The [Darkgrade CLI](https://darkgrade.com/docs/cli.md) serves the same camera tools itself. `npx darkgrade mcp` runs an MCP server that holds the attached camera, with no Studio and no code. It needs [Node.js](https://nodejs.org) 22.18 or newer and runs on macOS and Linux. #### 1. Plug in your camera Connect the camera over USB and switch it on. A Sony needs its USB mode set to [**PC Remote**](https://darkgrade.com/docs/cameras/sony.md#where-the-setting-is-by-model); [Set up the camera](https://darkgrade.com/docs/slate/getting_started/camera-compatibility.md#set-up-the-camera) has every brand. Quit Studio and the maker's own utility first: only one program can hold a camera. #### 2. Add Darkgrade to your AI app For Claude Code, run this once in a terminal: ```bash claude mcp add darkgrade -- npx -y darkgrade mcp ``` In any other app that starts MCP servers as a command, the command is `npx` and its arguments are `-y darkgrade mcp`. [Connect your AI app](https://darkgrade.com/docs/ai/clients.md#claude-desktop) has the entry for Claude Desktop, Cursor and VS Code. #### 3. Ask > What camera is connected, and what are its settings right now? The server opens the camera the first time a tool needs it, and closes it when your app disconnects. A photo taken to the computer, or a file downloaded from the card, is saved in `Pictures/Darkgrade` in your home folder. This server has the camera's own tools and not [Studio's own tools](https://darkgrade.com/docs/ai/studio-tools.md), such as `get_frame`, `analyze_frame` and undo. [Serve your camera to an AI app](https://darkgrade.com/docs/cli/mcp.md) has its flags, for choosing one of several cameras and the folder files are saved in. > [!TIP] > > Building your own app or rig? Developers can [serve the camera tools from their own process](https://darkgrade.com/docs/ai/server.md#write-the-server) with Slate. ## What Claude can do | Ask | Tools Claude uses | | - | - | | “What can this camera do right now?” | [`camera_get_capabilities`](https://darkgrade.com/docs/functionality/connection.md#what-the-camera-can-do) | | “Manual, 1/250, f/2.8, ISO 400.” | [`camera_set_exposure_mode`](https://darkgrade.com/docs/functionality/exposure.md#exposure-mode), [`camera_set_shutter_speed`](https://darkgrade.com/docs/functionality/exposure.md#shutter-speed), [`camera_set_aperture`](https://darkgrade.com/docs/functionality/exposure.md#aperture), [`camera_set_iso`](https://darkgrade.com/docs/functionality/exposure.md#iso) | | “Daylight white balance and the Neutral look.” | [`camera_set_white_balance`](https://darkgrade.com/docs/functionality/color.md#white-balance), [`camera_set_picture_style`](https://darkgrade.com/docs/functionality/color.md#look) | | “Focus on the face on the left.” | [`get_frame`](https://darkgrade.com/docs/ai/studio-tools.md#get_frame), [`camera_set_focus_point`](https://darkgrade.com/docs/functionality/focus.md#focus-on-a-point) | | “Take a photo.” | [`camera_take_photo`](https://darkgrade.com/docs/functionality/photos.md#take-a-photo) | | “Start recording.” “Cut.” | [`camera_start_recording`](https://darkgrade.com/docs/functionality/video.md#start-recording), [`camera_stop_recording`](https://darkgrade.com/docs/functionality/video.md#stop-recording) | | “Show me the last three shots.” | [`camera_list_media`](https://darkgrade.com/docs/functionality/media.md#list-photos-and-clips), [`camera_get_media_preview`](https://darkgrade.com/docs/functionality/media.md#preview-a-file) | | “Is this overexposed?” | [`analyze_frame`](https://darkgrade.com/docs/ai/studio-tools.md#analyze_frame) | The tools named `camera_…` are served all three ways. `get_frame` and `analyze_frame` are [Studio's own tools](https://darkgrade.com/docs/ai/studio-tools.md): without Studio, Claude reads the live picture with [`camera_get_live_view_frame`](https://darkgrade.com/docs/functionality/live-view.md#read-a-live-view-frame). Tools adapt to the camera that is plugged in: Claude reads what it offers first, and sets only values the camera lists. [What to ask](https://darkgrade.com/docs/ai/prompts.md) has prompts for each part of a shoot, and the [tool reference](https://darkgrade.com/docs/ai/tools.md) lists every tool. ## How it differs from other camera MCP servers Most MCP servers with “camera” in the name run a different kind of camera. Their own READMEs say which: | Kind | What it runs | Examples, in their words | | - | - | - | | Webcam servers | The webcam or video source your computer already sees, through OpenCV or a browser page | [mcp-webcam](https://github.com/evalstate/mcp-webcam) “provides access to your WebCam”. [Video Still Capture MCP](https://github.com/13rac1/videocapture-mcp) is “for accessing and controlling webcams via OpenCV”. | | IP-camera servers | Network and security cameras, over ONVIF and RTSP | [ipcam-mcp](https://github.com/aidev-iprokszin/ipcam-mcp) lets an MCP client “see through and control the IP cameras on your local network (ONVIF + RTSP)”. | | One maker or a few bodies | A photo camera through libgphoto2 or Canon's CCAPI | [Canon MCP](https://github.com/linkacam/canon-client) helps you “control Canon cameras that support CCAPI”. [Camera Autopilot](https://github.com/zohartito/camera-autopilot) runs “a Sony mirrorless camera tethered to a Mac by USB” through gphoto2, tested on “two bodies only”. | Darkgrade MCP runs the cameras photographers and filmmakers shoot with: [97 Sony, Canon and Nikon cameras](https://darkgrade.com/docs/slate/getting_started/camera-compatibility.md) over USB, with one tool for each camera operation, named and shaped the same on every brand. Each tool lists its inputs, and takes only the values the connected camera offers right now. To have Claude look through a webcam or a security camera, use a server of the first two kinds. ## Next > [card] [What to ask](https://darkgrade.com/docs/ai/prompts.md) > > Prompts for setting a look, focusing, shooting, recording and reviewing the card. > [card] [Connect your AI app](https://darkgrade.com/docs/ai/clients.md) > > Exact setup for Claude Code, Claude Desktop, Cursor and VS Code, with Studio or with one command. > [card] [Results and safety](https://darkgrade.com/docs/ai/results.md) > > What comes back from a tool, and which tools change the camera. > [card] [Troubleshooting](https://darkgrade.com/docs/ai/troubleshooting.md) > > The app can't connect, a tool fails, or a value is refused.