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

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

Share n8n with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 24 tools (9 read-only).

---

To give your team n8n in Claude, ChatGPT, Cursor and other AI clients, an admin shares the n8n integration in a Metorial portal, and each person connects with an API key. Agents can manage workflows, executions, credentials, users, and projects on an n8n workflow automation instance. The integration has 24 tools, 9 read-only, 2 write and 13 destructive, plus 3 triggers.

**What you will learn**

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

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from n8n 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 |
| --- | --- | --- |
| **API Key** | API token | `token` |

### API Key

To connect, a person enters:

- `token`: n8n API key. Generate one in Settings > n8n API in your n8n instance.

### Setup settings

Setup also asks for:

- `baseUrl`: Base URL of your n8n instance API (e.g. https://your-instance.app.n8n.cloud/api/v1 or https://your-n8n-host:5678/api/v1)

## Admin: share n8n 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 n8n. For how members connect, choose **Each person connects** so everyone enters their own API key, or **Shared connection** to enter one 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 n8n.

4. **Choose who gets it**

   Add the access groups that should see n8n. 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 n8n integration. Once it exists, check which groups have it:

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

## Employee: connect n8n

### In the portal

1. **Open n8n in the catalog**

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

2. **Authenticate**

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

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 n8n
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your n8n 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 n8n
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 9 read-only tools, such as `list_users` and `discover_api`, and lose the 2 write tools, such as `create_workflow` or `create_credential`, and the 13 destructive tools, such as `manage_tags` or `stop_execution`.

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 n8n
metorial tools <integration-id>
metorial call <integration-id> list_users -d '{}'
```

`metorial tools` lists the 24 tools, minus any you rejected. `list_users` takes no input. It lists users on the n8n instance.

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

## Tools

### Read-only tools (9)

- `get_execution`: Retrieve details of a specific workflow execution including its status, timing, and optionally the full execution data with node-level results. Needs `executionId`.
- `get_workflow`: Retrieve a current workflow definition or an exact historical version. Needs `workflowId`.
- `list_executions`: List workflow executions with optional filtering by workflow, status, and project.
- `list_credentials`: List all credentials stored in your n8n instance.
- `list_workflows`: List workflows in your n8n instance with optional filtering.
- `list_users`: List users on the n8n instance.
- `get_credential_schema`: Retrieve the JSON schema for a specific credential type. Needs `credentialTypeName`.
- `generate_audit`: Generate a security audit report for your n8n instance.
- `discover_api`: Read the native capability map filtered by this API key’s scopes, optionally including request schemas.

### Write tools (2)

- `create_workflow`: Create a new workflow in n8n. Needs `name`, `nodes` and `connections`.
- `create_credential`: Create a new credential in n8n. Needs `name`, `type` and `credentialData`.

### Destructive tools (13)

- `manage_workflow_tags`: Get or update the tags assigned to a workflow. Needs `workflowId`.
- `update_workflow`: Update an existing workflow's definition, including its name, nodes, connections, and settings. Needs `workflowId`.
- `delete_execution`: Permanently delete a workflow execution record. Needs `executionId`.
- `activate_workflow`: Activate (publish) or deactivate a workflow. Needs `workflowId` and `active`.
- `stop_execution`: Stop a currently running workflow execution. Needs `executionId`.
- `retry_execution`: Retry a failed workflow execution. Needs `executionId`.
- `delete_workflow`: Permanently delete a workflow from n8n. Needs `workflowId`.
- `source_control_pull`: Pull workflow changes from a connected Git repository into your n8n instance.
- `manage_projects`: Create, update, delete, or list projects in n8n. Needs `action`.
- `manage_tags`: Create, update, delete, or list tags used to organize workflows and credentials. Needs `action`.
- `transfer_resource`: Transfer a workflow or credential to a different project. Needs `resourceType`, `resourceId` and `destinationProjectId`.
- `delete_credential`: Permanently delete a credential from n8n. Needs `credentialId`.
- `manage_variables`: Create, update, delete, or list variables stored in your n8n instance. Needs `action`.

## Triggers

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

- `execution_completed`: Detects when workflow executions complete (successfully or with errors) by polling for new finished executions.
- `inbound_webhook`
- `workflow_changes`: Detects when workflows are created, updated, activated, or deactivated by polling the n8n instance.

## 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 n8n there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [n8n on metorial.com](https://metorial.com/integrations/n8n): the integration overview