loading…
Search for a command to run...
loading…
Connects Claude Desktop to Grist spreadsheets, enabling users to browse documents, tables, and columns through natural language. It supports reading, writing, a
Connects Claude Desktop to Grist spreadsheets, enabling users to browse documents, tables, and columns through natural language. It supports reading, writing, and querying data using standard record operations or direct SQL queries.
MCP (Model Context Protocol) server that connects Claude Desktop to Grist spreadsheets. It dynamically discovers documents, tables, and columns, and lets you read, write, and query data using natural language.
git clone <repo-url>
cd grist-mcp-server
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
Copy the example file and fill in your credentials:
cp .env.example .env
| Variable | Required | Description |
|---|---|---|
GRIST_API_KEY |
Yes | API key from your Grist profile |
GRIST_BASE_URL |
Yes | Base URL of your Grist instance |
GRIST_DOC_ID |
No | Default document ID (saves typing) |
python server.py
MCP_TRANSPORT=streamable-http python server.py
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"grist": {
"command": "python",
"args": ["/absolute/path/to/server.py"],
"env": {
"GRIST_API_KEY": "your_api_key",
"GRIST_BASE_URL": "https://altitudedm.getgrist.com",
"GRIST_DOC_ID": "9PRy5Jf5ayS3dDL9iYRHmU"
}
}
}
}
{
"mcpServers": {
"grist": {
"url": "https://your-app.onrender.com/mcp"
}
}
}
Set environment variables on Render instead of in the config file.
render.yaml configuration.GRIST_API_KEY in the Render dashboard environment variables.The server will be available at https://your-app.onrender.com/mcp.
You: What documents do I have in Grist?
Claude: (calls list_documents) You have 3 documents: ...
You: Show me the tables in "Client Tracker"
Claude: (calls list_tables) The document has 4 tables: Clients, Projects, Invoices, Notes
You: What columns does the Clients table have?
Claude: (calls list_columns) Columns: name (Text), email (Text), status (Choice), ...
You: Show me the first 10 active clients
Claude: (calls get_records with filter={"status":["active"]}, limit=10)
You: How many invoices were created this month?
Claude: (calls query_sql with SQL: SELECT COUNT(*) FROM Invoices WHERE date >= '2025-01-01')
You: Add a new client: name=ACME Corp, status=active
Claude: (calls add_records) Created record with ID 42.
You: Mark client 42 as inactive
Claude: (calls update_records with id=42, fields={"status":"inactive"})
You: Delete client 99
Claude: (calls delete_records with record_ids=[99])
pip install pytest pytest-asyncio
pytest tests/ -v
grist-mcp-server/
├── server.py # MCP server entry point (8 tools)
├── grist_client.py # Async Grist API client
├── requirements.txt # Python dependencies
├── render.yaml # Render deployment config
├── .env.example # Environment variable template
├── .gitignore
├── tests/
│ └── test_grist_client.py
└── README.md
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"grist-mcp-server": {
"command": "npx",
"args": []
}
}
}