Grist MCP Server

Grist MCP Server

mcp-server-grist•bynic01asfr

A Model Context Protocol server for Grist that lets AI assistants read and edit Grist data, including documents, tables, records, schemas and relations.

License: MIT•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Read and edit Grist data: browse documents, query tables with SQL, add and update records, and create tables, columns and schemas with relations.
  • •Filter tables without writing SQL or run custom SELECT queries with joins, subqueries, parameters and a timeout.
  • •Add, update and delete records; create or rename tables; and manage columns with types, formulas, choices and references.
  • •Create, validate and export schemas, including reference columns with optional two-way relations and initial data in one call.

BEST FOR

  • •Plain-language Grist work where an assistant can choose tools to create and edit tables from a request.
  • •Modeling related data, with tables, reference columns and optional reverse relations created through schema calls.
  • •Exporting Grist documents and tables to SQLite, Excel or CSV.

ABOUT MCP-SERVER-GRIST

Grist MCP Server is cataloged as an MCP server attributed to nic01asfr. A Model Context Protocol server for Grist that lets AI assistants read and edit Grist data, including documents, tables, records, schemas and relations. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Grist MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server create related tables and reference columns in one operation?

Yes. create_schema can create tables, their columns, relations and initial data in one call, and create_reference_column adds a reference with an optional reverse relation.

What SQL query capabilities does the server provide?

It can filter a table without writing SQL and execute custom SELECT queries with joins, subqueries, parameters and a timeout.

Which export formats are supported?

Documents can be downloaded as SQLite, tables as Excel, and tables as CSV.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 36133dc4c024 · 采集于 2026-11-13 08:01:11 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Grist MCP Server

PyPI version Python versions Tests License: MIT

Version française

An MCP (Model Context Protocol) server for the Grist API. It lets AI assistants such as Claude read and edit your Grist data: browse documents, query tables with SQL, add and update records, and create tables, columns and whole schemas with relations between tables.

Works with any Grist instance: docs.getgrist.com, self-hosted Grist, or grist.numerique.gouv.fr.

Quick start

You need Python 3.10+ and a Grist API key (Grist: Profile settings → API).

Add the server to your MCP client configuration. For Claude Desktop, edit claude_desktop_config.json:

{
  "mcpServers": {
    "grist": {
      "command": "uvx",
      "args": ["mcp-server-grist"],
      "env": {
        "GRIST_API_KEY": "your_grist_api_key",
        "GRIST_API_URL": "https://docs.getgrist.com/api"
      }
    }
  }
}

uvx downloads and runs the package, no installation needed. Restart your client: the Grist tools are now available to the assistant.

Configuration

VariableRequiredDescription
GRIST_API_KEYyesYour Grist API key
GRIST_API_URLnoAPI URL of your Grist instance, e.g. https://docs.getgrist.com/api (default) or https://grist.example.org/api
GRIST_API_HOSTnoOlder name for the same setting, used when GRIST_API_URL is not set
LOG_LEVELnoDEBUG, INFO (default), WARNING, ERROR

Variables can also be set in a .env file (see .env.template).

Other ways to run the server

With pip

pip install mcp-server-grist
mcp-server-grist                    # stdio, for local MCP clients

In your MCP client, use "command": "mcp-server-grist" (or "command": "python", "args": ["-m", "mcp_server_grist"]) with the same env block as above.

Over HTTP

mcp-server-grist --transport streamable-http --host 127.0.0.1 --port 8000 --path /mcp
OptionDefaultDescription
--transportstdiostdio, streamable-http, or sse (deprecated)
--host127.0.0.1Interface for HTTP transports
--port8000Port for HTTP transports
--path/mcpEndpoint for streamable-http
--mount-path/sseEndpoint for sse
--debugVerbose logging

Security: the server does not authenticate HTTP clients. Anyone who can reach it acts with your Grist API key. Keep the default 127.0.0.1, and put a reverse proxy with HTTPS and authentication in front of it before exposing it to a network.

With Docker

docker build -t mcp/grist-mcp-server .

# stdio
docker run -i --rm -e GRIST_API_KEY=your_key -e GRIST_API_URL=https://docs.getgrist.com/api \
  mcp/grist-mcp-server

# HTTP (--host 0.0.0.0 is required inside a container)
docker run --rm -p 8000:8000 -e GRIST_API_KEY=your_key \
  mcp/grist-mcp-server --transport streamable-http --host 0.0.0.0

Without GRIST_API_URL, the image uses https://grist.numerique.gouv.fr/api. In an MCP client, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "GRIST_API_KEY=...", "mcp/grist-mcp-server"].

docker compose up starts a stdio and an HTTP service, configured from .env.

Available tools

The server exposes 54 tools. The tools reference lists the parameters of each one.

Navigation

  • list_organizations: list organizations
  • describe_organization: details of an organization
  • list_workspaces: list the workspaces of an organization
  • describe_workspace: details of a workspace
  • list_documents: list the documents of a workspace
  • describe_document: details of a document
  • list_tables: list the tables of a document
  • list_columns: list the columns of a table
  • list_records: list records, with sorting and limit
  • get_table_schema: detailed schema of a table

