Why host the HTML Claude generates
Code Claude writes stays inside the conversation. To share a page with other people on the open web, it has to be hosted somewhere with an address. Hosting also lets Claude update the same page later without the link changing.
Option 1: paste the HTML
Ask Claude for a complete index.html with inline CSS and JavaScript. In the dashboard click New site, paste the code, claim a free name and publish. The dashboard also has an Instructions for Claude button that copies a prompt telling Claude exactly which format works.
Option 2: connect Claude with the MCP connector
Create an account token in the dashboard under Account and tokens. You get a connector URL for Claude.ai and Claude Desktop, and a single command for Claude Code:
claude mcp add --transport http hostedwebpage "https://www.hostedwebpage.com/api/mcp/<your-token>"
- list_sites and get_site to see what exists.
- create_site and update_site to publish and change pages.
- check_subdomain to test whether a free name is available.
- put_files, get_file, list_files and delete_file for CSS, JavaScript and images.
- list_versions and restore_version to go back to an earlier version.
- delete_site, which needs an explicit confirmation.
Then ask: Publish this page on HostedWebPage as yourname. Claude checks that the name is free, creates the site and replies with the link. The connector gives Claude these tools:
Option 3: use the REST API
curl -X POST https://www.hostedwebpage.com/api/sites \
-H "Authorization: Bearer hha_your_token" \
-H "Content-Type: application/json" \
-d '{"name":"Portfolio","subdomain":"jo","html":"<!doctype html><title>Jo</title><h1>Jo</h1>"}'The response contains the site's url. You can also create a token for a single site, for an agent that should only touch that one page.
Pages that remember data
Each site has a JSON document that the page reads at _hh/data and can write back with a PUT request. Claude can build polls, trackers and small dashboards that keep their state without any backend.
Keep your token safe
An account token controls all your sites. Treat it like a password and revoke it from the dashboard if it leaks. A revoked token stops working immediately.