> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Nango in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/nango
Last updated: 2026-11-24

Share Nango with your team in Claude, ChatGPT and Cursor through Metorial: environment API key sign-in, 12 tools (5 read-only).

---

To give your team Nango in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Nango integration in a Metorial portal, and each person connects with an environment API key. Agents can discover authorized Nango integrations, providers, connections and deployed functions. The integration has 12 tools, 5 read-only and 7 write, plus 3 triggers.

**What you will learn**

- How an admin shares Nango in a portal and how each person connects
- What Nango asks for when you connect, and where to find it
- How to keep the 5 read-only tools and reject the other 7

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An environment API key from Nango for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **Environment API Key** | API token | `secretKey` |

### Environment API Key

To connect, a person enters:

- `secretKey`: Your Nango Secret Key from Environment Settings

### Setup settings

Setup also asks for:

- `baseUrl` (optional): Base URL for the Nango API. Use https://api.nango.dev for Nango Cloud or http://localhost:3003 for local development.

## Admin: share Nango in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Nango. For how members connect, choose **Each person connects** so everyone enters their own environment API key, or **Shared connection** to enter one environment API key for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Nango.

4. **Choose who gets it**

   Add the access groups that should see Nango. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Nango integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search nango
```

## Employee: connect Nango

### In the portal

1. **Open Nango in the catalog**

   Sign in to your portal and open Nango. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your environment API key (secretKey).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search nango
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Nango connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list nango
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 5 read-only tools, such as `get_records` and `list_functions`, and lose the 7 write tools, such as `manage_sync` or `proxy_request`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list nango
metorial tools <integration-id>
metorial call <integration-id> list_integrations -d '{}'
```

`metorial tools` lists the 12 tools, minus any you rejected. `list_integrations` takes no input. It lists configured integrations in the connected Nango environment with exact IDs and provider names.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (5)

- `list_connections`: List authorized connection/integration pairs and credential-free metadata in the connected environment.
- `get_records`: Retrieve one page of synced records for an exact connection and deployed data model. Needs `connectionId`, `providerConfigKey` and `model`.
- `list_integrations`: List configured integrations in the connected Nango environment with exact IDs and provider names.
- `list_providers`: Discover the native provider catalog with exact provider names and authentication modes for integration creation.
- `list_functions`: Discover one native page of functions deployed to an exact integration from list_integrations.

### Write tools (7)

- `manage_connection`: Import existing credentials, retrieve metadata, or delete one exact connection/integration pair from list_connections. Needs `action`, `connectionId` and `providerConfigKey`.
- `trigger_action`: Execute one deployed Nango action synchronously for an exact connection/integration pair. Needs `connectionId`, `providerConfigKey` and `actionName`.
- `proxy_request`: Request a provider endpoint through an exact Nango connection/integration pair from list_connections. Needs `method`, `endpoint`, `connectionId` and `providerConfigKey`.
- `manage_sync`: Trigger, start, pause or inspect deployed syncs. Needs `action`, `providerConfigKey` and `syncs`.
- `manage_connection_metadata`: Set or update metadata for exact connection/integration pairs from list_connections. Needs `action`, `connectionId`, `providerConfigKey` and `metadata`.
- `manage_integration`: Create, update, retrieve or delete one exact integration. Needs `action` and `uniqueKey`.
- `create_connect_session`: Connect session creation is unavailable through public tools because the native result grants connection-creation access. Needs `endUserId`.

## Triggers

Nango has 3 triggers, which fire on events in Nango:

- `sync_events`: Monitors sync execution status across integrations.
- `connection_events`: Detects new or removed connections by polling the Nango connections list.
- `inbound_webhook`

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Nango there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Nango on metorial.com](https://metorial.com/integrations/nango): the integration overview