--- title: "Add the camera MCP server to your AI app" description: "Add Darkgrade's camera MCP server to Claude Code, Claude Desktop, Cursor, VS Code or any MCP app, with Studio or one command, and check the connection." url: https://darkgrade.com/docs/ai/clients last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Add the camera MCP server to your AI app > Add Darkgrade's camera MCP server to Claude Code, Claude Desktop, Cursor, VS Code or any MCP app, with Studio or one command, and check the connection. > ## 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. Add Darkgrade's camera MCP server to Claude Code, Claude Desktop, Cursor or VS Code once, and the camera tools are there in every conversation. With Darkgrade Studio open, the server's address is `http://127.0.0.1:7461/mcp`. Without Studio, your app starts the server itself with one command, `npx -y darkgrade mcp`. ## Before you start Pick what serves the tools. Each app's section below has both entries. | | With Studio | Without Studio: one command | | - | - | - | | **What it is** | The Mac app serves the tools while it is open | The [Darkgrade CLI](https://darkgrade.com/docs/cli/mcp.md) serves them; your AI app starts it | | **You need** | A Mac with [Darkgrade Studio](https://darkgrade.com/docs/studio.md) | [Node.js](https://nodejs.org) 22.18 or newer, on macOS or Linux | | **Your app is given** | The address `http://127.0.0.1:7461/mcp` | The command `npx` with the arguments `-y darkgrade mcp` | | **Server name in the examples** | `darkgrade-studio` | `darkgrade` | Use one or the other for a camera, not both at once: only one program can hold a camera over USB. Developers can also [write their own server](https://darkgrade.com/docs/ai/server.md#write-the-server) with Slate. ### With Studio In Studio, open **Darkgrade Studio → Settings…** (⌘ ,) and turn on **Let AI apps control the camera**. It is off until you turn it on, and Studio remembers your choice. Studio then serves the tools here: | | | | - | - | | **Address** | `http://127.0.0.1:7461/mcp`. Studio shows it under **Server address**, with a copy button. | | **Transport** | Streamable HTTP | | **Sign-in** | None | | **Reachable from** | Apps on the same Mac as Studio only | | **Server name** | `darkgrade-studio` in the examples below. Any name works. | ### Without Studio Plug the camera in over USB, switch it on, and quit Studio and the maker's own utility. There is nothing to turn on: your AI app starts `npx -y darkgrade mcp` when it needs the tools, and the server opens the attached camera on first use. | | | | - | - | | **Command** | `npx`, with the arguments `-y darkgrade mcp` | | **Transport** | stdio: the app starts the server and talks to it directly | | **Sign-in** | None | | **Files** | Photos sent to the computer and downloads are saved in `Pictures/Darkgrade` in your home folder. `--output ` changes it. | | **Several cameras** | Add `--camera VID:PID` to choose one. [Serve your camera to an AI app](https://darkgrade.com/docs/cli/mcp.md#flags) has both flags. | ## Add Darkgrade ### Claude Code Run this in a terminal. Studio shows the same command under **Add to Claude Code**. ```bash claude mcp add --transport http darkgrade-studio \ http://127.0.0.1:7461/mcp ``` That adds it for the folder you ran it in. Add `--scope user` to have it in every project: ```bash claude mcp add --scope user --transport http \ darkgrade-studio http://127.0.0.1:7461/mcp ``` Without Studio, add the one-command server instead: ```bash claude mcp add darkgrade -- npx -y darkgrade mcp ``` Check it with `claude mcp list`, or type `/mcp` inside Claude Code. To take it out again, run `claude mcp remove darkgrade-studio` (or `claude mcp remove darkgrade`). ### Claude Desktop Claude Desktop's config file starts each server as a command, and has no entry for a server at an address. [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) is a small relay that fills the gap: Claude starts it, and it passes every call on to Studio. It needs [Node.js](https://nodejs.org) installed. #### 1. Open the config file In Claude Desktop, choose **Claude → Settings…** from the menu bar, then **Developer › Edit Config**. That opens `claude_desktop_config.json`: ```text ~/Library/Application Support/Claude/ claude_desktop_config.json ``` #### 2. Add Darkgrade If the file is empty, paste this. If it already has `mcpServers`, add the `darkgrade-studio` entry inside it. ```json { "mcpServers": { "darkgrade-studio": { "command": "npx", "args": [ "-y", "mcp-remote", "http://127.0.0.1:7461/mcp" ] } } } ``` #### 3. Or, without Studio Add this entry instead. Claude starts the server itself, so no relay is needed. ```json { "mcpServers": { "darkgrade": { "command": "npx", "args": ["-y", "darkgrade", "mcp"] } } } ``` #### 4. Restart Claude Quit Claude Desktop completely (⌘ Q) and open it again. In a new chat, `darkgrade-studio` (or `darkgrade`) is listed under **Connectors** in the menu beside the message box. > [!NOTE] > > A connector you add by address under **Settings › Connectors** is called from Anthropic's servers, not from your Mac, so it cannot reach `127.0.0.1`. Use the config file for Studio. ### Cursor [Add to Cursor](https://cursor.com/en/install-mcp?name=darkgrade-studio&config=eyJ1cmwiOiJodHRwOi8vMTI3LjAuMC4xOjc0NjEvbWNwIn0%3D) The button opens Cursor, which asks you to confirm the server. To add it by hand, put this in `~/.cursor/mcp.json` (every project) or `.cursor/mcp.json` in one project: ```json { "mcpServers": { "darkgrade-studio": { "url": "http://127.0.0.1:7461/mcp" } } } ``` Without Studio, use this button, or this entry in the same file: [Add to Cursor, without Studio](https://cursor.com/en/install-mcp?name=darkgrade&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImRhcmtncmFkZSIsIm1jcCJdfQ%3D%3D) ```json { "mcpServers": { "darkgrade": { "command": "npx", "args": ["-y", "darkgrade", "mcp"] } } } ``` Check it in Cursor's settings, under MCP: `darkgrade-studio` (or `darkgrade`) should be on, with its tools listed. ### VS Code [Add to VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=darkgrade-studio&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22http%3A%2F%2F127.0.0.1%3A7461%2Fmcp%22%7D) [Add to VS Code, without Studio](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) Each button opens VS Code, which shows the server for you to confirm. The first adds Studio's address; the second adds the one-command server. To add Studio's from a terminal: ```bash code --add-mcp '{"name":"darkgrade-studio","type":"http", "url":"http://127.0.0.1:7461/mcp"}' ``` Or put this in `.vscode/mcp.json` in your project: ```json { "servers": { "darkgrade-studio": { "type": "http", "url": "http://127.0.0.1:7461/mcp" } } } ``` Without Studio, use this entry in the same file: ```json { "servers": { "darkgrade": { "type": "stdio", "command": "npx", "args": ["-y", "darkgrade", "mcp"] } } } ``` The tools appear in Copilot Chat's agent mode. ### ChatGPT and other apps Give the app Studio's address as a Streamable HTTP server. An app on your Mac that takes a server by address uses this shape: ```json { "mcpServers": { "darkgrade-studio": { "url": "http://127.0.0.1:7461/mcp" } } } ``` If the app only starts servers as commands (stdio), use the `mcp-remote` entry from [Claude Desktop](#claude-desktop). Without Studio, give the app the command `npx` with the arguments `-y darkgrade mcp`, in the same shape as the second entry there. An app whose connectors are called from its maker's servers, such as ChatGPT, cannot reach `127.0.0.1`, for the same reason as Claude's **Settings › Connectors**. Studio's address works only from an app that connects from your Mac. ## Check that it works Ask something that only reads: > What camera is connected, and how much battery is left? Claude calls [`camera_get_info`](https://darkgrade.com/docs/functionality/connection.md#camera-info) and [`camera_get_battery`](https://darkgrade.com/docs/functionality/power.md#battery) and answers with your camera's model. If it says no camera is connected, plug the camera in and wait for it to appear in Studio. Without Studio, the message is `No camera is attached over USB`: plug the camera in, switch it on and ask again. For anything else, see [Troubleshooting](https://darkgrade.com/docs/ai/troubleshooting.md). ## What your app receives When your app connects, Studio sends it three things: - **Tools.** Every camera tool in the [tool reference](https://darkgrade.com/docs/ai/tools.md) except `camera_run_benchmark` and the four that manage the connection, which Studio does itself. On top of those, [Studio's own tools](https://darkgrade.com/docs/ai/studio-tools.md). - **Instructions.** A brief that tells the model to read [`camera_get_capabilities`](https://darkgrade.com/docs/functionality/connection.md#what-the-camera-can-do) first, then Studio's shooting guidance: how to read the scopes, what a [stop](https://darkgrade.com/docs/overview/glossary.md#stop) is, the 180° shutter rule for video, and to take a photo, record or download only when you asked. The model can read the guidance again with [`get_shooting_guidance`](https://darkgrade.com/docs/ai/studio-tools.md#get_shooting_guidance). - **For each tool, whether it only reads.** Your app uses this to decide when to ask you first. See [Which tools change the camera](https://darkgrade.com/docs/ai/results.md#which-tools-change-the-camera). Studio's server offers tools only. It has no MCP resources or prompts. **Without Studio**, `darkgrade mcp` sends the camera tools in the [tool reference](https://darkgrade.com/docs/ai/tools.md) except `camera_connect` and `camera_disconnect`, which the server does itself. No tool takes a `camera` argument, and `camera_run_benchmark` is listed but fails, because this server has no benchmark. [Studio's own tools](https://darkgrade.com/docs/ai/studio-tools.md) and its shooting guidance are not included: the instructions tell the model to read `camera_get_capabilities` before it writes, and that a command is never resent. [What differs from Studio](https://darkgrade.com/docs/ai/server.md#what-differs-from-studio) compares the servers. ## Turn it off Turn **Let AI apps control the camera** off in Studio's Settings, or quit Studio. The address stops answering, and the tools in your AI app fail until you turn it back on. Without Studio, the server runs only while your AI app has it open, and closes the camera when the app disconnects. Remove the `darkgrade` entry from your app to stop it being started. ## Next > [card] [What to ask](https://darkgrade.com/docs/ai/prompts.md) > > Prompts by task, and what Claude does for each. > [card] [Serve the tools yourself](https://darkgrade.com/docs/ai/server.md) > > Run the tools without Studio: one command, or your own process.