Set up Grist in Metorial for Claude, ChatGPT and Cursor
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'll 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 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, 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
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
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.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Grist.
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:
Employee: connect Grist
In the portal
Open Grist in the catalog
Sign in to your portal and open Grist. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey and serverUrl).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
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.
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.
Check it worked
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. NeedsdocumentId.list_tables: List all tables in a Grist document. NeedsdocumentId.fetch_records: Fetch records (rows) from a table with optional filtering, sorting, and limiting. NeedsdocumentIdandtableId.list_columns: List all columns in a table. NeedsdocumentIdandtableId.get_document: Retrieve details about a specific Grist document, including its name, workspace, and access information. NeedsdocumentId.list_workspaces: List all workspaces in an organization, including their documents. NeedsorgId.run_sql: Execute a read-only SQL SELECT query against a document's SQLite database. NeedsdocumentIdandsql.list_attachments: List attachment metadata for a document. NeedsdocumentId.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. NeedsdocumentIdandwebhookId.update_document: Update a document's properties such as name and pinned status. NeedsdocumentId.add_records: Add one or more records (rows) to a table. NeedsdocumentId,tableIdandrecords.create_table: Create one or more tables in a Grist document. NeedsdocumentIdandtables.add_or_update_records: Upsert records: for each record, check if a matching record exists using the "require" fields. NeedsdocumentId,tableIdandrecords.create_document: Create a new empty document in a workspace. NeedsworkspaceId.update_records: Update existing records in a table by their record IDs. NeedsdocumentId,tableIdandrecords.create_workspace: Create a new workspace in an organization. NeedsorgIdandname.create_webhook: Create a webhook that sends POST requests to a URL when data changes in a document table. NeedsdocumentId,url,tableIdandeventTypes.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. NeedsdocumentId.delete_webhook: Delete a webhook from a document. NeedsdocumentIdandwebhookId.delete_records: Delete records from a table by their record IDs. NeedsdocumentId,tableIdandrecordIds.delete_workspace: Soft-delete a workspace (move to trash) or permanently delete it. NeedsworkspaceId.modify_columns: Create, update, or delete columns in a table. NeedsdocumentIdandtableId.
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, Cursor, Codex and ChatGPT: connect each client to your portal and use Grist there
- Tool permissions: tool filters and what employees see
- Grist on metorial.com: the integration overview