Fetch the complete documentation index at https://www.nativecluster.com/llms.txt

# How do I use NativeCluster from an MCP client?

> Since 0.4.24, `nativecluster mcp` is the nativecluster command as an MCP server. An app that takes MCP servers, such as Claude Desktop or Cursor, starts it on your own Mac and talks to it over stdio, with no network port. Its 21 tools are the command's own commands, run as you, with the same refusals. Before NativeCluster is on a Mac, NativeCluster's public MCP server, `https://www.nativecluster.com/mcp`, answers from this site.

## What it is

- **The command, as an MCP server.** Each tool call runs one of the `nativecluster` commands, with `--json` and with nobody at a terminal, as for an agent. It does what the command lets the person signed in on this Mac do, and refuses what the command refuses, with the same code, words, `next` word and exit code. See [The nativecluster command](https://www.nativecluster.com/docs/cli.md).
- **On your own Mac, over stdio.** The MCP app starts `nativecluster mcp` itself and speaks the Model Context Protocol on its stdin and stdout (JSON-RPC 2.0, one message a line). It runs as the person who started the app.
- **No network port.** It opens no listener and no port, and sends only what its commands send. It opens no browser either.
- **Your Mac runs NativeCluster.** It needs NativeCluster on this Mac (macOS on Apple silicon), as the command does. The model calls it makes run on your cluster's computers, in the same line as everyone's.

## Add it to your MCP app

Put NativeCluster in the app's list of MCP servers, under `"mcpServers"` and a name such as `"nativecluster"`. In Claude Desktop that list is in **Settings › Developer › Edit Config**; in Cursor, `mcp.json`.

```json
{
  "mcpServers": {
    "nativecluster": {
      "command": "/Applications/NativeCluster.app/Contents/Resources/nativecluster",
      "args": ["mcp"]
    }
  }
}
```

If NativeCluster is in your own Applications folder, the path begins with your home folder instead (`/Users/<you>/Applications/…`). `which nativecluster` in a terminal names the command.

**Sign in once first.** The MCP server opens no browser, so on a Mac a person set up, sign in in a terminal (or in NativeCluster's window) before the app uses it:

```sh
nativecluster login
```

Until then its `login` tool answers `person_signs_in` (`next: login`). On a Mac an AI agent set up, its `login` tool signs the agent in again with no browser, as `nativecluster login` does there. On a Mac nobody has set up, it answers `next: setup`, and the `setup` tool starts it ([below](https://www.nativecluster.com/docs/mcp.md#the-21-tools)).

## The 21 tools

Each tool is the command named beside it. Every input is a string unless the table says otherwise; inputs in bold are required.

### Looking (they change nothing)

| Tool | Runs | Inputs |
|---|---|---|
| `status` | `status` | none |
| `doctor` | `doctor` | none |
| `models_list` | `models list` | none |
| `models_places` | `models places <model>` | **`model`** |
| `apps_list` | `apps list` | none |
| `apps_store` | `apps store` | none |
| `members_list` | `members list` | none |
| `keys_list` | `keys list` (never a key's secret) | none |
| `cluster_devices` | `cluster devices` | none |
| `usage_now` | `usage now` (owners and administrators) | none |
| `usage_calls` | `usage calls` (owners and administrators; never a call's words) | `since`, `limit` (integer), `app`, `person` |

### Asking a model

| Tool | Runs | Inputs |
|---|---|---|
| `run` | `run <model> <prompt>`: one question, one answer | **`model`**, `prompt`; a picture as `image_data` (base64) with `image_mime_type` (`image/png`, `image/jpeg`, `image/gif` or `image/webp`), or as `image_path` (an absolute path to a file you own); `no_get` (boolean) |

A model your cluster lacks is downloaded into this Mac's own models folder only when it fits this Mac, as for any agent, and never with `no_get`. A picture to a model that doesn't read pictures is refused (`model_cannot_see`), in words naming a model of your cluster that does.

### Starting a Mac for an agent

| Tool | Runs | Inputs |
|---|---|---|
| `setup` | `setup`, on a Mac nobody has set up | **`accept_terms`** (boolean: `true` accepts NativeCluster's Terms of Service and Privacy Policy), `name`, `email` |
| `login` | `login`, with no browser (above) | none |
| `claim` | `claim`: the link for the person the agent names to claim the cluster | `email` |

See [An agent starts it](https://www.nativecluster.com/docs/cli.md#an-agent-starts-it-since-0-4-21) for what these do.

### Getting and giving

| Tool | Runs | Inputs |
|---|---|---|
| `models_get` | `models get <model>`: downloads a model | **`model`**, `computer`, `folder` |
| `apps_get` | `apps get <app>`: downloads and installs an app | **`app`**, `mine`, `wait` (booleans), `folder` |
| `apps_update` | `apps update <app>`, or `--all` | `app`, or `all` (boolean) |
| `apps_ask` | `apps ask <app>`: asks your administrators for it | **`app`** |
| `keys_create` | `keys create <name>`: makes an API key | **`name`**, `days` (integer), `for` |
| `members_invite` | `members invite <email>...`: invites people to your group | **`emails`** (a list), `role` (`user`, `developer` or `admin`), `group` |

`keys_create` answers with the path of the file that holds the key, readable only by you, never the key itself.

## What an agent can't do alone through it

- **No tool deletes or revokes anything**, ends a sign-in, or closes a running app. `apps_update` on a running app installs nothing and answers `app_running`: the person closes it, or updates it on Apps.
- **It asks nothing and confirms nothing for a person.** A step that needs a person answers as the command does for an agent, with its `next` word: `confirm_on_screen` for a step the person confirms on the Mac's own screen, `claim` on a cluster an agent started that nobody has claimed yet, `open_app` for what is done in NativeCluster's window, `ask_admin` for what an owner or administrator does. See [The steps that need a person](https://www.nativecluster.com/docs/cli.md#the-steps-that-need-a-person).
- **It accepts no Terms nobody gave.** `setup` starts a Mac only with `accept_terms` set to `true`.
- **It never acts beyond your role.** Each tool is the command, signed in as you: what your role can't do from a terminal, it can't do here.

## What it answers

- **Each tool's result** carries the command's `--json` answer, with its exit code beside it (`"exit"`), as structured content, and as text the words the command prints for a person, or a refusal's message followed by `[<code>, exit <n>, next <word>]`. A result whose exit isn't 0 is marked as an error. A missing input, or one of the wrong type, is refused before any command runs (`usage`, exit 2).
- **Its own log** goes to stderr: each call's tool, exit, refusal code and time. Never an input, a prompt, an answer or a key.
- **Protocol.** It speaks MCP revisions `2025-11-25`, `2025-06-18`, `2025-03-26` and `2024-11-05`, and offers tools only. It stops when the app closes its stdin.

## Before you install: NativeCluster's public MCP server

Since 0.4.24, NativeCluster's website is an MCP server too, for an AI tool on a Mac where NativeCluster isn't yet, or on any other computer: `https://www.nativecluster.com/mcp`. It needs no sign-in and no NativeCluster.

- **Read-only, from this site.** It answers only from what this site publishes: these docs, `llms.txt` and `llms-full.txt`, the Store's apps, and the model list the Models pages are built from. It is built with the site, so its answers are the site's, word for word. It installs nothing, makes no account, and sees no Mac and no one's data.
- **Streamable HTTP.** Each JSON-RPC message is one POST, and a request's answer is one JSON object. It speaks MCP revision `2025-11-25`, and `2025-06-18` and `2025-03-26` for clients of those, and offers tools only. There's no session, no cookie and no stream: a GET answers 405.
- **What it keeps.** Nothing about a call beyond what its per-address rate limit counts (past it, HTTP 429); never its arguments.

| Tool | What it answers | Inputs |
|---|---|---|
| `about` | What NativeCluster is, in this site's words | none |
| `check_mac` | Whether NativeCluster runs on a Mac (Apple silicon, M1 or later, on macOS 13 Ventura or later), and which models fit its memory, as the Models pages judge it | **`chip`** (such as `M3 Pro`), **`memory_gb`** (a number), **`macos`** (such as `15.1`) |
| `models` | The models NativeCluster offers: what each does, its download size, its license and the memory a Mac needs to run it | `memory_gb` (a number), `ability` (`text`, `vision`, `speech` or `search`) |
| `install` | The install line, Homebrew's line and the dmg, as [Install](https://www.nativecluster.com/docs/install.md) gives them, run only with the person's OK, and how an AI agent sets up a new Mac alone | none |
| `store` | The apps in NativeCluster's Store | none |
| `search_docs` | The docs' sections that hold your words: each one's page, heading, link and a short excerpt | **`query`**, `limit` (an integer, 1 to 10) |
| `sign_up` | The link to create a NativeCluster account, and what the account is for | none |

Add it to an MCP app as a remote server, by its URL. Or try it from a terminal:

```sh
curl -s https://www.nativecluster.com/mcp -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -H 'MCP-Protocol-Version: 2025-11-25' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"check_mac","arguments":{"chip":"M3 Pro","memory_gb":36,"macos":"15.1"}}}'
```

Once NativeCluster is on the Mac, `nativecluster mcp` (above) is the MCP server for your cluster itself.
