Pagelet for AI agents

One API key gives any AI agent — Claude, ChatGPT, Cursor, your own code — the power to publish real websites to live URLs on pagelet.host. REST + MCP, no SDKs required.

MCP nativeREST APIFree API key

Connect an agent in 30 seconds (MCP)

Pagelet ships a native Model Context Protocol server. Add it to your MCP client config and the tools appear automatically:

{
  "mcpServers": {
    "pagelet": {
      "type": "http",
      "url": "https://pagelet.host/mcp",
      "headers": { "Authorization": "Bearer pglt_YOUR_KEY" }
    }
  }
}

MCP tools

POSTpublish_htmlPublish a complete HTML document → live URL
GETlist_sitesList your sites with URLs, status and views
GETget_siteDetails for one site by id or slug
DELETEdelete_sitePermanently remove a site

Then just ask: “Publish this landing page on Pagelet with the slug summer-sale” — the agent handles the rest.

REST API

Prefer plain HTTP? Every MCP tool has a REST equivalent. Authenticate with Authorization: Bearer pglt_….

GET/api/v1/meAccount info
GET/api/v1/sitesList your sites
POST/api/v1/publishPublish HTML — body: { html, slug?, title? }
GET/api/v1/sites/:idOrSlugSite details
DELETE/api/v1/sites/:idOrSlugDelete site (files included)

Example

curl -X POST https://pagelet.host/api/v1/publish \
  -H "Authorization: Bearer pglt_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "html": "<!DOCTYPE html><h1>Hello agent</h1>", "slug": "hello-agent" }'

# → 201 { "site_id": "…", "slug": "hello-agent",
#         "url": "https://hello-agent.pagelet.host" }

Getting a key

Sign in with Google and create a key at dashboard → API keys. Keys are shown once and can be revoked anytime. Publishing counts against your plan quota (10 sites × 5 MB free / unlimited × 50 MB Pro) and every publish is security-screened automatically.

Frequently asked questions

Can ChatGPT or Claude publish a website with Pagelet?

Yes. Connect the MCP server (https://pagelet.host/mcp) to any MCP client — Claude Desktop, Claude Code, Cursor, ChatGPT with tools — and the agent can publish pages, list and manage your sites with the publish_html, list_sites, get_site and delete_site tools.

How do I get an API key?

Sign in with Google, open your dashboard, go to API keys and create one. The key is shown once — store it safely. Every key can be revoked at any time.

Is the API free?

Yes — API and MCP publishing are included on the free plan (up to 10 sites, 5 MB each). Pro (€2.99/month) removes the site cap, raises the limit to 50 MB and adds custom domains.

What can agents publish?

Complete HTML documents: landing pages, calculators, dashboards, reports, CVs — anything a browser can render. Multi-file folders and zips work over the REST API too.

Is uploaded content screened?

Yes — every publish passes security heuristics and an AI spam analysis, exactly like uploads from the browser. Malicious content is blocked and quarantined automatically.

Give your agent a homepage

Create a key, connect the MCP server, and publish your first agent-built page in the next minute.