Records

  • add_grist_records: add records
  • add_grist_records_safe: add records after checking the column names
  • update_grist_records: update records
  • delete_grist_records: delete records

SQL queries

  • filter_sql_query: filter a table without writing SQL (conditions, sorting, limit)
  • execute_sql_query: run a custom SELECT query (joins, subqueries, parameters, timeout)

Administration

  • modify_organization, delete_organization: manage an organization
  • create_workspace, modify_workspace, delete_workspace: manage workspaces
  • create_document, modify_document, delete_document: manage documents
  • move_document: move a document to another workspace
  • force_reload_document: reload a document
  • delete_document_history: trim a document's history
  • create_table, modify_table: create or rename a table
  • create_column, modify_column, delete_column: manage columns (types, formulas, choices, references)

Schemas and relations

  • create_schema: create tables, their columns, the relations between them and initial data in one call
  • validate_schema: check a schema without creating anything
  • create_reference_column: create a reference column showing the chosen column of the target table, optionally with a two-way (reverse) relation
  • export_schema: export a document's schema as JSON, YAML or a Mermaid diagram

Access management

  • list_organization_access, modify_organization_access: users of an organization
  • list_workspace_access, modify_workspace_access: users of a workspace
  • list_document_access, modify_document_access: users of a document

Export

  • download_document_sqlite: download a document as SQLite
  • download_document_excel: download a table as Excel
  • download_table_csv: download a table as CSV

Attachments

  • list_attachments: list the attachments of a document
  • get_attachment_info: metadata of an attachment
  • download_attachment: download an attachment
  • upload_attachment: upload an attachment

Webhooks

  • list_webhooks, create_webhook, modify_webhook, delete_webhook: manage webhooks
  • clear_webhook_queue: empty the webhook queue

Examples

You normally just ask the assistant in plain language ("create a Projects table linked to Tasks"); it chooses the tools. The examples below show the corresponding tool calls and their arguments.

# Explore
await list_tables(doc_id="abc123")
await list_records(doc_id="abc123", table_id="Tasks", sort="-due_date", limit=10)

# Filter without SQL
await filter_sql_query(
    doc_id="abc123",
    table_id="Tasks",
    columns=["title", "status"],
    where_conditions={"status": "open"},
    order_by="title",
    limit=20
)

# Custom SQL (SELECT only)
await execute_sql_query(
    doc_id="abc123",
    sql_query="SELECT t.title, p.name FROM Tasks t JOIN Projects p ON t.project = p.id WHERE t.status = ?",
    parameters=["open"]
)

# Add and update records
await add_grist_records(doc_id="abc123", table_id="Tasks",
                        records=[{"title": "Write docs", "status": "open"}])
await update_grist_records(doc_id="abc123", table_id="Tasks",
                           records=[{"id": 1, "status": "done"}])

# Formula column
await create_column(doc_id="abc123", table_id="Orders", column_id="total",
                    column_type="Numeric", label="Total", formula="$price * $quantity")

# Two related tables in one call
await create_schema(
    doc_id="abc123",
    schema={
        "tables": {
            "Projects": {"columns": {"name": {"type": "Text", "label": "Name"}}},
            "Tasks": {"columns": {
                "title": "Text",
                "status": {"type": "Choice", "choices": ["open", "done"]},
                "project": {"type": "Ref", "target": "Projects",
                            "visible": "name", "reverse": "tasks"}
            }}
        },
        "data": {"Projects": [{"name": "Website"}]}
    }
)

# Export a table to Excel
await download_document_excel(doc_id="abc123", table_id="Tasks", header="label")

# Share a document
await modify_document_access(doc_id="abc123", user_email="someone@example.com",
                             access_level="editors")

In a schema, a reference column is written {"type": "Ref", "target": "Table", "visible": "column"} (or "Ref:Table"). "visible" is the column displayed in the cell; "reverse" adds the matching column in the target table, kept in sync by Grist. Re-running the same schema creates nothing twice: existing tables are left untouched.

Development

git clone https://github.com/nic01asFr/mcp-server-grist.git
cd mcp-server-grist
pip install -e ".[dev]"
pytest tests/

The tools reference is generated from the code: after changing a tool, run python scripts/generate_tools_reference.py. See CONTRIBUTING.md for the contribution and release process, and the CHANGELOG for version history.

For AI agents

Machine-readable descriptions, generated from the code: llms.txt, SKILL.md (instructions for an agent), fiche-capacites.json and commandes.json (capability sheet in the Widgets Grist format).

  • Project website: presentation and step-by-step setup (French and English)
  • Widgets Grist: widgets that turn a Grist document into a business application (map, planning, form, workload)
  • GristCoder: an MCP server to build widgets and pages directly in the document
  • Forum thread on the French-speaking Grist forum
  • Grist's official MCP server: available on getgrist.com (OAuth); this server works on any instance with an API key, including those where the official one is not enabled

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Grist MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-grist)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage