MCP overview and editions
CloudGrid has an MCP (Model Context Protocol) server so AI assistants can build
and plug apps for you. It exposes the grid actions as grid_* tools. Ask your
assistant to “put this on CloudGrid” (asking it to deploy or publish means the
same thing: plug) and it runs the tools and returns a live URL.
The npm package is @cloudgrid-io/mcp.
Two editions
Section titled “Two editions”The server comes in two editions from one codebase. The difference is only the identity model and which tools are available.
| Local (stdio) | Web (HTTP) | |
|---|---|---|
| Transport | stdio (a subprocess on your machine) | MCP Streamable HTTP, run by CloudGrid |
| Clients | Claude Code, Cursor, Claude Desktop | Claude, ChatGPT, and any HTTP MCP client |
| Tools | Full set (38), including the CLI-wrapping tools | The 15 shared tools |
| Identity | ~/.cloudgrid/credentials (shared with the CLI) |
An OAuth sign-in held by your AI tool, for up to 30 days |
| Runtimes | Plugs apps and agents from a project folder | Plugs single pages, and runtime apps from files in the conversation |
Local (stdio)
Section titled “Local (stdio)”The local edition runs as a subprocess and wraps the grid CLI for authenticated
operations, plus calls the API directly for plug, pickup, pull, and sign-in. It
reuses the CLI’s credentials, so no separate sign-in is needed; without them it
signs in with the grid_login tool. It has the full toolset, including
everything that needs a local machine: plugging a project folder, reading logs,
managing env and secrets.
npx -y @cloudgrid-io/mcpWeb (HTTP)
Section titled “Web (HTTP)”The web edition runs on CloudGrid at https://mcp.cloudgrid.io/mcp: nothing
to install, nothing runs on your machine. It carries no CLI, so it exposes the
15 shared tools: the 4 orientation tools (start, get-template, report,
note) plus plug, pickup, pull, collab, create-grid, visibility, check-deploy,
list-grids, get-app-source, hello, and delete.
Sign-in is OAuth in your AI tool, not a tool call: the AI tool opens CloudGrid
sign-in when a tool needs your account. grid_start, templates and a page’s source work signed out; creating
anything needs an account. grid_report and grid_note send something to
CloudGrid only when you ask.
It plugs a single self-contained HTML page as an
inspiration, and a runtime app from files
the AI tool passes inline with a cloudgrid.yaml. It cannot read a project
folder from your disk; for that, use the local edition or the grid CLI.
Which to choose
Section titled “Which to choose”- AI chat apps (Claude, ChatGPT): the web edition. Add the connector and sign in when asked.
- Coding tools (Claude Code, Cursor, VS Code, Codex, Gemini CLI): the CloudGrid
connector plus the
gridCLI, which plugs a project folder; or the local edition, which drives the CLI on your machine and has the full toolset.
See Connect a client for setup and the connect URL,
and the Tools reference for every grid_* tool.