> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nudj.cx/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect an AI Client with OAuth

> Connect Claude or another MCP client to Nudj by signing in: what each permission allows, what the consent screen shows, the limits, how your data is handled, and how to disconnect.

OAuth is the way to connect an AI client you did not build yourself, such as Claude. You sign in to Nudj, you see what the client asks for, and an organisation admin can disconnect it at any time. The client never sees your Nudj password or a personal token: it holds a renewal key that lasts at most 90 days and ends when the connection is disconnected.

> [!WARNING]
>
> A personal Bearer token is a developer key with full admin access to your organisation (see [Bearer + x-api-domain](https://docs.nudj.cx/developer/mcp/bearer-and-domain.md#generate-a-token)). Keep it for your own scripts and tools on your own machine. Never give it to a hosted service or a client someone else runs: connect those with OAuth. It does not follow the person who made it: it keeps working if they change role or leave, so revoke every token a leaver made.

## Before you start

* Your organisation's plan must include MCP access. Without it, every call is refused with `NOT_ENTITLED` ("Your plan does not include MCP access").
* You need an account in the Nudj admin with a role in the organisation you want to connect.
* The server URL is `https://mcp.nudj.cx/mcp`.

## Which clients can connect

| Client | What the consent screen shows |
| - | - |
| Claude (redirects to `claude.ai`, `claude.com` or `anthropic.com`) | **Claude** as the client name |
| A client that publishes its own metadata document over HTTPS | The client's name, **Verified domain** and **Redirects to** |
| A local tool that redirects to your own computer (`localhost`, `127.0.0.1` or `[::1]`) | **Unverified client** with a warning that it redirects to a local application. Only approve it if you started the sign-in from a local tool. |

Claude shows the Claude logo and no **Redirects to** line. A client that publishes its own metadata document chooses the name you see, so it can call itself Claude: judge it by its **Verified domain** and **Redirects to**, not its name, and deny a client called Claude that shows a **Redirects to** line. Nudj refuses to register a new client whose redirect address is not one of these. If the screen says it does not recognise the redirect URL, deny it.

## Connect

**1. Add Nudj to your client**

Add a custom connector (or remote MCP server) with the URL `https://mcp.nudj.cx/mcp`. Leave out any `Authorization` header: the client finds Nudj's sign-in from the server.

**2. Sign in to Nudj**

The client opens Nudj in your browser. Sign in with your Nudj account. **Not you?** lets you switch account.

**3. Check the consent screen**

The screen is headed **Connect to Nudj**. It names the client that is asking, the account you are signed in with, and the **Permissions requested**. You cannot untick a permission: if the list is broader than you want, choose **Deny** and set the client to ask for fewer. If you belong to more than one organisation, pick one: the connection can only reach that organisation. To use another, connect again and pick it; the first connection stays until it ends or an organisation admin disconnects it.

**4. Allow or deny**

**Allow** connects the client. **Deny** sends it back with nothing.

## Permissions

The client chooses which permissions to ask for. If it leaves them out, it gets `mcp:read`. Nudj refuses the all-access permissions `admin:all` and `mcp:all` on a new connection, so a client can only ask for the five below.

| Permission | Consent screen wording | What it allows |
| - | - | - |
| `mcp:read` | Read community data, challenges, rewards, and analytics | Reading data from every tool except image generation and Shopify, plus web search and social profile lookups. Every other permission also needs this one. |
| `mcp:write:content` | Create and edit communities, challenges, actions, posts, and panels | Creating, editing and deleting content, the widget panel and the look of a community |
| `mcp:write:rewards` | Manage rewards, giveaways, and distribute points or XP | Writing rewards, badges, boosts, giveaways, birthday rewards, referral settings and reward allocations, and setting what games and loyalty tiers pay out. Content that pays points, XP or rewards needs this as well as `mcp:write:content`, and so does creating an action, because a new action pays XP by default (a quick action that pays no XP needs only `mcp:write:content`). |
| `mcp:media` | Generate, upload, and manage images and media assets | Generating and editing images, and changing assets in your asset library |
| `mcp:shopify` | Read and configure Shopify store integration | Nothing yet for an OAuth connection: the Shopify tool is not offered to OAuth clients |

### Your role still applies

A permission never gives more than your role allows.

* If you are a **Viewer** or **Moderator**, Nudj grants `mcp:read` only, and the AI can only read. If the client did not ask for `mcp:read`, the connection is refused.
* **Manager** and above can read and write, within the permissions on the consent screen.
* Nudj reads your role again each time the client renews its access, so a lower role takes effect within 15 minutes. If your role goes up, connect again to get the permissions it allows.

## How long a connection lasts

* The client's access lasts 15 minutes and it renews it on its own.
* A connection that is not used for 30 days ends.
* Every connection ends 90 days after you allowed it. Connect again to keep using it.

## Disconnect

**1. Open Connected Apps**

In the Nudj admin, go to **Settings → Developer → API Configuration**. Connected Apps lists each connection to your organisation with its permissions. Its **Connected** time is when the client last renewed its access, not when you first allowed it.

**2. Disconnect the client**

Click **Disconnect** on a row for that client and person, and confirm. It ends every sign-in of that client for that person in your organisation, including rows from earlier sign-ins.

* The client can no longer renew its access, and its calls stop within 15 seconds.
* Each person who connected the same client has their own rows. Disconnect a row for each person whose connection you want to end.
* Only an organisation admin can see Connected Apps and disconnect a connection. If you are not an admin, ask one.
* Removing Nudj from your AI client may not end the connection on Nudj's side, so disconnect it in Nudj as well.

## Actions the client must confirm

Nudj can require a connected client to ask you before sensitive calls. Nudj cannot see whether a person answered, so trust it only as far as you trust the client. This setting may not be switched on yet, so do not rely on it: deny a client that asks for more permissions than it needs.

When it is on:

* Calls that change what members see or that move value need a confirmation: publishing or editing live content, changing the widget panel, gifting points or rewards, changing rewards, and deleting. Reading and creating drafts do not.
* A client that supports MCP confirmation forms (protocol version `2026-07-28` or later) asks you to confirm each one.
* Any other client is refused, and told to make the change in the Nudj admin instead.

## Limits

| Limit | Value |
| - | - |
| Calls per token | 120 a minute |
| Calls per organisation, all connections and tokens together | 600 a minute |
| Calls in one batch request | 20 |
| Image generation, per organisation | 20 calls a minute, 500 images a day |
| Web search and scraping, per organisation | 30 calls a minute, 2,000 a day |
| Social profile and video lookups, per organisation | 30 calls a minute, 2,000 a day |

A call over a limit is refused. Wait and try again.

## How your data is handled

* Everything a tool returns, which can include member names and email addresses, goes to your AI client and the model provider it uses. Read access is enough for this.
* The MCP server calls the Nudj Admin API as you, with your role, in the organisation you picked. A connection only reaches that organisation.
* Nudj records each change a connected client makes successfully: the tool, the community, who made it and through which connection. It does not record what the client sent.
* Data a tool returns that can hold outside text, such as member posts, comments or a web page, reaches the AI marked as untrusted. That helps, but it does not stop a model being misled by text in your data, so read what the AI proposes before you allow a change.
* Image generation, web search, social profile and video lookups, and Nudj docs search send what the AI asks for (a prompt, a search, a profile) to the outside services that do the work.
* What your AI client does with the data it reads is set by that client's own terms and settings, not by Nudj.

## Related

> [card] [Claude Code Setup](https://docs.nudj.cx/developer/mcp/claude-code.md)
>
> Add Nudj to Claude Code with `.mcp.json`.

> [card] [MCP Server Overview](https://docs.nudj.cx/mcp-server/introduction.md)
>
> The full tool catalog and transport details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.