Stacktree for AI agents.
Stacktree is the publish primitive for HTML emitted by AI agents. Wherever the agent runs, Claude Code, Codex, Cursor, Claude.ai, or raw MCP HTTP, it can call publish_html and hand you back a private link.
Which AI agents can publish HTML to Stacktree?
Any agent that speaks MCP — the Model Context Protocol. The stacktree-mcp npm package exposes twelve tool calls (publish, replace, read, gate, expire, list, delete, password, feedback toolbar, read feedback, resolve feedback, claim wallet) that show up in Claude Code, OpenAI Codex CLI, Cursor, Claude.ai custom connectors, and any MCP-compatible client. Stdio and streamable HTTP transports are both supported.
Every supported integration
- integration Publish HTML from n8n Install the n8n-nodes-stacktree community node and any n8n workflow can publish HTML to a private, unguessable URL. Update in place, gate, expire, and read viewer feedback. Works as an AI Agent tool.
- integration Deploy HTML from Claude Code: 4 ways, one command each Netlify, Vercel, Cloudflare Wrangler, or Stacktree over MCP: the exact command for each, what breaks in practice, and which one fits agent output. Tested.
- integration Stacktree for developers · MCP server, CLI and API The developer surface: add the MCP server and your agent publishes HTML to a private link. npx installer, curl-first API, source-available.
- integration Publish HTML from Claude Code Add Stacktree as an MCP server and Claude Code will publish the HTML it writes to a private, unguessable URL — or replace the previous one in place.
- integration Publish HTML from Codex: private link in one MCP call Wire Stacktree into Codex CLI as an MCP server. Codex emits HTML, calls publish_html, and hands you back a private, unguessable link. The private alternative to public ChatGPT Sites.
- integration Publish HTML from Cursor Add the Stacktree MCP server to Cursor and every HTML file your AI agent writes gets a private, unguessable URL you can share.
- integration Add Stacktree to Claude.ai as a custom connector Add Stacktree to Claude.ai as a custom MCP connector over HTTP with OAuth. Anywhere Claude writes HTML in a chat, it can hand you back a private link.
- protocol MCP server for publishing HTML A Model Context Protocol server that gives any MCP client twelve tool calls to publish, gate, replace, delete, and collect viewer feedback on HTML artifacts.
- integration Share HTML files in Slack as private links (Slack app) HTML files pasted into Slack render as unreadable code blocks. One click turns the file on any message into a private link. Installing needs no account.
- integration Agent skills for Stacktree: publish, migrate, pay Task-oriented skills for agents that ship HTML: publish to a private URL, migrate a site off a website builder, pay for hosting over x402. One command each.
What every integration shares
- Same twelve verbs. publish_html, update_site, get_site, set_password, set_expiry, set_email_gate, set_agentation, list_sites, delete_site, link_wallet, list_feedback, resolve_feedback.
- Same npm package.
stacktree-mcp— single source of truth. - Same auth model. Anonymous first publish (24 h),
stacktree loginfor persistence, OAuth 2.1 + DCR for hosted clients. - Same replace-in-place loop.
update_siteworks identically across every agent. - Same code you can run yourself. Stacktree is source-available — the whole stack (worker, MCP server, dashboard) deploys onto your own Cloudflare account, no lock-in. Self-host it.
How to pick the right install
- Claude Code, Codex, Cursor — pick the matching agent page above. Each has the one-line install.
- Claude.ai (web) — paste
https://api.stacktr.ee/mcpas a custom connector. - Slackbot — connect Stacktree in the Slack app's MCP settings, then ask Slackbot to publish in plain language. How it works.
- n8n workflows — install the
n8n-nodes-stacktreecommunity node and any workflow (or AI Agent node) gets publish, update, gates, and feedback as typed operations. How it works. - Anything else MCP-compatible — use the package via
npx -y stacktree-mcpover stdio, or hit the HTTP endpoint with OAuth. - In-browser agents (WebMCP) — the dashboard registers its site actions on
document.modelContextwhere the browser supports it, so an agent working alongside a signed-in human calls the same verbs without an API key. How and why.
Agents can pay for their own hosting
Most agents inherit an identity a human set up: the installer signs you in, or you drop in an API key. A fully autonomous agent has no human to do that. So Stacktree lets the agent pay for itself, with no person in the loop, two ways.
Pay per publish at the front-door. The simplest path: POST your HTML to agents.stacktr.ee/api/publish, get back a 402, pay $0.50, and the page publishes to a private link. No key, no account. It is multi-rail on one endpoint, so the agent pays with whatever it holds: x402 on Base or Solana, or MPP (the standard from Stripe and Tempo) on Tempo. Gas is covered, so the agent only signs.
Or buy a persistent key. For an agent that publishes repeatedly, /provision returns a 402; pay $1 over x402 or MPP and get a persistent stk_live_ key, then buy unlocks the same way. No wallet? One call to /pay/sessions returns a pay link plus a terminal QR, the human at the terminal pays by card in about two taps, and the agent continues mid-task.
Claim it later. The wallet that pays at the front-door is recorded with each page, so a human can claim those pages from the dashboard, or the agent can self-link them with the link_wallet MCP tool. Anonymous publishing stays free; paying is just how a headless agent earns durable, ownable hosting. We walked the whole loop, including the real on-chain payments, in An AI agent paid us $1 to provision itself and how agents pay us over MPP.
Frequent questions
Which AI agents can publish HTML to Stacktree? +
stacktree-mcp package works across all of them.What transports are supported? +
Do I need a different setup per agent? +
npx stacktree-install and pick any combination of Claude Code, Cursor, Codex, OpenCode, or Amp — it signs you in via browser, then writes the right config for each. Claude.ai is a one-URL paste into its connectors dialog instead.Will Stacktree support MCP server lists like the ChatGPT app directory? +
Can an agent pay for its own Stacktree identity? +
Sources and further reading
Pick your agent. Install in 60 seconds.
Same package across Claude Code, Codex, Cursor, and Claude.ai. Pick yours above.
Sign up free →