AI Agents & MCP Server
Connect your own AI agent (Antigravity, Claude Code, Cursor, Windsurf, or Cline) to chat with Sitefire's AI designer, preview drafts, publish changes, and configure custom domains automatically.
editSite (also aliased as askSitefire), waits for Sitefire's built-in designer to
apply changes matching your site's DESIGN.md, returns a preview URL, and runs
publishSite once you approve.
Quick Setup
Generate a Sitefire API Key
Open Account Settings, scroll to API Keys & MCP Access, and
create a new key (format: sf_key_...). Copy it right away — keys are masked after creation.
Add Sitefire's Hosted MCP Server
Point your MCP-compatible client to https://sitefire.app/mcp using either an
Authorization: Bearer <YOUR_API_KEY> header (recommended) or the query URL
https://sitefire.app/mcp?token=<YOUR_API_KEY> for clients that do not support custom
headers.
Chat, Preview, Publish & Hook Up Domains
Ask your main agent to edit pages via Sitefire, upload images, undo mistakes, publish to production, or attach a custom domain and monitor SSL activation.
{
"mcpServers": {
"sitefire": {
"url": "https://sitefire.app/mcp",
"headers": {
"Authorization": "Bearer YOUR_SITEFIRE_API_KEY"
}
}
}
}
Example Prompts for Your Main Agent
Once connected, you can orchestrate your entire Sitefire workflow in plain English:
Ask Sitefire to add a 3-tier pricing section to our landing page matching our brand style. Wait for Sitefire's response, give me the preview link, and wait for my approval before publishing.
Upload our new hero image to Sitefire, ask Sitefire to place it in the Hero section with a fresh headline, and once it finishes publish the site live.
Attach acme.com to my Sitefire site, configure the required DNS records (or list them for me), and check status until HTTPS/SSL is active.
Handling Long Edits Without Timeouts
By default, editSite waits for Sitefire's AI agent to finish and immediately returns its reply,
updated section names, previewUrl, liveUrl, hasUnpublishedChanges, and
creditsRemaining. For very large multi-section redesigns, your agent can pass
wait: false to start the edit in the background and poll getSiteStatus or
getChatHistory until generating is false (or call
cancelEdit to stop an active background edit without using credits).
Available MCP Tools
Chat with Sitefire Agent & Draft Controls
| Tool | Description |
|---|---|
editSite (alias: askSitefire) |
Send a natural language instruction to Sitefire's AI agent. Supports activePath,
imageUrl, and wait: false for background execution. Returns reply, changed
sections, preview URL, live URL, unpublished status, and remaining credits.
|
getSiteStatus |
Inspect whether the site is currently generating or publishing, check for unpublished draft changes, view remaining edit credits, and optionally include recent chat messages. |
getChatHistory |
Read recent Sitefire AI conversation messages for a site. |
resetChat |
Reset the Sitefire AI agent conversation context to start a fresh thread. |
cancelEdit (alias: stopEdit) |
Cancel an active or queued Sitefire AI edit immediately without writing draft changes or deducting edit credits, returning updated site status and remaining credits. |
undoEdit |
Undo the most recent unpublished draft edit batch on a site. |
uploadImage |
Upload a JPEG, PNG, GIF, WEBP, or AVIF image (up to 15 MB) via base64/data URL or an external
imageUrl, returning a hosted URL ready to pass into editSite.
|
Publishing, Versions & Custom Domains
| Tool | Description |
|---|---|
publishSite |
Publish all unpublished draft edits live to production and create a version snapshot. |
setCustomDomain |
Attach a custom domain (provisions a Cloudflare Custom Hostname + SSL) and return machine-readable
dnsRecords (CNAME to sites.sitefire.app plus optional ownership and
SSL TXT records), or an upgradeUrl if the plan requires an upgrade.
|
getCustomDomainStatus |
Refresh Cloudflare hostname and SSL provisioning status, verification errors, and pending DNS records. |
removeCustomDomain |
Detach a site's custom domain and delete its Cloudflare Custom Hostname. |
listVersions / rollbackSite |
List saved version snapshots and restore any previous published snapshot. |
configureThingsterBlog |
Connect, update, or disconnect a Thingster space as a live SEO-friendly blog on your site. |
Sites, Pages & Direct Section Access
| Tool | Description |
|---|---|
listSites / getSite |
List accessible sites or fetch full site metadata, designMd, globalCss, pages,
and sections.
|
createSite / updateSite |
Create a blank site, import from URL/HTML, build structured pages, or update site metadata and
DESIGN.md.
|
getPage / createPage / deletePage |
Inspect, create, or delete pages on a site. |
updateSection |
Low-level direct override for raw section HTML/CSS (prefer editSite for design/content
changes).
|