# host-html MCP server

> Publish AI-generated HTML as shareable live links and update existing pages at the same URL.

- Repository: https://github.com/phanosh/host-html
- Page: https://hostedmcp.org/servers/phanosh/host-html
- Transport: stdio, remote
- Stars: 1
- License: MIT
- Latest version: 0.2.1

## Install

### Claude Code

```sh
claude mcp add --env HOSTHTML_API_KEY=<YOUR_HOSTHTML_API_KEY> host-html -- npx -y host-html-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "host-html": {
      "command": "npx",
      "args": [
        "-y",
        "host-html-mcp"
      ],
      "env": {
        "HOSTHTML_API_KEY": "<YOUR_HOSTHTML_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "host-html": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "host-html-mcp"
      ],
      "env": {
        "HOSTHTML_API_KEY": "<YOUR_HOSTHTML_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "host-html": {
      "command": "npx",
      "args": [
        "-y",
        "host-html-mcp"
      ],
      "env": {
        "HOSTHTML_API_KEY": "<YOUR_HOSTHTML_API_KEY>"
      }
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.host-html]
command = "npx"
args = ["-y", "host-html-mcp"]

[mcp_servers.host-html.env]
HOSTHTML_API_KEY = "<YOUR_HOSTHTML_API_KEY>"
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "host-html": {
      "command": "npx",
      "args": [
        "-y",
        "host-html-mcp"
      ],
      "env": {
        "HOSTHTML_API_KEY": "<YOUR_HOSTHTML_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `HOSTHTML_API_KEY` | yes | yes | Personal API key (hh_...) from host-html.com → Account → API keys |

## FAQ

### How do I publish HTML using host-html?

You can use the publish_html tool to turn HTML content into a live link.

### Can I update a page without changing the URL?

Yes, the update_page tool allows you to provide new HTML and keep the same link.

### Do I need an account to publish?

Yes, publishing requires a free, email-verified host-html account and a personal API key.
