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 serves them; your AI app starts it |
| You need | A Mac with Darkgrade Studio | Node.js 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 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 <folder> changes it. |
| Several cameras | Add --camera VID:PID to choose one. Serve your camera to an AI app has both flags. |
Add Darkgrade
Claude Code
Run this in a terminal. Studio shows the same command under Add to Claude Code.
claude mcp add --transport http darkgrade-studio \
http://127.0.0.1:7461/mcpThat adds it for the folder you ran it in. Add --scope user to have it in every project:
claude mcp add --scope user --transport http \
darkgrade-studio http://127.0.0.1:7461/mcpWithout Studio, add the one-command server instead:
claude mcp add darkgrade -- npx -y darkgrade mcpCheck 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 is a small relay that fills the gap: Claude starts it, and it passes every call on to Studio. It needs Node.js 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:~/Library/Application Support/Claude/ claude_desktop_config.json - 2
Add Darkgrade
If the file is empty, paste this. If it already has
mcpServers, add thedarkgrade-studioentry inside it.{ "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.
{ "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(ordarkgrade) is listed under Connectors in the menu beside the message box.
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 CursorThe 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:
{
"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{
"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 Add to VS Code, without StudioEach 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:
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:
{
"servers": {
"darkgrade-studio": {
"type": "http",
"url": "http://127.0.0.1:7461/mcp"
}
}
}Without Studio, use this entry in the same file:
{
"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:
{
"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. 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 and camera_get_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.
What your app receives
When your app connects, Studio sends it three things:
- Tools. Every camera tool in the tool reference except
camera_run_benchmarkand the four that manage the connection, which Studio does itself. On top of those, Studio's own tools. - Instructions. A brief that tells the model to read
camera_get_capabilitiesfirst, then Studio's shooting guidance: how to read the scopes, what a 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 withget_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.
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 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 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 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.