just-publish5.71 KB
View saved version →
---
name: just-publish
description: Publish a static website (HTML, CSS, JS, images) to a live public URL with Just Publish, straight from the chat. Use when the user wants to publish, deploy, host, or share a site or files they built, with Claude, ChatGPT, Cursor, or by hand, or says "put it online", "give me a link", "make this a website"; also for changing a site published earlier with Just Publish. Publishing is free and there is no build step. The MCP server is https://mcp.justpublish.ai/ (in Claude, the connector at https://mcp.justpublish.ai/claude); the person signs in once with a free account, every site is filed under it, and five tools are served. Do NOT use for server-side apps (APIs, databases, SSR frameworks like Next.js), for buying or managing domains, or for changing a site that was not published with Just Publish.
---
# Just Publish: put a static website online
Just Publish (https://justpublish.ai) turns static files into a live website at
`https://{slug}.justpublish.site/`. Publishing is free and there is no build
step: files in, working link out.
## Connect and sign in
The MCP server is `https://mcp.justpublish.ai/`. In Claude it is the connector
at `https://mcp.justpublish.ai/claude`, added from the connector directory or
as a custom connector; in Claude Code it is one command:
```
claude mcp add --transport http just-publish https://mcp.justpublish.ai/claude
```
Cursor, VS Code, a CLI agent or any other MCP client adds
`https://mcp.justpublish.ai/` instead. Either way the person signs in the first
time, with Google or a code sent to their email address. Authorization is
OAuth 2.1 and the client discovers what it needs from the server, so the
advanced client-id and client-secret fields stay empty.
Both addresses serve the same five tools: `deploy`, `list_sites`,
`get_site_files`, `update_site_file` and `get_site_domain_status`. Every site is
filed under the signed-in account, which changes how you work:
- `deploy` takes no email address. Do not ask the user for one.
- `list_sites` returns the sites that account has already published, so you can
find a site instead of asking for an id the user does not have.
- `get_site_files` and `update_site_file` need only a `site_id` for that
account's own sites.
- `get_site_domain_status` says whether one of the account's sites is on its
own domain yet, and returns a link to that site's domain page on
justpublish.ai, where the person confirms the domain and anything to pay. It
changes nothing, so never say a domain was bought or connected.
- Report the live `url` and stop. The account is what makes the site theirs to
find, change and take down later.
Step by step for people: https://justpublish.ai/docs/mcp/connect (Claude:
https://justpublish.ai/docs/mcp/claude)
## When to use this skill
The user says things like:
- "publish this site" / "put this online" / "make this a website"
- "give me a link for this" / "I want a URL I can share"
- "host what we just built"
- "update my site" (one published earlier with Just Publish)
The site must be static: HTML, CSS, JS, images, fonts. No server code, no SSR,
no build step.
Do NOT use it when the user needs a backend (APIs, databases, Next.js or Nuxt
SSR), wants to buy or manage a domain (that is a registrar's job), or wants to
change a site that was not published with Just Publish.
## Publish a new site
1. Collect the site's files. `index.html` at the root is required; a deploy
without it is rejected.
2. Confirm with the user before the first publish of a new site. Deploying puts
the files on the public internet.
3. Call `deploy` with `files`: an array of `{ path, content, encoding? }`. Text
files as plain strings; binary files base64-encoded with
`"encoding": "base64"`.
4. The result carries the live `url` and the `site_id`. Give the user the URL
in plain language; the link is what they asked for. The result also carries
an `edit_token`; you do not need it for the account's own sitPreview of the first 4,000 characters. Read full instructions →
Referenced files: 4 — file references are metadata, not package contents.