add_grist_records
Ajoute des enregistrements à une table Grist.
Run a Grist workspace end to end — read and write records, query documents with SQL, build tables and reference columns, manage access, attachments and webhooks.
LABSCO SUMMARY
Validating a schema before creating it, creating tables, columns and relations in a single pass, and resolving a reference column's visible column automatically are the parts that make constructing a Grist document from a conversation actually work — reference columns are where hand-rolled attempts usually break. Two notes: the SQL tool means analysis questions do not have to be assembled from record listings, and the tool descriptions the model reads are in French, which is worth knowing but does not change the arguments.
A full administrative surface over the Grist API, covering the whole hierarchy: organizations, workspaces, documents, tables, columns and records, plus access control, exports, attachments and webhooks. Tool descriptions are written in French.
A Grist API key in GRIST_API_KEY, with GRIST_API_HOST pointing at the API — https://docs.getgrist.com/api for the hosted service, or your own instance. Python 3.8+; it runs as uvx mcp-server-grist, with a Docker image as the alternative. Whatever the API key's account can reach in Grist is what the tools can reach. MIT.
One command plus a key — uvx mcp-server-grist, then supply credentials
USE CASES
Find the document and table, then run the SQL directly rather than pulling records and filtering afterwards.
Validate the schema first, create tables, columns and relations in one pass, and add the reference columns with their visible column resolved.
Use the checked write, which confirms the table and columns exist before inserting, then update or delete the rows that need it.
Export the table as CSV, or the whole document as Excel or SQLite.
List access at the organization, workspace and document level, and change the entries that are wrong.
Create the webhook, check the ones already registered, and clear the queue when undelivered notifications pile up.
Export the schema from the existing document, validate it, and create it in the new workspace.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add_grist_recordsAjoute des enregistrements à une table Grist.
add_grist_records_safeAjoute des enregistrements avec validation préalable de la structure.
Cette version sécurisée valide l'existence de la table et des colonnes avant d'ajouter les enregistrements, et suggère des corrections si nécessaire.
clear_webhook_queueVide la file d'attente des webhooks pour un document.
Utile en cas d'accumulation de notifications non envoyées.
create_columnCrée une nouvelle colonne dans une table.
create_documentCrée un nouveau document dans un espace de travail.
create_reference_columnCrée une colonne de référence avec résolution automatique de visibleCol.
Cette fonction:
create_schemaCrée un schéma complet avec tables, colonnes et relations.
Algorithme:
create_tableCrée une nouvelle table dans un document.
create_webhookCrée un webhook pour un document Grist.
create_workspaceCrée un nouvel espace de travail dans une organisation.
delete_columnSupprime une colonne d'une table.
delete_documentSupprime un document.
delete_document_historySupprime l'historique d'un document, ne conservant que les dernières actions.
Utile pour réduire la taille des documents volumineux.
delete_grist_recordsSupprime des enregistrements d'une table Grist.
delete_organizationSupprime une organisation.
delete_webhookSupprime un webhook.
delete_workspaceSupprime un espace de travail.
describe_documentObtient des informations détaillées sur un document spécifique.
describe_organizationObtient des informations détaillées sur une organisation spécifique.
describe_workspaceObtient des informations détaillées sur un espace de travail spécifique.
download_attachmentTélécharge le contenu d'une pièce jointe.
download_document_excelTélécharge un document Grist au format Excel.
download_document_sqliteTélécharge un document Grist au format SQLite.
download_table_csvTélécharge une table Grist au format CSV.
execute_sql_queryExécute une requête SQL personnalisée sur un document Grist.
Permet d'exécuter des requêtes SQL complexes avec jointures, agrégations et sous-requêtes.
export_schemaExporte le schéma d'un document existant.
filter_sql_queryExécute une requête SQL de filtrage sur une table Grist.
Version simplifiée pour requêtes SQL courantes sans écrire de SQL. Pour requêtes complexes, utiliser execute_sql_query.
force_reload_documentForce le rechargement d'un document.
Utile en cas d'incohérences ou de problèmes de synchronisation.
get_attachment_infoObtient les métadonnées d'une pièce jointe.
get_table_schemaObtient le schéma détaillé d'une table Grist.
list_attachmentsListe les pièces jointes d'un document Grist.
list_columnsListe toutes les colonnes dans une table Grist.
list_document_accessListe les utilisateurs ayant accès à un document.
list_documentsListe tous les documents dans un espace de travail Grist.
list_organization_accessListe les utilisateurs ayant accès à une organisation.
list_organizationsListe toutes les organisations Grist accessibles.
Prérequis: Aucun - ce tool est le point d'entrée principal pour la navigation.
Flux de travail typique:
Returns: Dict avec:
list_recordsListe les enregistrements dans une table Grist avec tri et limitation optionnels.
list_tablesListe toutes les tables dans un document Grist.
list_webhooksListe les webhooks d'un document Grist.
list_workspace_accessListe les utilisateurs ayant accès à un espace de travail.
list_workspacesListe tous les espaces de travail dans une organisation Grist.
modify_columnModifie les propriétés d'une colonne.
modify_documentModifie les propriétés d'un document.
modify_document_accessModifie l'accès d'un utilisateur à un document.
modify_organizationModifie les propriétés d'une organisation.
modify_organization_accessModifie l'accès d'un utilisateur à une organisation.
modify_tableModifie les propriétés d'une table.
modify_webhookModifie un webhook existant.
modify_workspaceModifie les propriétés d'un espace de travail.
modify_workspace_accessModifie l'accès d'un utilisateur à un espace de travail.
move_documentDéplace un document vers un autre espace de travail.
update_grist_recordsMet à jour des enregistrements existants dans une table Grist.
upload_attachmentTéléverse une pièce jointe dans un document Grist.
validate_schemaValide un schéma sans le créer.
Vérifie:
BEFORE YOU INSTALL
54 tools when we connected. The documented formula-validation tools, including validate_formula and get_formula_helpers, are not on the running server, while create_schema, validate_schema and export_schema are available but undocumented.
Both documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 54 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
uvx mcp-server-grist{
"mcpServers": {
"grist-server": {
"disabled": false,
"timeout": 60,
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-grist"
],
"env": {
"GRIST_API_KEY": "<YOUR_GRIST_API_KEY>"
}
}
}
}<YOUR_GRIST_API_KEY> is French for "your Grist API key". It is the key from your Grist account settings. Add "GRIST_API_HOST" to env: https://docs.getgrist.com/api for Grist's hosted service, or your own instance's /api address.
{
"mcpServers": {
"grist-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"GRIST_API_KEY=<YOUR_GRIST_API_KEY>",
"-e",
"GRIST_API_HOST=https://docs.getgrist.com/api",
"mcp/grist-mcp-server"
]
}
}
}<YOUR_GRIST_API_KEY> is French for "your API key". It is your Grist API key. GRIST_API_HOST is Grist's hosted service; for your own Grist instance, it is that instance's /api address.