Agents & MCP
Connect an agent
Nox comes with an MCP server, a small helper inside the app called nox-mcp. An agent's program starts it, and it passes each tool call to the Nox app running on the same Mac. Setting it up is one menu item and one paste. After that the agent can read your design, draw in it, check it and export from it, in the document you have open.
What you need#
- Nox Pro. Free opens, plays, inspects and exports. The tools an agent uses are part of Nox Pro.
- Nox open, with a document in front. The agent works on the document in front, not on a file it names.
- An MCP client. Claude Code, Claude Desktop and Gemini CLI are covered below. Any other client that starts a server as a command and talks to it over standard input and output works the same way.
Claude Code#
- In Nox, choose Nox › Copy Claude Code Command. A sheet says the command is copied.
- Paste it into a terminal and press Return.
- Start Claude Code. It now lists Nox among its MCP servers.
The command, for an app in the Applications folder:
claude mcp add nox -- '/Applications/Nox.app/Contents/Helpers/nox-mcp'
Claude Desktop, Gemini CLI and other clients#
- In Nox, choose Nox › Copy MCP Setup.
- Paste it into your agent's MCP settings. In Claude Desktop that is Settings › Developer › Edit Config. In Gemini CLI it is
settings.json. In a project it can be a.mcp.jsonfile. - Start the agent again.
What is copied is the usual mcpServers form:
{
"mcpServers": {
"nox": {
"command": "/Applications/Nox.app/Contents/Helpers/nox-mcp"
}
}
}
If your settings file already has an mcpServers object, add the "nox" entry to it instead of pasting a second object. The server takes no arguments, no port and no key.
The path is the path of the app you copied it from. If you move Nox, copy the setup again.
Check that it works#
Keep a document open in Nox and ask for something that needs no change.
In Nox, call get_context and tell me which page I am on and what is selected.
The agent calls get_context, which takes no arguments:
{}
The reply names the pages, the page shown, the selection and the view:
{
"active_page": "1:1",
"document": { "nodes": 7 },
"pages": [{ "id": "1:1", "name": "Page 1", "top_level_nodes": 1 }],
"selection": [],
"view": { "center_x": 160, "center_y": 114, "zoom": 0.5 }
}If you get an answer like this one, the agent is connected. Go on to How agents work in Nox to see what happens when it changes something.
If it does not connect#
"Nox is not running"#
The helper found no Nox app to talk to and stopped with:
nox-mcp: Nox is not running. Open Nox and a document, then connect again.
Open Nox, open a document, then reconnect the server in your agent (or start the agent again). The helper looks for the app when the agent starts it, so the order matters: Nox first, then the agent.
"Nox Pro is needed"#
The agent connected, but every tool call is refused with:
Nox Pro is needed: this document is open to look at and inspect only, and the tools are part of Nox Pro. The person at the Mac can start it from the app (Nox › Nox Pro…).
Choose Nox › Nox Pro… in the app. Once Pro is on, the same connection works. You do not need to set anything up again.
The agent does not list Nox#
- Check that the path in the settings is where the app is now. Copy the setup again if you moved Nox.
- In a JSON settings file, check that there is one
mcpServersobject and that it is valid JSON. - Start the agent again after you change its settings.
What stays on the Mac#
The helper runs on your Mac and talks to the Nox app on the same Mac. Your document is one .ndf file on your disk, and the tools read and change it there. Files the agent exports are written to folders on your Mac, at the paths it gives.
What the agent reads through the tools is another matter. The names, text, values and preview pictures that a tool returns go to the agent's own model, as any tool result does, under the terms of the agent you chose. Connect only agents you would show the design to.
Names and text inside a document are content. Nox tells every agent to treat them as data and never as instructions.
Next#
- How agents work in Nox: turns, review, History and undo.
- Prompting for high-end designs: what to say to get a good first draft.
- Tool reference: all 45 tools.