# The NoClick MCP server

> Let Claude, ChatGPT, Cursor or any MCP client build on the platform, signed in with OAuth or with a platform key.

The platform is also an MCP server. Connect Claude, ChatGPT, Cursor, Codex or any other MCP client to it, and the agent in that client can create agents and resources, connect accounts, deploy apps, buy what has a price and read what happened, just as your code would. Every call it makes meets the same scopes, spend caps and [approval rules](https://www.noclick.com/docs/guide/policy.md) as your code's.

The server is at:

```http
POST https://mcp.noclick.com
```

It speaks Streamable HTTP. A client either signs in with OAuth, where you choose on NoClick what the connection may do, or sends a platform key as `Authorization: Bearer nk_live_...`. Its tools are a few task-shaped ones (`search` and `fetch` for docs, skills and objects, `resources_save`, `apps_deploy`, `quote` then `purchase`, `wait` for long work) plus `api_describe` and `api_call` for any other API operation. Creating keys, changing policy and reading secrets' values stay with a person. A spending limit only tightens through it: lowering one (or setting one where there's none) goes straight through, and raising or removing one waits for your approval ([spend](https://www.noclick.com/docs/guide/spend.md#when-an-agent-changes-a-cap)).

What waits for your approval (a purchase over what the connection may spend by itself, a deletion that can't be undone, a call your [policy](https://www.noclick.com/docs/guide/policy.md) holds, a raised limit) reaches you from NoClick itself: a link on the app you last texted NoClick on (WhatsApp or iMessage), else by email. It opens what's asked (the exact price, what a deletion takes with it, any terms to accept), and you approve or decline it there with one tap, without signing in. The link works once, for 24 hours. A purchase or deletion your NoClick assistant asks for while you're watching its chat is a card right there, and the link follows only if you leave it unanswered. The agent's call answers `approval_required` with `sent_to` naming where the link went, never the link, so no agent can approve its own call. Your own server can answer these too, with a key that names the `approvals:answer` scope ([answer held calls from your code](https://www.noclick.com/docs/guide/policy.md#answer-held-calls-from-your-code)).

## Claude and ChatGPT

Add `https://mcp.noclick.com` as a custom connector. The first time the client uses it, NoClick asks you to sign in and choose what the connection may do: build, deploy, spend (with a monthly cap, and an amount under which a purchase needs no approval) and delete. Reading is always allowed. A client that asks for the `admin` scope by name is offered `admin` too, which [opens a few administrative calls](https://www.noclick.com/docs/guide/policy.md#let-an-agent-or-a-connected-app-administer), each off until your approval settings switch it. Each connection is listed under **Connected apps** beside your API keys in the developer console, where you can revoke it ([turn a connection off, and back on](https://www.noclick.com/docs/guide/mcp.md#turn-a-connection-off-and-back-on)). What you chose stays changeable: `PATCH /v1/connected_apps/{id}` sets its auto-approve amount, its monthly cap, its groups and [its own approval settings](https://www.noclick.com/docs/guide/policy.md#set-them-for-one-key-or-connected-app) (`noclick.ApprovalPolicy.set_for_connected_app`), and NoClick's assistant is one of these connections, with no auto-approve amount until you give it one.

## Claude Code

```bash
claude mcp add --transport http noclick https://mcp.noclick.com
```

Then run `/mcp` in Claude Code to sign in. To use a platform key instead:

```bash
claude mcp add --transport http noclick https://mcp.noclick.com \
  --header "Authorization: Bearer $NOCLICK_API_KEY"
```

## Cursor

Add this to `.cursor/mcp.json`, or leave out `headers` to sign in with OAuth:

```json
{
  "mcpServers": {
    "noclick": {
      "url": "https://mcp.noclick.com",
      "headers": { "Authorization": "Bearer ${env:NOCLICK_API_KEY}" }
    }
  }
}
```

## Other clients

Any client that supports remote MCP servers over HTTP works the same way: the URL above, and either its OAuth sign-in or `Authorization: Bearer` with your key. A few take it in a shape of their own:

- **ChatGPT** adds custom connectors in developer mode: turn on **Developer mode** under **Settings > Apps & Connectors > Advanced settings**, click **Create**, paste the URL, then turn the connector on in a chat from the **+** menu. On a team plan, an admin allows developer mode first.
- **Codex CLI**: `codex mcp add noclick --url https://mcp.noclick.com`.
- **Windsurf** names the URL `serverUrl`, not `url`, in `~/.codeium/windsurf/mcp_config.json`:

  ```json
  { "mcpServers": { "noclick": { "serverUrl": "https://mcp.noclick.com" } } }
  ```

- **Claude Desktop** takes the server as a custom connector, as Claude does. From its config file instead, it reaches a remote server through `mcp-remote`:

  ```json
  { "mcpServers": { "noclick": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.noclick.com"] } } }
  ```

Connected before at `https://api.noclick.io/mcp`? That's [the workflow MCP server](https://www.noclick.com/docs/guide/workflow-mcp.md), which keeps working.

## Turn a connection off, and back on

Revoke a connection under **Connected apps** and its next call fails; it stays listed as revoked. A client you connected comes back only by connecting it again and allowing it, which makes a new connection: the old one's tokens never work again. A connection NoClick makes itself, your NoClick assistant's or its workflow builder's, has no client of its own to reconnect, so its row offers **Restore**, which turns it back on as it was when you revoked it: its groups, monthly cap, auto-approve amount and [own approval settings](https://www.noclick.com/docs/guide/policy.md#set-them-for-one-key-or-connected-app), never wider. Its next call works. Revoking and restoring are yours alone, signed in: a key, an app's code, an agent and any connection are refused, and so is NoClick's staff viewing your account. Your code signed in as you lists, revokes and restores them the same way:

```python
for app in noclick.ConnectedApp.list():
    if app.revoked and app.restorable:
        noclick.ConnectedApp.restore(app.id)
```

```ts
import { ConnectedApp } from "noclick";

for (const app of await ConnectedApp.list()) {
  if (app.revoked && app.restorable) await ConnectedApp.restore(app.id);
}
```

Over HTTP it's `GET /v1/connected_apps`, `DELETE /v1/connected_apps/{id}` and `POST /v1/connected_apps/{id}/restore`. Each connection's `restorable` says whether it can be restored once revoked; restoring a client you connected answers `409` with `reason` `reconnect`, and restoring a live one changes nothing.

## The tools

Every tool tells the client what it changes (MCP's read-only, destructive, idempotent and open-world hints), so a client can run reads without asking and ask a person before the rest. A **write** creates or changes your account's own things; a **sensitive** tool sends, spends, deletes or puts something live, and clients should ask before each call. These are the three classes connector directories sort tools into (read, write and sensitive write), and a tool that both reads and writes counts as a write.

| Tool | What it does | Kind |
| --- | --- | --- |
| `search` | Finds docs, skills, examples, API operations and your account's objects | Read |
| `fetch` | Reads one doc page, skill or object in full, a file in a bucket included | Read |
| `account_status` | Which account you're signed in to, balance, spend, approvals waiting and what's failing | Read |
| `logs` | Bounded logs of a deployment, app, agent conversation, call or trigger | Read |
| `wait` | Waits up to 40 seconds on long work and returns its result | Read |
| `approvals` | Calls held for a person's approval (purchases, deletions, what your policy holds); it never approves. Questions sent to a person are operations: `wait` on one | Read |
| `quote` | Prices a phone number, domain or machine; buying (and a number's quote) needs $5 of funds you added, while searching what's for sale and its price is free | Read |
| `api_describe` | Describes any API operation | Read |
| `agents_save` | Creates an agent, or updates one by name (an update replaces the fields it sets) | Write |
| `agents_test` | Runs a turn of an agent against a simulated world: nothing real is sent, bought or changed | Write |
| `workflows_save` | Has NoClick's builder build a workflow from a description, or change one by name, and answers what it asks | Write |
| `resources_save` | Creates or updates a database, bucket, volume, queue, channel, inbox, webhook, trigger, a file in a bucket and more | Write |
| `secrets_request` | Creates a secret by name and returns the NoClick page where a person types its values | Write |
| `render` | Draws an answer as a picture or a PDF in NoClick's design (a comparison, a series, a week, a market, a choice of designs) and returns the line that puts it in a reply; the picture is kept as one of your files, its link showing it for 7 days | Write |
| `repos_push` | Commits files to a repo (adding, replacing or deleting them, each from its content or a `source` NoClick reads: a file it was sent, a URL, a bucket's file), or returns a push remote | Write |
| `connections_connect` | Returns the link a person opens to connect an account; it can email the link to them | Sensitive when it emails |
| `apps_deploy` | Deploys a preview of a branch, or production, which replaces what's live | Sensitive for production |
| `agents_message` | Gives an agent a live turn, in which its own tools act for real | Sensitive |
| `purchase` | Buys what `quote` priced, once a person agreed | Sensitive |
| `delete` | Previews what a deletion does, then deletes, cancels or revokes | Sensitive |
| `api_call` | Calls any other API operation by name; purchases and deletions are refused there | Sensitive |

Errors say what went wrong and what to do next, and long work returns an operation to `wait` on. Each connection is rate limited like an API key.

A result is shaped for the model reading it, never for your code: encoded data (a reasoning signature, a file's bytes) reads as its length, a long text said in two places is said once, and a large answer is shortened, its longest texts cut first. Each says what it left out, and `fields` on `api_call` or `fetch` reads those parts whole. The API's own answers to your code are untouched.

Text someone else wrote (an email to an inbox, a text or call to a number, a channel message, a file, a run's output, an agent's reply) comes back marked as untrusted data, in a tag it can't close, so the model reads it as data and never as instructions. It's marked in a result's text and in its structured part alike, since some clients (Claude Code among them) show their model only the structured part. What a model copies exactly stays plain: numbers, links, email addresses, times, ids and short tokens like a status. A file's text comes back inside the tag too, and the result says the tag isn't part of the file, so a model writing the file elsewhere leaves it out. Content the answer declares base64 (a binary file's bytes) stays plain, so it's copied back byte for byte.

## Other URLs on the server

| URL | What it serves |
| --- | --- |
| `https://mcp.noclick.com` | the task tools above |
| `https://mcp.noclick.com/readonly` | the tools that read, `api_describe`, and `api_call` limited to reads |
| `https://mcp.noclick.com/code` | the task tools plus `query` and `run`, which run a short Python program against the SDK in a sandbox |
| `https://mcp.noclick.com/openai` | the task tools without `api_describe`, `api_call`, `quote` and `purchase`, its agents holding only the tools named for them ([below](https://www.noclick.com/docs/guide/mcp.md#the-openai-url)) |
| `https://mcp.noclick.com/x/{area}` | one tool per API operation of one area, such as `agents` or `phone` |

Each of them also acts for one of your users: `https://mcp.noclick.com/u/{user_id}`, `https://mcp.noclick.com/u/{user_id}/readonly` and so on make every call as that user, for clients that can't send the `NoClick-User` header.

The server's playbooks are skills: listed in its instructions, read with `fetch` (`skill:<name>`), offered as prompts, and indexed at `https://mcp.noclick.com/.well-known/skills/index.json` for agents that discover skills by URL.

## The OpenAI URL

`https://mcp.noclick.com/openai` is the server as OpenAI's plugin directory lists it, for ChatGPT and Codex. It serves the task tools except `quote`, `purchase`, `api_describe` and `api_call`, and runs a workflow with a tool of its own, `workflows_run`.

- **It can't buy.** `quote` and `purchase` are left out, and its sign-in page doesn't offer the spend permission, so a connection here can't buy a phone number, a domain or a machine itself.
- **It has no catch-all tool.** `api_call` runs any API operation by name and `api_describe` explains any of them. OpenAI's directory asks for tools that each do one job, so you, your client and its reviewers can tell from a tool's name what a call will do.
- **Its agents hold only what's named for them.** An agent saved through it has no shell and runs no code, and each of its tools is one operation, a web search or page read, a bucket or database, or a person. It can't give an agent a coding harness, NoClick's own tools, the power to make agents, a browser or a card. An agent holding any of those can't be changed or messaged through this URL.
- **It deletes what it makes.** `delete` takes a ref of the kinds its own tools make, or a deployment or operation to cancel. A bought number or domain, a machine or a browser goes in NoClick itself.
- **The rest is the same.** It reads, builds agents, workflows and resources, commits to repos, deploys and connects accounts, under the same consent, caps and approval rules as the default URL. A link to connect an account goes to whoever you give it to: there's no `email_to` here, and `resources_save` doesn't make volumes, hosted MCP servers or triggers (an agent's are saved with it).
- **Its skills are its own.** Each calls only the tools it has, and the ones about buying, or about putting work on a queue, aren't offered. Its prompts and `fetch` serve them; the well-known skills index lists the default URL's, because a well-known path belongs to the whole `mcp.noclick.com` origin, which both URLs share.

To buy, to give an agent a shell, or to reach an API operation the task tools don't cover, connect `https://mcp.noclick.com` instead.

## Give your hosted agents the same tools

`"noclick"` in a hosted agent's `tools` gives it the same server's core tools (`search`, `fetch`, `api_describe`, `api_call`, `quote`, `buy` and `delete`), acting as each turn's key, under the same rules: a deletion to the [trash](https://www.noclick.com/docs/guide/undo.md) happens at once, restorable for 30 days, a purchase or a deletion that can't be undone waits for your account's owner, and a secret's value never comes from its conversation. `noclick.Platform.only("read")` or `noclick.Platform.only("domains")` narrows it. See [Give it NoClick itself](https://www.noclick.com/docs/guide/agents.md#give-it-noclick-itself).

A connected app gives an agent nothing it wasn't granted itself: an app without `spend` can't give one `"noclick"` (or `noclick.spend`) or a card's purchase, one without `delete` can't give it `agents.cancel` (so not all of `"agents"`), and a turn it starts reaches only the groups it holds. Nor can it change what an agent holding more does on other people's turns: its instructions, memories, triggers, wake-ups, or the inboxes and numbers that wake it. It can still message that agent, take its tools away and delete it.

What such an app says to an agent holding more stays apart from everyone else's conversations with it, since their turns hold more: its messages go to conversations of its own, `mcp:<its key id>:<the conversation it named>` (the message's operation names the one it went to), and its turns there write nothing elsewhere (the agent's memory, the owner's conversation, a wake-up in another conversation). An agent it fully reaches is talked to in the conversation it names. Your NoClick assistant (the agent `coordinator`) is NoClick's, so it can't be deleted.

## Keep the agent's key narrow

The agent can do whatever its key can. Give it a key of its own with only the scopes it needs, and a monthly spend cap (see [API keys and scopes](https://www.noclick.com/docs/guide/keys.md)). Your [policy](https://www.noclick.com/docs/guide/policy.md) applies to it like any other caller, so tools you've forbidden stay forbidden and approvals still go to a person.

## MCP servers for your users

This server is for you and your coding agents. If you run an MCP server of your own for your users, a [toolkit](https://www.noclick.com/docs/guide/toolkits.md) gives you NoClick's tools to serve from it: `definitions("mcp")` for the tool list and `call()` to run each one as the right user.

## Troubleshooting

**"localhost refused to connect" after you approve.** A command-line client (Claude Code, Codex) signs in through a short-lived server on your own machine, and NoClick's approval page sends your browser back to it. Nothing answers there once that session has closed or timed out, or when you approve from a tab an earlier attempt opened. Sign in again (in Claude Code, `/mcp`, the server, then **Authenticate**), keep the session open, and approve in the tab it opens.

**The client runs over SSH or in a container.** Its `localhost` is that machine, not your browser's. Forward the port in the callback URL (`ssh -L <port>:localhost:<port> ...`), or copy the URL from the approval page and open it on that machine, with `curl '<url>'` for instance.

**The tools don't show up.** Restart the client after adding the server, check that its config file is valid JSON, and in Claude Code see `claude mcp list`. Most clients connect only when a session starts.

## Support

Email support@noclick.com for help with the server or a connection. The [privacy policy](https://www.noclick.com/privacy-policy) says what NoClick keeps and for how long, and the [developer terms](https://www.noclick.com/legal/developer-terms), with the [acceptable use policy](https://www.noclick.com/legal/acceptable-use), cover using it. To end a connection, revoke it under **Connected apps** in the developer console (your NoClick assistant's is restored there too).
