Grist MCP for local AI agent / cli (Kilo code)

Hello, is there any successful experience connecting a Self-hosted Grist MCP to a local agent on a PC?
I use Kilo Code (VS and CLI)

    "Grist": {
      "type": "remote",
      "url": "https://grist.site/api/mcp",
      "headers": {
        "Authorization": "Bearer token"
      },
      "enabled": true

I see a successful connection, but the agent does not see the grist tools and cannot interact with the mcp.

GRIST_MCP_ENABLED: true

OAuth app:
I can’t connect with it enabled GRIST_ENABLE_OIDC_SERVER: true
Because it requires inclusion REDIS_URL="your Redis url"

If I turn on Redis, the Grist container crashes into a cyclic reboot when the container is restarted.

Container log

info: RestartShell: starting
info: RestartShell: listening on port 8484
info: RestartShell: spawning child
Welcome to Grist.
Logging at level "info" (set GRIST_LOG_LEVEL to change)
info: Setting up database...
info: Database setup complete.
info: == Grist version is 1.7.21 (commit unknown)
warn: did not find an appropriately named example workspace in deployment
error: PubSubManager: failed to subscribe to latestVersionAvailable: ReplyError: NOPERM No permissions to access a channel
error: UNHANDLED ERROR unhandledRejection (0): ReplyError: NOPERM No permissions to access a channel
at parseError (/grist/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/grist/node_modules/redis-parser/lib/parser.js:302:14) {
command: { name: 'subscribe', args: [ 'db-2-latestVersionAvailable' ] }
}
info: Server grist[20] cleaning up
info: UploadSet: cleaning up all 0 uploads in set
info: Server grist[20] exiting with code 1
error: RestartShell: child failed to start: Error: child exited before ready code=1 signal=null
at /grist/_build/app/server/lib/RestartShell.js:320:59
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
error: Error: RestartShell: initial spawn failed: Error: child exited before ready code=1 signal=null
at RestartShell.run (/grist/_build/app/server/lib/RestartShell.js:135:19)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async RestartShell.start (/grist/_build/app/server/lib/RestartShell.js:106:9)
at async runRestartShell (/grist/_build/app/server/lib/RestartShell.js:421:5)

At the moment, I have decided that the inclusion of Redis is mandatory.

Hi @BiBo, you shouldn’t need Redis or Oauth, GRIST_MCP_ENABLED=true should suffice if you are using api keys to connect. I tried your setup with Kilo CLI and it worked fine for me. Anything useful in the logs?

The Redis problem sounds like what happens if you don’t have rights in Redis to publish/subscribe, which Grist relies on.

I can confirm that both the MCP and the API worked just fine as interfaces for my OpenCode client.

Thank you all. I tried opencode desktop instead of Kilo, everything worked, kilo VS does not work on my PC.

Glad to hear OpenCode works. Since paul-grist reported Kilo CLI working with the same API-key setup, I’d try the identical MCP JSON in Kilo CLI before ruling out Kilo; if CLI sees the tools but VS doesn’t, the VS extension is likely not loading or passing the remote MCP headers the same way. Checking the extension’s MCP output/log should show whether it’s a config-path or header issue, and Redis shouldn’t be needed for this.