MCP interface
Connect your AI coding agent (Claude Code, Claude Desktop, Cursor) to nanopage. Your agent generates the site using its own tokens — nanopage validates, stores, and hosts it on a nanopage.site subdomain.
New to it? Read the MCP server overview →
Add the endpoint
Point Claude Code, Claude Desktop, or Cursor at the server URL using the snippets below.
Approve access
Your client opens the browser: sign in to nanopage and approve. No token to copy — CI and scripts can still use a personal access token.
Publish sites
Ask your agent to build and publish. Your site goes live at {slug}.nanopage.site in seconds.
https://api.nanopage.site/mcpLoading your tokens…
Sign-in happens in your browser
Nanopage speaks standard MCP OAuth: add the endpoint URL and your client discovers the rest — it registers itself, opens your browser to sign in, and asks you to approve access. Nothing to paste. Personal access tokens (above) remain the right tool for CI, scripts, and clients that cannot open a browser — see the Token (CI / scripts) tab.
Adds the server to your user-level Claude Code config. On first use Claude Code opens your browser to sign in to nanopage and approve access — no token to paste.
claude mcp add --transport http nanopage https://api.nanopage.site/mcp Restart the client after adding it. Verify with /mcp inside Claude Code — you should see nanopage listed as connected.
Tools
publish_websitewriteCreate a new nanopage site from a file bundle (index.html + assets + images).
publish_versionwriteAdd a new version to an existing site. Auto-promotes to current unless promote:false.
create_uploadwriteUpload URLs for images and other binaries, so the bytes never have to ride inside a tool call.
list_websitesreadList every website in your account.
get_websitereadFull details for one website: current version, past versions, files.
list_versionsreadAll versions of a website, newest first.
get_job_statusreadLook up a job. Publish jobs land ready immediately.
suggest_slugreadCheck slug validity + availability and get a fallback suggestion.
Resources
nanopage://spec/authoring-guide.mdThe authoring spec: file layout, hard rules, size limits. Your agent should read this before generating.
nanopage://websites/{websiteId}/versions/{versionId}/{path}Read a specific file from a stored version.
Prompts
nanopage_publish_siteBootstraps a nanopage-publishable site from a topic. Inlines the spec so the model sees the constraints before it generates.
Rules your agent must follow
Nanopage hosts static sites. The following are rejected at publish time:
- • External
<script src>,<link href>, or fonts (no CDNs — bundle everything inline). - •
<iframe>,<object>, or<embed>. - •
javascript:URLs, service workers, off-site meta-refresh redirects. - • Forms submitting to external hosts.
- • Anything expecting a backend (no server APIs, WebSockets, or databases).
Allowed layout: index.html + up to 14 more {slug}.html, assets/site.css, assets/{slug}.js, images/, files/, videos/. Limits: 50 MB per file, 1 GB per site, no file-count limit.
Dynamic content: add collections.json + templates/{collection}/list.html (optionally item.html, templates/pages/{page}.html) and Nanopage creates the collections, seeds them, and renders the pages — blog, news, products, events, galleries, contact forms — which the owner then edits in the editor without a republish. The spec resource documents the manifest and template language.
