AI & MCP
BetaHobby, Pro, ScaleDeploy scale-to-zero Streamable HTTP MCP servers with verified tool scopes
Scaffold Streamable HTTP MCP servers in Node, Go, or Python, lock down every tool behind gregale-mcp.json allowlists, scale to zero between agent sessions, and monitor readiness continuously.
Scaffold a Streamable HTTP MCP server and lock down tool allowlists
Remote Model Context Protocol servers sit idle between agent bursts yet need strict tool authorization and health verification before Claude, Cursor, Codex, or VS Code connect. Gregale treats MCP hosting as a first-class workload with official starters, protocol checks, and zero-idle billing.
# Create a Node, Go (--runtime go), or Python (--runtime python) MCP server
gregale mcp server init --path ./my-mcp
# gregale-mcp.json — unlisted tools are hidden and refused with 403 tool_access_denied
# {
# "auth": {
# "tool_scopes": { "lookup": [], "greet": [] }
# }
# }
Key capabilities
Official Node, Go & Python starters
Generate a working Streamable HTTP server at /mcp in seconds with sample tools, resources, prompts, health checks, and drain handlers wired.
Fail-closed tool, resource & prompt allowlists
Every exposed capability must be listed in gregale-mcp.json (tool_scopes, resource_scopes, prompt_scopes). Unlisted tools are hidden and rejected with 403 tool_access_denied.
Scale-to-zero between agent calls
Hosted MCP servers run in isolated Firecracker microVMs that park at $0 between sessions and wake on demand without idling GPUs or VM instances.
Protocol diagnostics & readiness checks
Each new deployment runs MCP verification before taking live traffic, paired with readiness monitoring and optional PostgreSQL-backed durable MCP Tasks (Preview).
Typical PaaS vs. Gregale
| Capability | Typical PaaS | Gregale |
|---|---|---|
| Idle MCP server billing | Fixed monthly container charge even between sessions | Parks to $0 idle between agent calls; wakes on /mcp requests |
| Per-tool allowlists & scoping | Hand-rolled auth middleware inside server code | Declarative gregale-mcp.json scope maps enforced per tool |
| Account management via MCP + guardrails | Direct destructive CLI tokens only | Plan -> Verify -> Approval -> Undo workflows for agent safety |
Deep-dive guides (3)
Where to host an MCP server
Gregale hosts remote MCP servers over Streamable HTTP, checks every new version as an MCP client before it takes traffic, supports OAuth with per-tool scopes, and parks idle servers. In beta on Hobby, Pro and Scale.
Hosting platforms with an MCP server that deploys, reads logs and rolls back
Gregale, Vercel and Dokploy ship official MCP servers whose tools let an AI agent deploy, read logs and roll back. Render, Railway, DigitalOcean, Heroku, Cloud Run and Netlify deploy over MCP but have no rollback tool, and Fly.io's hosted server has no deploy tool. Checked on November 26, 2026.
Best cloud platform for AI coding agents in 2026
What makes a cloud safe for Claude Code, Codex, Cursor and Gemini CLI: non-interactive JSON output, scoped agent keys, human approval on production mutations, cost previews, undo and automatic 5xx rollbacks, compared across Gregale, Vercel, Railway, Render, Fly.io and Cloud Run.
Related benchmarks & studies
Runnable starters & integrations (6)
Browse all templatesNode 22 · Streamable HTTP MCP
Remote MCP Server in Node.js
Stateless Streamable HTTP MCP server built on the official TypeScript SDK with external OAuth, per-tool scopes, SSE progress, and AGENTS.md.
Python 3.13 · Streamable HTTP MCP
Remote MCP Server in Python
Stateless Streamable HTTP MCP server in Python with PyJWT external OAuth, JSON Schema tool validation, resource subscriptions, and AGENTS.md.
Go 1.26 · Streamable HTTP MCP
Remote MCP Server in Go
Stateless Streamable HTTP MCP server using modelcontextprotocol/go-sdk with JWKS external OAuth, per-tool allowlists, and AGENTS.md.
Antigravity Plugin · Hosted MCP
Gregale Plugin for Antigravity
Connects Antigravity to https://api.gregale.dev/mcp with deploy and diagnose skills plus plain-Markdown operational rules.
Claude Code Plugin & Marketplace
Gregale Plugin for Claude Code
Claude Code plugin marketplace configuring https://api.gregale.dev/mcp, deploy/diagnose skills, and CLAUDE.md guardrails.
Cursor Plugin · Hosted MCP
Gregale Plugin for Cursor
Deploy, inspect logs, diagnose regressions, and roll back releases directly from Cursor over OAuth-scoped hosted MCP.
Documentation references
Questions
- Which MCP transport and runtimes does Gregale support?
Gregale hosts Streamable HTTP MCP servers at /mcp and provides official starters via gregale mcp server init for Node.js, Go (--runtime go), and Python (--runtime python).
- What happens if an MCP tool is registered in code but omitted from gregale-mcp.json?
The scope maps act as allowlists. Any tool missing from auth.tool_scopes (or resource_scopes / prompt_scopes) is hidden from callers and rejected with 403 tool_access_denied.
- Can coding agents also manage my Gregale apps safely over MCP?
Yes. Gregale exposes a hosted management MCP endpoint (https://api.gregale.dev/mcp) with OAuth, dry-run deploy diffs, canary verification, approval gates, and single-command undo.