Hostilo for AI apps & agents

Your AI agent
publishes the website
by itself.

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.

MCP: https://hostilo.app/mcp · API: Bearer hk_…
MCP connector · no API key

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.

Add to Claude Add to ChatGPT 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
https://hostilo.app/mcp
01 / add

Add the connector

Claude: open Hostilo in the connector directory and click Connect, or find it in Settings → Connectors → Browse connectors. ChatGPT: open Hostilo in the ChatGPT app directory and click Connect. Perplexity and other apps: add a custom MCP connector in their connector settings. Gemini on the web, where Google offers it: Settings → Connected apps → add a custom app. Paste the URL above.

02 / allow

Sign in and allow

Hostilo opens: sign in as usual (password, Google, 2FA) and approve the permissions. You can disconnect any time in Dashboard → API & tools → AI connections.

03 / ask

Just ask

“Publish this page on Hostilo as my-portfolio.” “Change the headline on my site.” “Undo the last change.” The app does it and returns the live link.

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.

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.

REST API · one key

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.
Three calls, live site

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.

Reference

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.

Works with

Works with the AI apps you already use

Claude (web, desktop, Claude Code) Perplexity Gemini (CLI, web) VS Code Cursor Windsurf ChatGPT AutoGPT & custom agents

Hand your agent the keys

Generate a key in the dashboard, paste the prompt, and let your agent ship. Free to start — no card.

✓ Copied to clipboard