# Publish HTML from Cursor · Stacktree

Source: https://stacktr.ee/cursor

[Skip to content](#main) PFrom Product Hunt? Your first pages are free, no card. Code `PRODUCTHUNT` takes 50% off your first month of Studio.[Start free &rarr;](https://app.stacktr.ee/?join=1&from=producthunt)

&times;   A Stacktree customer sent you. Your first month is 50% off on any plan, taken off at checkout. [Start free &rarr;](https://app.stacktr.ee/?join=1&from=referral)

 &times;    [Stacktree](/)[Developers](/developers)[Agents](/agents)[Docs](/docs)[Use cases](/use-cases)[Pricing](/pricing)[Blog](/blog)[Dashboard](https://app.stacktr.ee)[Sign in →](https://app.stacktr.ee)      By [ Steve Smith ](/about) · Founder, Stacktree  ·  Last updated October 13, 2026          for Cursor

#  Publish HTML from Cursor in one click.

   Add the Stacktree plugin from cursor.directory, or run npx stacktree-install, and every HTML file the agent writes can be published to a private, unguessable URL. Replace-in-place via update_site means the same URL survives every revision.

  [ Get started free ](https://app.stacktr.ee/?join=1&from=seo_cursor)   install npx stacktree-install
Copy
      No card · 3 pages free · about a minute

##  How do you publish HTML from Cursor in 2026?

Add the Stacktree plugin from [cursor.directory](https://cursor.directory/plugins/stacktree) (or run `npx stacktree-install` and pick Cursor), then ask the agent to publish any HTML file. Stacktree returns an unguessable URL you can password-protect, email-gate, expire, or replace in place. Sites belong to your account from the first publish.

## Add the plugin from cursor.directory

 Stacktree is listed on [cursor.directory](https://cursor.directory/plugins/stacktree), Cursor's plugin directory. Open the listing and add the `stacktree` MCP server to Cursor in one click. It points Cursor at the hosted server, `https://api.stacktr.ee/mcp`, and the first time a Stacktree tool runs, Cursor opens your browser so you can sign in. There is no key to paste. The listing also has five skills that pick the right gate, expiry and link for the job: publish a page, hand a deliverable to a client, publish a run report, refresh a daily brief, and run a status page.

## Or install from the terminal

 Run `npx stacktree-install` in your terminal. It opens your browser, signs you in to stacktr.ee, and writes the `stacktree` entry into the Cursor `mcp.json` you pick — per-project at `.cursor/mcp.json`, or per-user at `~/.cursor/mcp.json`. Restart Cursor to pick up the new server.

## What the installer writes (for the curious)

 If you'd rather edit `mcp.json` by hand, the entry the installer adds looks like:

```
`{
  "mcpServers": {
    "stacktree": {
      "command": "npx",
      "args": ["-y", "stacktree-mcp"],
      "env": { "STACKTREE_API_KEY": "stk_live_…" }
    }
  }
}`
```

 Generate the key from [app.stacktr.ee/api-keys](https://app.stacktr.ee/api-keys) if you go this route.

## What the agent gets

 Forty-nine tool calls become available to the Cursor agent: `publish_html`, `update_site`, `delete_site`, `restore_site`, `claim_site`, `set_password`, `set_expiry`, `create_share_link`, `list_share_links`, `revoke_share_link`, `set_client_feedback`, `set_email_gate`, `list_sites`, `get_me`, `list_client_spaces`, `set_client`, `create_client_space`, `update_client_space`, `delete_client_space`, `get_design_guide`, `get_site`, `get_content`, `get_passcode`, `get_activity`, `list_versions`, `restore_version`, `list_feedback`, `resolve_feedback`, `link_wallet`, `whos_it_for`, `unopened_pages`, `get_revision_brief`, `publish_revision`, `resolve_comments`, `request_approval`, `get_approval_status`, `list_responses`, `resolve_addressed_notes`, `open_html_file`, `stacktree_pages`, `publish_card_status`, `publish_card_open`, `publish_card_send`, `apply_suggested_edits`, `report_missing_feature`, `whats_new`, `add_custom_domain`, `verify_custom_domain`, `list_custom_domains`. The agent uses them like any other MCP tool — Cursor decides when to call them based on the prompt.

## Typical flow

  - Cursor generates a single-file HTML report.
 - You: "publish that as a private Stacktree, gate it to @yourco.com, expire in 7 days."
 - Cursor calls publish_html, then set_email_gate, then set_expiry. Three tool calls, one operation in your head.
 - You paste the URL into Slack. Anyone with a verified @yourco.com email opens it via magic link.

## When iterating

 If you ask Cursor to revise the same artifact, tell it to "update the same Stacktree" — it'll call `update_site` with the existing slug. The URL doesn't change; the content does. Anyone who already opened the link sees the new version on refresh.

##
Set up Cursor in one line

Paste this into Cursor. It fetches the setup instructions, installs Stacktree,
        checks the connection, and learns the parts agents usually get wrong: replacing a
        page in place so a link you already sent keeps working, reading the real expiry
        instead of promising permanence, and filing work under the client it belongs to.

```
`Fetch and follow the setup instructions at https://stacktr.ee/prompt.md`
```

Works in any agent that can fetch a URL. Nothing to install first, and
[the instructions](/prompt.md)
are plain Markdown you can read before you run them.

FAQ

## Frequent questions

     How do I add Stacktree to Cursor? +  Add the plugin from [cursor.directory](https://cursor.directory/plugins/stacktree). One click adds the hosted Stacktree MCP server, and Cursor opens your browser to sign in the first time a Stacktree tool runs. Or run `npx stacktree-install` and pick Cursor when prompted. It signs you in to stacktr.ee in your browser, then writes a `stacktree` entry to your Cursor `mcp.json` (per-project `.cursor/mcp.json` or per-user `~/.cursor/mcp.json`, your choice during install). Restart Cursor and the tool calls become available.   Does Cursor support stdio MCP? +  Yes — Cursor implements MCP over stdio, which is exactly what `stacktree-mcp` defaults to. No HTTP wiring required.   Can the Cursor agent replace a previous publish? +  Yes. Tell it to "update the same site" and it calls `update_site`. The URL stays stable across iterations, so any link your team has bookmarked still shows the latest version.   Do I need a Stacktree account to start? +  No. The first publish is anonymous and lives 24 hours. Run `npx stacktree-install` when you want pages in your account: it signs you in through your browser and writes the key into Cursor’s MCP config. Signed-in pages last 7 days on the free plan, or once someone else opens one, 30 days after their latest visit, up to 90 days in total. On a paid plan they stay up until you take them down.   Is this Cursor-specific? +  No. The same `stacktree-mcp` package works in Claude Code, Codex CLI, Claude.ai connectors, and any MCP-compatible client. Cursor just needs the standard mcp.json entry.
Keep reading

## Related guides

   -  [ Have your agent publish its own run report as a link End every agent run with a link, not a wall of terminal text: the agent renders an HTML run report, calls publish_html. ](/workflows/agent-publishes-its-own-report)
-  [ Publish from Claude Code Same MCP server, wired into Claude Code instead. ](/claude-code)
-  [ Publish from Codex OpenAI Codex CLI integration. ](/codex)
-  [ The MCP publish tool Every verb the server exposes, end to end. ](/mcp-publish-html)
-  [ Agent-loop hosting Why update_site is the loop primitive. ](/agent-loop-hosting)

References

## Sources and further reading

   -  [ cursor.directory: the Stacktree plugin ↗ The listing in Cursor's plugin directory: the MCP server and five skills. ](https://cursor.directory/plugins/stacktree)
-  [ Cursor — MCP integration docs ↗ Official Cursor docs for adding MCP servers via mcp.json. ](https://docs.cursor.com/context/model-context-protocol)
-  [ Model Context Protocol — spec ↗ The open standard Cursor uses to talk to MCP servers. ](https://modelcontextprotocol.io/specification/2025-11-25)
-  [ npm — stacktree-mcp ↗ The package the mcp.json entry installs. ](https://www.npmjs.com/package/stacktree-mcp)

##  Add Stacktree to Cursor.

 One click from cursor.directory, or one command. The next time Cursor writes HTML, you get a private link.

 [ Sign up free → ](https://app.stacktr.ee/?join=1&from=cta_cursor)   install npx stacktree-install
Copy
       Private hosting for the HTML your agents make.

[](https://betalist.com/startups/stacktree?utm_campaign=badge-stacktree&utm_medium=badge&utm_source=badge-featured)[Featured on](https://devhunt.org/tool/stacktree)[](https://buildlist.io)[Get started free](https://app.stacktr.ee/?join=1)

## Product

- [Page video](/page-video)
- [Ask this page](/ask-this-page)
- [Client spaces](/client-spaces)
- [Templates](/templates)
- [Example deliverables](/examples)
- [Custom domains](/custom-domains)
- [Client feedback](/client-feedback-loop)
- [One-time links](/one-time-view-links)
- [See how pages get read](/page-engagement)
- [Made with Stacktree](/made-with)
- [Security](/security)
- [Watch the demo](/demo)

## Agents

- [All integrations](/agents)
- [Claude Code](/claude-code)
- [OpenAI Codex](/codex)
- [Cursor](/cursor)
- [Claude.ai connector](/claude-ai-connector)
- [Claude Cowork](/what-is-claude-cowork)
- [Meta Muse](/muse)
- [MCP server](/mcp-publish-html)
- [Deploy from Claude Code](/deploy-html-from-claude-code)
- [Skills](/skills)
- [Slack app](/slack)
- [n8n node](/n8n)
- [Agent payments (x402)](/x402)

## Alternatives

- [All comparisons](/alternatives)
- [Head-to-head comparisons](/compare)
- [Tiiny Host](/tiiny-host-alternative)
- [GitHub Pages (private)](/github-pages-private-alternative)
- [Vercel](/vercel-alternative-for-agents)
- [ngrok](/ngrok-alternative-for-html)
- [Display.dev](/display-dev-alternative)
- [Static.app](/static-app-alternative)
- [OpenAI Codex Sites](/openai-codex-sites-alternative)
- [here.now](/here-now-alternative)
- [Shippage](/shippage-ai-alternative)
- [Best private hosting](/best-private-html-hosting)

## Use cases

- [All use cases](/use-cases)
- [Share with clients](/share-with-clients)
- [Send a file to a client](/share-html-file-with-client)
- [Share Claude artifacts](/share-claude-artifacts)
- [Share Jupyter notebooks](/share-jupyter-notebook-html)
- [Host Storybook privately](/host-storybook-privately)
- [Architecture diagrams](/share-architecture-diagrams)
- [AI-generated reports](/host-ai-reports)
- [Internal HTML tools](/internal-tool-hosting)
- [Private HTML hosting](/private-html-hosting)
- [Vibe-coded page hosting](/vibe-coding-hosting)
- [Leave a website builder](/website-builder-migration)

## Learn

- [Blog](/blog)
- [Glossary](/glossary)
- [FAQ](/faq)
- [Where AI output should live](/where-ai-output-lives)
- [Agent-loop hosting](/agent-loop-hosting)
- [Why agents need a publish primitive](/blog/why-agents-need-a-publish-primitive)
- [MCP servers explained](/blog/mcp-servers-explained-for-developers)
- [What changed in the 2026-07 MCP spec](/blog/mcp-2026-spec-changes)
- [Sites in Codex explained](/blog/sites-in-codex-explained)
- [Private-by-default hosting](/blog/private-by-default-html-hosting)
- [An agent paid us $1 (x402)](/blog/agent-paid-to-provision-itself)
- [When a loop hits a paywall](/blog/loop-engineering-paywall)
- [Pricing](/pricing)
- [Self-host (new)](/self-host)
- [Changelog](/changelog)
- [Docs](https://stacktr.ee/docs)
- [About](/about)
© 2026 Stacktree · stacktr.ee

[Privacy](/privacy)[Terms](/terms)[Security](/security)[Dashboard](https://app.stacktr.ee)[npm](https://www.npmjs.com/package/stacktree-mcp)[Sitemap](/sitemap.xml)[llms.txt](/llms.txt)[API spec](/openapi.json)

---
Full markdown summary of the Stacktree marketing surface: https://stacktr.ee/llms-full.txt
