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

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

Share Strapi with your team in Claude, ChatGPT and Cursor through Metorial: API token or JWT login sign-in, 14 tools (7 read-only).

---

To give your team Strapi in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Strapi integration in a Metorial portal, and each person connects with an API token. Agents can read and manage authorized content entries and media in a configured Strapi 4 or 5 instance through its Content REST API. The integration has 14 tools, 7 read-only, 5 write and 2 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares Strapi in a portal and how each person connects
- What Strapi asks for when you connect, and where to find it
- How to keep the 7 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 API token from Strapi 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 methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Token** (default) | API token | `token` |
| **JWT Login** | Custom credentials | `baseUrl`, `identifier` and `password` |

The portal and `metorial setup` use **API Token** unless someone picks another method.

### API Token

To connect, a person enters:

- `token`: Strapi API token created in Settings → Global Settings → API Tokens

### JWT Login

To connect, a person enters these values:

- `baseUrl`: Base URL of your Strapi instance (e.g., https://your-strapi-instance.com)
- `identifier`: Email or username for login
- `password`: Password for login

### Setup settings

Whichever method you pick, setup also asks for:

- `baseUrl`: Base URL of the Strapi instance (e.g., https://your-strapi-instance.com)

## Admin: share Strapi 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 Strapi. Under **Auth Method**, keep **API Token** or pick another. For how members connect, choose **Each person connects** so everyone enters their own API token, or **Shared connection** to enter one API token for everyone.

3. **Limit the tools**

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

4. **Choose who gets it**

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

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

## Employee: connect Strapi

### In the portal

1. **Open Strapi in the catalog**

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

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API token (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 strapi
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **API Token**. To connect with **JWT Login** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Strapi 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 strapi
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 7 read-only tools, such as `get_entry` and `get_media`, and lose the 5 write tools, such as `create_entry` or `update_entry`, and the 2 destructive tools, such as `delete_entry` or `delete_media`.

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

`metorial tools` lists the 14 tools, minus any you rejected. `list_media` takes no input. It lists files from the Strapi media library.

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

## Tools

### Read-only tools (7)

- `list_entries`: Retrieve a paginated list of entries from an authorized Strapi content type. Needs `contentType`.
- `get_entry`: Retrieve a single entry from an authorized Strapi content type by its document ID. Needs `contentType` and `documentId`.
- `get_media`: Retrieve details of a specific media file from the Strapi media library by its ID. Needs `fileId`.
- `list_media`: List files from the Strapi media library.
- `get_single_type`: Retrieve a Strapi single type entry. Needs `contentType`.
- `get_current_user`: Retrieve the native end user authenticated by JWT Login.
- `download_media`: Provide a downloadable existing media file by its exact numeric file ID.

### Write tools (5)

- `upload_media`: Upload a file to the Strapi media library from a URL. Needs `fileUrl` and `fileName`.
- `update_single_type`: Update a Strapi single type entry. Needs `contentType` and `fields`.
- `update_entry`: Update an existing entry in an authorized Strapi content type. Needs `contentType`, `documentId` and `fields`.
- `update_media`: Update the metadata of an existing file in the Strapi media library. Needs `fileId`.
- `create_entry`: Create a new entry in an authorized Strapi content type. Needs `contentType` and `fields`.

### Destructive tools (2)

- `delete_entry`: Permanently delete an entry from an authorized Strapi content type by its document ID. Needs `contentType` and `documentId`.
- `delete_media`: Permanently delete a file from the Strapi media library by its ID. Needs `fileId`.

## Triggers

Strapi has 2 triggers, which fire on events in Strapi:

- `media_events`: Triggered when media files are uploaded, updated, or deleted.
- `entry_events`: Triggered when content entries are created, updated, deleted, published, or unpublished.

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