
nic01asfr/mcp-server-grist 是从 https://github.com/nic01asfr/mcp-server-grist. 导入的 MCP 服务器候选
概览
nic01asfr/mcp-server-grist 是从 https://github.com/nic01asfr/mcp-server-grist. 导入的 MCP 服务器候选
概述(AI 翻译)
Un serveur MCP (Model Context Protocol) pour interagir avec l’API Grist.Ce serveur permet d’accéder et de manipuler les données Grist directement depuis des modèles de langage comme Claude.
项目结构
预言
- Python 3.8+
- Une clé API Grist valide
- Les package s Python suivants :
fastmcp,httpx,pydantic,python-dotenv
Utilisation à la volée
通过 uvx(recommandé)
En utilisant uvx, l’environnement et le téléchargement des paquets se fait à la volée au moment de l’éxécution
Utilisation avec votre Assitant IA favori qui supporte le protocole MCP
La configuration en json est :
安装
通过皮普
Après l’installation, vous pouvez exécuter le serveur avec :
Utilisation avec Claude Desktop
Pour utiliser ce serveur MCP avec Claude Desktop, ajoutez la configuration suivante à votre fichier mcp_servers.json :
Remplacez chemin/vers/npm-wrapper/bin/start.js par le chemin absolu vers le script start.js du wrapper Node.js inclus dans ce package.
Installation en mode développement
Pour contribuer ou personnaliser le serveur :
通过Docker
Pour un déploiement rapide avec Docker :
通过 Docker Compose
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Grist MCP Server
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
| Variable | Required | Description |
|---|---|---|
GRIST_API_KEY |
yes | Your Grist API key |
GRIST_API_URL |
no | API URL of your Grist instance, e.g. https://docs.getgrist.com/api (default) or https://grist.example.org/api |
GRIST_API_HOST |
no | Older name for the same setting, used when GRIST_API_URL is not set |
LOG_LEVEL |
no | DEBUG, 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
| Option | Default | Description |
|---|---|---|
--transport |
stdio |
stdio, streamable-http, or sse (deprecated) |
--host |
127.0.0.1 |
Interface for HTTP transports |
--port |
8000 |
Port for HTTP transports |
--path |
/mcp |
Endpoint for streamable-http |
安装
uvx mcp-server-grist配置
{
"mcpServers": {
"grist": {
"command": "uvx",
"args": ["mcp-server-grist"],
"env": {
"GRIST_API_KEY": "your_grist_api_key",
"GRIST_API_URL": "https://docs.getgrist.com/api"
}
}
}
}