Hostilo
Publish websites straight from Claude, ChatGPT or Gemini: create, update and restore sites at yourname.hostilo.page, upload a ZIP, connect a custom domain. Remote server, OAuth 2.1, 14 tools.
Hosted MCP Server
npx add-mcp 'https://hostilo.app/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
Your AI agentpublishes the websiteby itself.
Hostilo is the publishing layer for AI: your assistant writes the site, Hostilo puts it online. Connect Hostilo to Claude, ChatGPT, Perplexity or Cursor in one minute — no key to copy — and just say “publish this page”. Building your own agent? Give it one API key instead.
Connect Hostilo to your AI app
Hostilo is a remote MCP server. Add it once as a connector, sign in to Hostilo, choose what the app may do — then publish and edit your sites straight from the chat.
Hostilo is listed in Claude's connector directory and in the ChatGPT app directory: open it, click Connect and sign in. Other apps: use the URL below.
Connector URL
READ
list_sites · get_site
See your sites, their live URLs and current HTML.
WRITE
create_site · update_site
Create a new name.hostilo.page site or publish new HTML. Every publish keeps the previous version.
TPL
list_templates · create_site + template
Start from a ready-made design (café menu, plumber, electrician, hair salon, accountant…) with the client’s name, phone and colour filled in. Browse them at hostilo.app/templates.
FILES
publish_files
Publish a multi-file site straight from the chat: index.html plus CSS, JS, images and fonts in one call. Files land in assets/ and links in index.html are fixed automatically.
ZIP
import_zip
Publish a whole multi-file project from a ZIP (base64 or a public link): index.html becomes the page, everything else goes to assets/ with folders kept and paths fixed. Try dry_run first.
STATS
get_site_stats
Page views and visitors per day. On PRO also countries, traffic sources, devices and top pages for up to 365 days.
UNDO
list_versions · restore_version
Browse the last 10 versions of a site and roll back in one step.
DOMAIN
connect_domain · check_domain
PRO: connect your own domain to a site. The AI shows the DNS records in your provider's field names, checks them and the domain goes live with HTTPS. A working domain is never changed from the chat.
Developer tools
# Gemini CLI: extension (server + usage notes), then sign in with /mcp auth hostilo gemini extensions install https://github.com/hostilo/hostilo-mcp # Claude Code claude mcp add --transport http hostilo https://hostilo.app/mcp # Cursor / Windsurf / VS Code — mcp.json { "mcpServers": { "hostilo": { "url": "https://hostilo.app/mcp" } } }
OAuth 2.1 with PKCE, per-permission consent, tokens you can revoke instantly. The app never sees your password.
Or give your own agent an API key
For custom agents and scripts: generate a hk_ key in the dashboard and paste this into .cursorrules or the system prompt.
.cursorrules
# Paste into.cursorrules or your agent's system prompt You can publish live websites on Hostilo via REST API. Base URL: https://hostilo.app/api.php Auth header: "Authorization: Bearer hk_YOUR_KEY" # Actions (JSON in, JSON out, 60 req/min) 1. GET?action=list_sites 2. POST?action=create_site body {"site_name":"my-page"} 3. POST?action=update_site body {"site_id":N,"html":"..."} # Workflow list_sites -> create_site (if new) -> update_site -> return the url. HTML: single-file (inline CSS+JS), mobile-first, no build step. Ensure "html" is valid JSON-escaped; on JSON error, re-encode and retry.
How an agent ships a page
The same REST endpoints your agent already knows how to call. No SDK, no wrapper to install.
01 / list
Check what exists
GET list_sites returns the account's sites, so the agent avoids duplicate names.
02 / create
Claim a subdomain
POST create_site with a kebab-case name. Back comes a site_id and the live url.
03 / publish
Deploy the HTML
POST update_site writes the agent's HTML as index.html. The URL is live immediately.
The whole API
Ten actions on /api.php (or /api/v1/<action>), the same as the MCP connector. Full description in OpenAPI 3.1: openapi.json, ready for Make, n8n, Zapier and GPT Actions (guide).
GET
?action=list_sites
Returns every site on the account as JSON.
POST
?action=create_site
Body {"site_name":"name"} — lowercase, digits, hyphens, 3–30 chars, no domain. Returns site_id and url.
POST
?action=update_site
Body {"site_id":N,"html":"..."} — publishes the HTML. Ownership verified against the key.
POST
?action=import_zip&site_id=N
Body: the ZIP itself (curl --data-binary @site.zip -H "Content-Type: application/zip"), a multipart field zip, or JSON with zip_url / zip_base64. index.html is published, other files land in assets/ with folders kept. dry_run=1 previews, clear_assets=1 empties assets/ first. Up to 20 MB, 300 files.
POST
?action=publish_files
Body {"site_id":N,"files":[{"path":"index.html","content":"..."},{"path":"img/logo.png","content":"<base64>","encoding":"base64"}]} — several files in one call, no ZIP needed. index.html is published, the rest goes to assets/ with links fixed. dry_run, clear_assets as above.
GET
?action=site_stats&site_id=N&days=30
Page views and visitors; PRO adds countries, sources, devices and top pages for 30, 90 or 365 days.
GET
?action=get_site&site_id=N
The current HTML of a site (whole page, up to 5 MB), its URL and size.
GET
?action=list_versions&site_id=N
Saved previous versions, newest first, with version_id.
POST
?action=restore_version
Body {"site_id":N,"version_id":"..."} — restores a version; the current one goes to history, so it can be undone.
GET
?action=list_templates&lang=en
Ready-made site designs with variants and fields; use them in create_site with template.
POST
?action=connect_domain
Body {"site_id":N,"domain":"www.example.com"} (PRO): connects your domain and returns the DNS records to set.
GET
?action=check_domain&site_id=N
Checks the DNS records and activates the domain when they are correct (once per 15 seconds).