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

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

Share Grist with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 30 tools (13 read-only).

---

To give your team Grist in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Grist integration in a Metorial portal, and each person connects with an API key. Agents can manage organizations, workspaces, documents, tables, columns, and records in Grist's relational spreadsheet-database. The integration has 30 tools, 13 read-only, 12 write and 5 destructive, plus 1 trigger.

**What you will learn**

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

**Before you start**

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

### API Key

To connect, a person enters these values:

- `apiKey`: Grist API key (generated from Profile Settings in the Grist UI)
- `serverUrl`: Base URL of the Grist instance (e.g., "https://docs.getgrist.com", "https://myteam.getgrist.com", or a self-hosted URL)

## Admin: share Grist 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 Grist. 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 Grist.

4. **Choose who gets it**

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

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

## Employee: connect Grist

### In the portal

1. **Open Grist in the catalog**

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

2. **Authenticate**

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

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

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Grist 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 grist
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 13 read-only tools, such as `run_sql` and `list_orgs`, and lose the 12 write tools, such as `add_records` or `create_table`, and the 5 destructive tools, such as `delete_records` or `delete_webhook`.

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

`metorial tools` lists the 30 tools, minus any you rejected. `list_orgs` takes no input. It lists all accessible organizations (team sites and personal spaces).

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

## Tools

### Read-only tools (13)

- `list_orgs`: List all accessible organizations (team sites and personal spaces).
- `list_webhooks`: List all webhooks configured for a document, including their URLs, target tables, event types, and delivery status. Needs `documentId`.
- `list_tables`: List all tables in a Grist document. Needs `documentId`.
- `fetch_records`: Fetch records (rows) from a table with optional filtering, sorting, and limiting. Needs `documentId` and `tableId`.
- `list_columns`: List all columns in a table. Needs `documentId` and `tableId`.
- `get_document`: Retrieve details about a specific Grist document, including its name, workspace, and access information. Needs `documentId`.
- `list_workspaces`: List all workspaces in an organization, including their documents. Needs `orgId`.
- `run_sql`: Execute a read-only SQL SELECT query against a document's SQLite database. Needs `documentId` and `sql`.
- `list_attachments`: List attachment metadata for a document. Needs `documentId`.
- `get_current_user`: Get the identity and profile of the user who owns the connected API key.
- `get_workspace`: Retrieve workspace details.
- `download_attachment`: Download a document attachment.
- `download_document`: Download a Grist document as a SQLite file, optionally removing its history or exporting its structure as a template.

### Write tools (12)

- `update_webhook`: Update an existing webhook's configuration such as URL, event types, enabled state, or ready column. Needs `documentId` and `webhookId`.
- `update_document`: Update a document's properties such as name and pinned status. Needs `documentId`.
- `add_records`: Add one or more records (rows) to a table. Needs `documentId`, `tableId` and `records`.
- `create_table`: Create one or more tables in a Grist document. Needs `documentId` and `tables`.
- `add_or_update_records`: Upsert records: for each record, check if a matching record exists using the "require" fields. Needs `documentId`, `tableId` and `records`.
- `create_document`: Create a new empty document in a workspace. Needs `workspaceId`.
- `update_records`: Update existing records in a table by their record IDs. Needs `documentId`, `tableId` and `records`.
- `create_workspace`: Create a new workspace in an organization. Needs `orgId` and `name`.
- `create_webhook`: Create a webhook that sends POST requests to a URL when data changes in a document table. Needs `documentId`, `url`, `tableId` and `eventTypes`.
- `update_workspace`: Rename a workspace.
- `restore_document`: Restore a document that was moved to trash.
- `restore_workspace`: Restore a workspace that was moved to trash.

### Destructive tools (5)

- `delete_document`: Soft-delete a document (move to trash) or permanently delete it. Needs `documentId`.
- `delete_webhook`: Delete a webhook from a document. Needs `documentId` and `webhookId`.
- `delete_records`: Delete records from a table by their record IDs. Needs `documentId`, `tableId` and `recordIds`.
- `delete_workspace`: Soft-delete a workspace (move to trash) or permanently delete it. Needs `workspaceId`.
- `modify_columns`: Create, update, or delete columns in a table. Needs `documentId` and `tableId`.

## Triggers

Grist has 1 trigger, which fire on events in Grist:

- `row_changes`: Triggers when rows are added or updated in a Grist table.

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