# Share HTML

Shares self-contained HTML files and prototypes as sandboxed web previews. It helps when you need a quick shareable link without deploying a dedicated site.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6
- Author: lifeodyssey
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lifeodyssey/share-html
- Updated: 2026-09-25
- HTML: https://affpapa.org/en/nevibecode/mcp/share-html

## What it does

The server sends single HTML documents to a remote service running on Cloudflare Workers. Uploads stay accessible anonymously for 365 days. Before rendering the file, an integrated scanner reviews the markup for suspicious code patterns.

Files can be shared as unlisted links or secured with an `accessKey`. For protected shares, the 32-byte key lives inside the URL hash `#key=` so browser requests never expose it directly to the host. Any attempt to reach a private render without this secret yields a 401 response.

The system produces two entry points: a wrapper page at `/s/:slug` with risk context and an isolated iframe, plus a direct render at `/v/:slug/`. Anonymous shares also return a `claimToken` to migrate ownership to an authenticated Supabase account later.

## Requirements
- Remote server: `https://share-html.zhenjiazhou0127.workers.dev/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http share-html https://share-html.zhenjiazhou0127.workers.dev/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add share-html --url https://share-html.zhenjiazhou0127.workers.dev/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "share-html": {
            "url": "https://share-html.zhenjiazhou0127.workers.dev/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "share-html": {
            "type": "http",
            "url": "https://share-html.zhenjiazhou0127.workers.dev/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http share-html https://share-html.zhenjiazhou0127.workers.dev/mcp
```

## When to use it
- share an interactive UI mockup without hosting setup
- generate a protected preview link guarded by an access key
- distribute an exported HTML dashboard to teammates
- host a temporary sandbox for single-file web prototypes

## Example prompts
- Upload mockup.html via Share HTML and generate a private link
- Create an unlisted public preview link for index.html
- Share invoice.html and give me both the wrapper and direct preview links

## Similar
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74569
- [tldraw](https://affpapa.org/en/nevibecode/mcp/tldraw.md) — MCP server · ★ 51104
- [Figma-Context-MCP](https://affpapa.org/en/nevibecode/mcp/figma-context-mcp.md) — MCP server · ★ 16073
- [mcp-server-chart](https://affpapa.org/en/nevibecode/mcp/mcp-server-chart.md) — MCP server · ★ 4406
- [Dembrandt](https://affpapa.org/en/nevibecode/mcp/dembrandt.md) — MCP server · ★ 3851
- [RevoGrid DataGrid MCP Pro](https://affpapa.org/en/nevibecode/mcp/revogrid-datagrid-mcp-pro.md) — MCP server · ★ 3451

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
