For developers
MCP, for AI assistants
An endpoint an AI assistant can hold a token for. Six tools, scoped to exactly one site.
https://app.lemonadehost.com/api/mcp
JSON-RPC over HTTP, authenticated with the same deploy token as the API:
Authorization: Bearer lm_…
Getting access
The simplest way is to let the assistant ask. Developers → AI assistant gives you one line to paste into Claude, ChatGPT or any chat that can run commands. The assistant runs lemonade login, shows you a code, and you approve it in your browser for one site. See Approve in your browser. A chat that cannot run commands can have a zip uploaded instead.
Or make a token on the Tokens tab and give it to the assistant by hand.
The tools
An assistant sees all six. Each one needs a permission on the token, and a call the token was not given is refused with a message naming the permission.
| Tool | Does | Needs |
|---|---|---|
list_sites | The site this token reaches, its address, status and permissions. | Read |
get_site_files | The live files, as text. | Read |
deploy_site | Publish files. Replaces everything. | Publish |
get_deploy_status | Recent releases, each with its id. | Read |
restore_release | Put one of those releases back. | Roll back to an earlier version |
trash_site | Take the site offline. Guarded - see below. | Move the site to the trash |
Read and publish come with every token. The other two are boxes you tick when you make the token.
Read before you replace
deploy_site replaces the whole site. An assistant asked to fix a typo in the footer, with no way to see the site first, will compose a deploy containing only the file it was thinking about and silently delete the other twelve.
get_site_files is what turns a replace into an edit. Read, change, send the whole set back. On a site built from one of our designs it refuses, the same as the download button does.
Undo
get_deploy_status lists recent releases and each carries an id beginning dp_. Hand one to restore_release and that release serves again, if the token can roll back. Releases stay restorable for 7 days.
Taking a site down
trash_site only works for a token made with "Move the site to the trash" ticked, and requires confirm to be the site's exact subdomain. The guard exists so that a vague instruction - "tidy up my sites" - cannot reach it: the assistant has to have looked at which site it is about to take offline.
Trashing is a soft delete. The site stops serving, stays restorable for 30 days from your dashboard, and its address is held so nobody else can take it.
Restoring is not an MCP tool and will not be: putting a site back decides whether it is paid or unpaid, and a token scoped to publishing files does not move billing.
trash_site is the last thing that token will ever be told - which is why it carries the link to the dashboard.What a token cannot do
Nothing outside its one site, and nothing inside it that you did not allow. No billing, no account, no other site. Any request with no token, the handshake and tool discovery included, is refused with 401.
There is no account-level token today, so an assistant cannot create a site - only publish to one you have already made and handed it a token for.