MCP Connector Docs

Overview

What the MCP server is, where it lives, how it authenticates, and everything it can do.

What is MCP

The Model Context Protocol lets an AI assistant call real tools instead of guessing. Point a client at the Static.app MCP server and your assistant can list your sites, edit files and deploy a ZIP in plain language, with your own API key.

Everything the server does runs through the Static.app REST API, so an MCP action and an API call have identical effects and permissions.

Included on every plan. Any Static.app account, including the 7-day trial, can create an API key and connect. Plan limits apply to what you create. See Pricing. New to MCP? See what the Static.app MCP connector does.

Endpoint

One hosted server, Streamable HTTP transport, JSON-RPC 2.0, per the MCP specification (2025-03-26).

POST https://mcp.static.app/mcp
EndpointMethodPurpose
/mcpPOST / GET / DELETEStreamable HTTP. POST sends JSON-RPC, GET opens an optional event stream, DELETE ends the session.
/uploadPOST / PUTStages a ZIP out of band. See Uploading.
/sse + /messageGET / POSTLegacy SSE transport (2024-11-05), kept for clients configured before /mcp existed. API key only.

Authentication

The server is multi-tenant: it holds no credentials of its own, so every client brings its own. On /mcp there are two ways in:

  • OAuth sign-in. Clients that support it (Claude, Claude Code, Codex, Cursor, VS Code, Gemini CLI) follow the server’s 401 to a Static.app sign-in, and you click Authorize. No key to copy. Revoke access any time in Account → API / MCP.
  • API key. For clients that can’t sign in, and for the legacy /sse endpoint. Create one in Account → API / MCP. Keys start with sk_.

Pass the key in one of two headers:

MethodValueNotes
Authorization headerAuthorization: Bearer sk_xxxxRecommended.
Custom headerX-API-Key: sk_xxxxFor clients that cannot set Authorization.
Keep the key private. It has full access to your account. Never commit it: put it in an environment variable and reference it from the client config.

All tools

Every tool runs on our servers, and none of them can see files on your machine, so content travels as arguments or through the upload endpoint. Each one checks the same workspace permissions and plan as the dashboard: a Viewer can read but not change, and paid features are refused on a trial.

ToolGroupWhat it does
list_sitesSitesList every site on the account.
get_siteSitesGet one site by PID.
get_site_filesSitesList a site's files.
create_site_from_archiveSitesCreate a site from a ZIP.
update_site_from_archiveSitesReplace a site's contents from a ZIP.
download_site_archiveSitesGet a download link for the whole site.
download_site_filesSitesGet a download link for selected files.
delete_siteSitesDelete a site.
write_site_filesFilesCreate or replace files from inline content.
read_site_fileFilesRead one file.
delete_site_filesFilesDelete files or directories.
create_uploadUploadingReserve a one-time upload URL for a ZIP or a single file.
list_formsFormsList a site's forms.
get_formFormsGet one form.
get_form_entriesFormsList submissions.
delete_form_entryFormsDelete a submission.
whoamiAccountShow the account, workspace, plan and permissions.
list_workspacesAccountList your workspaces.
switch_workspaceAccountChange the current workspace.
get_site_settingsSite settingsRead a site’s settings.
update_site_settingsSite settingsChange title, JavaScript app mode, pretty URLs or analytics.
set_site_passwordSite settingsPassword-protect a site, or remove it.
get_site_analyticsSite settingsRead visitor analytics.
list_pagesPagesList a site’s pages with their links.
get_pagePagesRead one page’s settings.
update_pagePagesChange a page’s link, visibility, redirect or error page.
get_site_domainDomainsShow a site’s addresses and the DNS it needs.
connect_domainDomainsPut a site on a custom domain.
disconnect_domainDomainsTake the custom domain off a site.
set_domain_redirectsDomainsTurn the www and free-address redirects on or off.
list_registered_domainsDomainsList the domains registered in the workspace.
get_registered_domainDomainsGet one registered domain.
list_dns_recordsDomainsList a domain’s DNS records.
add_dns_recordDomainsAdd a DNS record.
update_dns_recordDomainsReplace a DNS record.
delete_dns_recordDomainsDelete a DNS record.
set_nameserversDomainsChange a domain’s nameservers.
assign_domain_to_siteDomainsServe a site on a registered domain.
unassign_domain_from_siteDomainsStop serving a site on it.

Site identifier (pid)

Every tool that touches a site takes its public 10-character identifier, e.g. 0aw4jtby1z, never the numeric database id. Run list_sites to see the PIDs on your account.

Setup

Connect a client in a couple of minutes. Every config below points at the same endpoint, https://mcp.static.app/mcp, and differs only in how the client wants it written. Clients that support OAuth open a Static.app sign-in and need no key; the rest send an API key in a header.

Claude Code

One command adds the server for all your projects. Then run /mcp in Claude Code, pick static-app and sign in to Static.app in your browser:

claude mcp add --transport http --scope user static-app https://mcp.static.app/mcp

To use an API key instead of signing in, keep it in an environment variable and pass it as a header:

export STATIC_API_KEY=sk_xxxx
claude mcp add --transport http --scope user static-app https://mcp.static.app/mcp \
    --header "Authorization: Bearer $STATIC_API_KEY"

Or commit a .mcp.json to the project. With the header, the key is read from each person’s environment, so it never lands in the repo; leave the header out and each person signs in instead:

{
    "mcpServers": {
        "static-app": {
            "type": "http",
            "url": "https://mcp.static.app/mcp",
            "headers": { "Authorization": "Bearer ${STATIC_API_KEY}" }
        }
    }
}

Claude Desktop

Claude Desktop adds the server as a custom connector, with no config file and no key. Open Settings → Connectors, click Add custom connector, paste the URL and leave Advanced settings empty:

https://mcp.static.app/mcp

Claude opens a Static.app sign-in; click Authorize and you’re connected. The same connector then works in claude.ai and the Claude mobile app. On Team and Enterprise plans an Owner adds it for the organization first, then each person connects.

Codex

Add this to ~/.codex/config.toml, then sign in from the terminal with codex mcp login static-app:

[mcp_servers.static-app]
url = "https://mcp.static.app/mcp"

To use an API key instead, read it from your environment:

[mcp_servers.static-app]
url = "https://mcp.static.app/mcp"
bearer_token_env_var = "STATIC_API_KEY"

Cursor

Add this to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json in one project. Without headers, Cursor opens a Static.app sign-in; with them, the key is read from your environment:

{
    "mcpServers": {
        "static-app": {
            "url": "https://mcp.static.app/mcp",
            "headers": { "Authorization": "Bearer ${env:STATIC_API_KEY}" }
        }
    }
}

Devin Desktop (formerly Windsurf)

Add this to ~/.config/devin/mcp_config.json (on Windows, %APPDATA%\devin\mcp_config.json), then restart Devin Desktop. It opens a Static.app sign-in the first time it connects:

{
    "mcpServers": {
        "static-app": {
            "url": "https://mcp.static.app/mcp",
            "transport": "http"
        }
    }
}

n8n & custom clients

In n8n, add an MCP Client Tool node to your AI Agent, set Endpoint to https://mcp.static.app/mcp, keep Server Transport on HTTP Streamable and choose Bearer Auth with your API key.

Any other client that speaks MCP over Streamable HTTP works with the same URL. If it supports OAuth it signs in with Static.app; otherwise send the Authorization header with every request, and it will list the tools from the tool index on connect.

Building your own? Every call is a POST of JSON-RPC to /mcp. initialize answers with an Mcp-Session-Id header; send it back on every later request.

curl -i https://mcp.static.app/mcp \
    -H "Authorization: Bearer sk_xxxx" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json, text/event-stream" \
    -d '{
        "jsonrpc": "2.0",
        "id": 1,
        "method": "initialize",
        "params": {
            "protocolVersion": "2025-03-26",
            "capabilities": {},
            "clientInfo": { "name": "curl", "version": "1.0" }
        }
    }'

# HTTP/2 200
# mcp-session-id: mcp-session-f5df9141-...
Older clients. A client that only speaks the legacy SSE transport can still connect to https://mcp.static.app/sse with an API key (no OAuth there). If your client can do neither, use the REST API directly. It exposes the same capabilities without a session.

Verify the connection

Ask the assistant to list your sites. If tools are wired up correctly it calls list_sites and answers with real domains. To check by hand, confirm the session from above, then call a tool in it:

curl https://mcp.static.app/mcp \
    -H "Authorization: Bearer sk_xxxx" \
    -H "Mcp-Session-Id: YOUR_SESSION_ID" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json, text/event-stream" \
    -d '{ "jsonrpc": "2.0", "method": "notifications/initialized" }'

curl https://mcp.static.app/mcp \
    -H "Authorization: Bearer sk_xxxx" \
    -H "Mcp-Session-Id: YOUR_SESSION_ID" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json, text/event-stream" \
    -d '{
        "jsonrpc": "2.0",
        "id": 2,
        "method": "tools/call",
        "params": { "name": "list_sites", "arguments": {} }
    }'

The result comes back in the response to that POST.

Site tools

List, inspect, deploy, and delete sites. Every one of these takes the site's pid, not its numeric id.

list_sites

Returns every site in the active workspace.

TOOL list_sites

Arguments

NameTypeRequiredDescription
No arguments.

Example result

[
    {
        "pid": "xxxxxxxxxx",
        "slug": "example-site",
        "name": "Example Site",
        "domain": "example.staticdomains.app",
        "status": true,
        "full_url": "https://example.staticdomains.app",
        "created_at": "2025-01-15T10:00:00Z",
        "updated_at": "2025-02-01T12:30:00Z"
    }
]

Ask your assistant

"Show me all my Static.app sites."

get_site

Returns a single site.

TOOL get_site

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier, e.g. 0aw4jtby1z.

get_site_files

Lists a site's files and directories, recursively from the root.

TOOL get_site_files

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.

Example result

{
    "status": "success",
    "current_path": "",
    "files": [
        { "name": "index.html", "path": "index.html", "is_dir": false, "size": 1234, "type": "html", "hash": "0123456789abcdef0123456789abcdef" },
        { "name": "images", "path": "images", "is_dir": true, "size": null, "type": "directory", "hash": null }
    ]
}

create_site_from_archive

Creates a new site from a ZIP archive. Give exactly one archive source. They are tried in the order below. The server cannot read files from your machine, so the archive arrives either through create_upload or from a public URL.

TOOL create_site_from_archive

Arguments

NameTypeRequiredDescription
upload_idstringoptionalPreferred. Id from create_upload once the ZIP has been PUT to its URL.
archive_urlstringoptionalURL to download the ZIP from.
archive_base64stringoptionalLegacy fallback. See Legacy base64.
namestringoptionalDesired subdomain, e.g. my-site. A random one is generated otherwise.

Example result

{
    "status": "success",
    "pid": "xxxxxxxxxx",
    "slug": "my-site",
    "url": "https://my-site.staticdomains.app"
}

update_site_from_archive

Replaces a site's contents with a new ZIP. To change a handful of files instead of the whole site, use write_site_files.

TOOL update_site_from_archive

Arguments

NameTypeRequiredDescription
pidstringrequiredSite to update.
upload_idstringoptionalPreferred. Id from create_upload.
archive_urlstringoptionalURL to download the ZIP from.
archive_base64stringoptionalLegacy fallback.

download_site_archive

Packs the whole site and returns a download link.

TOOL download_site_archive

Arguments

NameTypeRequiredDescription
pidstringrequiredSite to download.

Example result

{
    "status": "success",
    "url": "https://static.app/storage/zip/abcdef0123456789_download.zip"
}

download_site_files

Packs selected files and returns a download link.

TOOL download_site_files

Arguments

NameTypeRequiredDescription
pidstringrequiredSite to download from.
filesstringrequiredJSON array of paths, e.g. ["index.html", "css/style.css"].

delete_site

Deletes a site and everything in it. There is no undo.

TOOL delete_site

Arguments

NameTypeRequiredDescription
pidstringrequiredSite to delete.

File tools

Read, write, and delete individual files without redeploying the whole site.

write_site_files

Creates or replaces specific files and leaves the rest of the site alone. Send text inline; for images and other binaries, stage the file with create_upload and pass its upload_id. Files that do not exist yet are created, and missing directories are created along the way.

TOOL write_site_files

Arguments

NameTypeRequiredDescription
pidstringrequiredSite to write to.
filesstringrequiredJSON array of {path, content, encoding} or {path, upload_id}. Up to 200 entries, at most 20 with upload_id.
create_onlybooleanoptionalFail with 409 rather than overwrite an existing file. Defaults to false. Cannot be combined with upload_id.

File entry fields

FieldTypeRequiredDescription
pathstringrequiredRelative to the site root, e.g. css/style.css. Paths that walk outside the site are rejected.
contentstringone ofThe file's contents. Max 200MB.
upload_idstringone ofId from create_upload, once the file has been PUT to its URL. Costs no tokens at any size.
encodingstringoptionalFor content. "text" (default) sends it verbatim; "base64" is for very small binaries, since every byte costs tokens.

Example arguments

{
    "pid": "xxxxxxxxxx",
    "files": "[{\"path\": \"index.html\", \"content\": \"<!doctype html><h1>Hello</h1>\"}, {\"path\": \"img/logo.png\", \"upload_id\": \"0e9837a760c5062279ea57107d8f0a1c\"}]"
}

Example result

{
    "status": "success",
    "written": 2,
    "files": [
        { "name": "index.html", "path": "index.html", "size": 34, "hash": "0123456789abcdef0123456789abcdef" },
        { "name": "logo.png", "path": "img/logo.png", "size": 2048, "hash": "89abcdef0123456789abcdef01234567" }
    ],
    "errors": []
}
Text content travels as-is, so HTML, CSS, and JS carry no encoding overhead. Binaries go through upload_id; if part of a batch is refused, the staged files stay in place so you can retry.

Errors

CodeWhen
409create_only was set and every file already exists.
422Nothing could be written: unsupported extension, invalid path, or bad base64.

Ask your assistant

"Add a privacy.html page to site xxxxxxxxxx with a short placeholder policy."

"Change the heading colour in css/style.css on site xxxxxxxxxx to #6551E0."

read_site_file

Returns one file's contents. Text comes back verbatim; binaries come back base64-encoded with encoding set accordingly.

TOOL read_site_file

Arguments

NameTypeRequiredDescription
pidstringrequiredSite to read from.
pathstringrequiredRelative to the site root, e.g. css/style.css.

Example result

{
    "status": "success",
    "path": "css/style.css",
    "encoding": "text",
    "size": 14,
    "hash": "fedcba9876543210fedcba9876543210",
    "content": "body{margin:0}"
}

Errors

CodeWhen
400path is missing or points outside the site.
404Site or file not found.
413File is larger than 1MB, so use download_site_files instead.

delete_site_files

Removes files or directories. Directories go recursively.

TOOL delete_site_files

Arguments

NameTypeRequiredDescription
pidstringrequiredSite to delete from.
pathsstringrequiredJSON array of paths, e.g. ["old.html", "assets/legacy"].

A note on local paths

The hosted server runs on our infrastructure and shares no filesystem with you, so there is no tool that takes a path on your machine. Anything that has to travel does so as content or over HTTP:

You want toUse
Change or add a text filewrite_site_files, sending the contents
Add an image, font, or videocreate_upload, then write_site_files with upload_id
Deploy a ZIP you have locallycreate_upload, then upload_id
Deploy a ZIP already onlinearchive_url

Self-hosting the server yourself? Set LOCAL_FILE_ACCESS=true and it additionally exposes upload_site_files plus an archive_path argument, which read from the machine the server runs on.

Uploading

How to get content into a site without paying for it twice: once in bandwidth, once in tokens.

Which method to use

The server runs remotely, so nothing reads from your disk. Two questions decide the rest: are you changing a few files or replacing the whole site, and does your client have a shell?

SituationUseCost in tokens
Editing pages, styles, adding a filewrite_site_filesThe file's own text, nothing more.
Adding an image, font, or video to a sitecreate_upload + write_site_filesNone. The file never enters the conversation.
Replacing a whole site from a ZIPcreate_upload + upload_idNone. The archive never enters the conversation.
The ZIP is already hosted somewherearchive_urlNone.
Client has no shell and no hostingarchive_base64Roughly 1.4 tokens per byte of ZIP.

create_upload

Reserves a one-time slot and hands back a URL to PUT a file to, plus a ready-to-run curl command. The URL needs no API key. The file goes straight from your disk to the server, so its size costs nothing in context. Deploy a ZIP with it, or place a single file with write_site_files.

TOOL create_upload

Arguments

NameTypeRequiredDescription
file_namestringoptionalName of the file. Defaults to archive.zip.

Example result

{
    "upload_id": "0e9837a760c5062279ea57107d8f0a1c",
    "upload_url": "https://mcp.static.app/upload/0e9837a760c5062279ea57107d8f0a1c",
    "file_name": "site.zip",
    "expires_at": "2026-08-25T12:57:32Z",
    "max_size": 204800000,
    "single_use": true
}

Then PUT the file

curl -fsS -T site.zip https://mcp.static.app/upload/0e9837a760c5062279ea57107d8f0a1c

Then deploy it

{
    "pid": "xxxxxxxxxx",
    "upload_id": "0e9837a760c5062279ea57107d8f0a1c"
}
Single use. An empty slot closes after 15 minutes. The staged file is deleted the moment it is deployed, and expires after 30 minutes regardless. Only the API key that reserved a slot can deploy it, so a leaked URL cannot change a site.
100 MB to publish. A slot accepts up to 200 MB, but creating or replacing a site from a ZIP accepts archives up to 100 MB. Keep the ZIP under 100 MB, or add large assets afterwards with write_site_files.

Upload endpoint

The tool is a convenience, and any HTTP client can drive the endpoint directly. POST takes your API key, stages a file, and returns a fresh id in one step; PUT fills an id that create_upload handed out and needs no key.

POST https://mcp.static.app/upload
PUT https://mcp.static.app/upload/{upload_id}

Example request

curl -X POST --data-binary @site.zip \
    -H "Authorization: Bearer sk_xxxx" \
    "https://mcp.static.app/upload?file_name=site.zip"

Example response

{
    "status": "success",
    "upload_id": "0e9837a760c5062279ea57107d8f0a1c",
    "file_name": "site.zip",
    "size": 5000000,
    "sha256": "1df9cfae4840f7c4eef12dbd4691c043ce4e247130817053c55f1aa04eddd971",
    "expires_at": "2026-08-25T12:57:32Z"
}

Errors

CodeWhen
401POST without an API key.
404Unknown or expired id.
409Content was already uploaded for this id.
413Body is over the 200MB ceiling.
503Staging is disabled on the server. Use archive_url instead.

Legacy base64

archive_base64 still works and is checked last. It exists for clients that cannot make an HTTP request of their own, but base64 adds a third on top of the raw bytes, and every one of them passes through the model, so a 2MB archive costs roughly 700k tokens. Anything over 1,048,576 characters (about 750 KB of ZIP) is refused. Prefer upload_id whenever a shell is available.

# macOS
base64 -i site.zip | tr -d '\n'

# Linux
base64 -w 0 site.zip

Form tools

Read the forms on a site and work through their submissions.

list_forms

Returns every form on a site.

TOOL list_forms

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.

get_form

Returns a single form with its fields.

TOOL get_form

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.
form_idstringrequiredId of the form.

get_form_entries

Returns submissions for a form, newest first.

TOOL get_form_entries

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.
form_idstringrequiredId of the form.
limitnumberoptionalHow many entries to return, 1 to 100. Defaults to 20.
offsetnumberoptionalHow many of the newest entries to skip.

Ask your assistant

"Summarise the last 20 contact form submissions on site xxxxxxxxxx."

delete_form_entry

Deletes one submission.

TOOL delete_form_entry

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.
form_idstringrequiredId of the form.
entry_idstringrequiredThe entry’s pid, from get_form_entries.

Account tools

Who the connection acts as, and which workspace it acts in. Every site, domain and permission belongs to one workspace.

whoami

Returns the account, the current workspace with its plan and limits, and the permissions you hold there. When a call is refused, this tells a missing permission or an unpaid plan apart from a failure.

TOOL whoami

Arguments

NameTypeRequiredDescription
No arguments.

Example result

{
    "email": "[email protected]",
    "auth": "oauth",
    "workspace": {
        "pid": "xxxxxxxxxx",
        "name": "Acme",
        "role": "Developer",
        "plan": "starter",
        "plan_active": true,
        "sites": 4,
        "sites_limit": 10,
        "permissions": ["sites.view", "files.update", "domains.manage"]
    }
}

list_workspaces

Lists the workspaces your account belongs to. is_current marks the one the other tools act in.

TOOL list_workspaces

Arguments

NameTypeRequiredDescription
No arguments.

switch_workspace

Makes another workspace the current one. Every tool afterwards acts in it, and so does the dashboard.

TOOL switch_workspace

Arguments

NameTypeRequiredDescription
workspace_pidstringrequiredThe workspace’s pid, from list_workspaces.

Ask your assistant

"Switch to the Acme workspace and list its sites."

Site settings tools

Read and change a site’s settings, protect it with a password, and read its visitor analytics.

Paid plans. Password protection and analytics need a paid plan on the workspace. On a trial the call is refused with that reason, and nothing changes.

get_site_settings

Returns the title, description, JavaScript app mode, pretty URLs, analytics mode, and whether a password protects the site.

TOOL get_site_settings

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.

update_site_settings

Changes only the settings you pass. Everything you leave out keeps its current value.

TOOL update_site_settings

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.
titlestringoptionalThe site’s name in the dashboard.
descriptionstringoptionalA note about the site, shown in the dashboard.
is_js_appbooleanoptionalJavaScript application mode: any address without a file of its own is answered with index.html, so client-side routes and refreshes work.
use_pretty_urlsbooleanoptionalServe pages without the .html extension. Turning it off clears every page’s custom link.
analyticsstringoptionaldisabled, public or private. Paid plans.

Ask your assistant

"My React app on site xxxxxxxxxx shows 404 on refresh. Fix it."

set_site_password

Puts the whole site behind a password, or takes it off. Visitors are asked for it before any page loads.

TOOL set_site_password

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.
passwordstringoptionalThe new password, at least 4 characters.
removebooleanoptionaltrue to remove the password. Pass this or password, not both.

get_site_analytics

Returns the same visitor report as the dashboard. overview gives totals and a day-by-day series; the other reports give the top rows of one panel. Locations are counted by country and city, never by visitor IP.

TOOL get_site_analytics

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.
reportstringoptionaloverview (default), pages, os, browsers, locations, referring_sites, referrers or keyphrases.
limitnumberoptionalRows for a panel report, 1 to 200. Defaults to 25.

Ask your assistant

"Which pages on site xxxxxxxxxx got the most visits, and where did the visitors come from?"

Page tools

Each HTML page has settings beside its file: its link, who can open it, a redirect, or serving it as an error page. What a page says lives in its file, so change that with write_site_files.

list_pages

Returns the site’s HTML pages with each one’s address, visibility, redirect and error-page settings.

TOOL list_pages

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.

Example result

{
    "data": [
        {
            "pid": "yyyyyyyyyy",
            "file": "about.html",
            "url": "https://example.staticdomains.app/about",
            "custom_url": "about",
            "is_homepage": false,
            "visibility": "public",
            "redirect": null,
            "custom_error": null
        }
    ]
}

get_page

Returns one page’s settings.

TOOL get_page

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.
page_pidstringrequiredThe page’s pid, from list_pages.

update_page

Changes only the settings you pass and returns the page as it now stands. A link already used by another page on the site is refused.

TOOL update_page

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.
page_pidstringrequiredThe page’s pid, from list_pages.
custom_urlstringoptionalThe link without a leading slash, e.g. about or blog/first-post. An empty string goes back to the link made from the file name.
visibilitystringoptionalpublic, hidden (reachable only through a secret link) or password. Password needs a paid plan.
passwordstringoptionalThe page password. Leave it out to keep the one already set.
is_homepagebooleanoptionalServe the page at the site root. The previous homepage gets its own link back.
descriptionstringoptionalA note about the page, shown in the dashboard.
redirect_targetstringoptionalSend visitors elsewhere: a path like /new-page or a full URL. An empty string removes the redirect. Paid plans.
redirect_typenumberoptional301 (default), 302, 307 or 308.
custom_errornumberoptionalServe the page as the site’s error page for 400, 401, 403, 404, 500, 503 or 504. 0 stops it.

Ask your assistant

"On site xxxxxxxxxx, move about.html to /company/about and redirect /team there with a 301."

Domain tools

Put a site on a custom domain, and manage the domains your workspace registered with Static.app: DNS records, nameservers and which site each one serves.

Not over MCP: buying, renewing, transferring and deleting domains, their contacts and transfer codes. They move money or move the name out of your workspace, so they stay in the dashboard.

get_site_domain

Returns the site’s free address, its custom domain, the redirects around it, whether its SSL certificate is still being issued, and the DNS records a domain hosted elsewhere needs before it can connect.

TOOL get_site_domain

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.

connect_domain

Serves the site on a custom domain, replacing any it had. The domain’s A and TXT records have to point here first; get_site_domain lists them. A domain registered with Static.app on our nameservers is set up for you. Needs a paid plan, and the certificate follows a few minutes after success.

TOOL connect_domain

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.
domainstringrequiredThe hostname, e.g. example.com or shop.example.com, without https://.

disconnect_domain

Takes the custom domain off the site. The site stays up on its free address.

TOOL disconnect_domain

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.

set_domain_redirects

Turns the redirects around the custom domain on or off. Pass only the ones to change.

TOOL set_domain_redirects

Arguments

NameTypeRequiredDescription
pidstringrequiredPublic identifier of the site.
www_redirectbooleanoptionalRedirect www.example.com to example.com, or the other way round when www is the connected one. Its A record has to point here too.
free_domain_redirectbooleanoptionalRedirect the site’s free address to its custom domain.

Ask your assistant

"Connect example.com to site xxxxxxxxxx and send www to it."

list_registered_domains

Returns the domains your workspace registered with Static.app, with expiry, auto-renewal and the site each one serves.

TOOL list_registered_domains

Arguments

NameTypeRequiredDescription
No arguments.

get_registered_domain

Returns one domain: status, dates, auto-renewal, lock, nameservers, the site it serves, and the reason when it cannot be changed right now.

TOOL get_registered_domain

Arguments

NameTypeRequiredDescription
domainstringrequiredA domain registered in this workspace, e.g. example.com.

list_dns_records, add_dns_record, update_dns_record, delete_dns_record

Read and edit the domain’s DNS records with the same checks as the dashboard editor: a record that clashes with another, such as a CNAME beside other records or a duplicate, is refused with the reason. A domain on other nameservers can’t be edited here; its DNS lives wherever those point.

TOOL add_dns_record

Arguments

NameTypeRequiredDescription
domainstringrequiredA domain registered in this workspace, e.g. example.com.
record_idstringUpdate and deleteThe record’s id, from list_dns_records.
typestringAdd and updateA, AAAA, CNAME, MX, TXT, SRV, CAA and the other types the dashboard offers.
namestringAdd and update@ for the domain itself, or a label such as www or _dmarc.
datastringAdd and updateThe value: an IP address, a hostname, or the text of a TXT record without quotes.
ttlnumberoptionalSeconds, 600 to 604800. Defaults to 3600.
prioritynumberMX and SRVThe record’s priority.

Ask your assistant

"Add the Google Workspace MX records to example.com."

set_nameservers

Points the domain at other nameservers, or back at ours. Once it moves away, a site on the domain stops loading unless the new DNS host gets its records, which the answer lists.

TOOL set_nameservers

Arguments

NameTypeRequiredDescription
domainstringrequiredA domain registered in this workspace, e.g. example.com.
nameserversarrayrequired2 to 13 hostnames. get_registered_domain shows ours as default_nameservers.

assign_domain_to_site, unassign_domain_from_site

Serve a site on a domain registered here, or stop. DNS records, server configuration and the certificate are set up for you within a few minutes. Taking it off leaves the site on its free address and the domain registered. For a domain registered elsewhere, use connect_domain.

TOOL assign_domain_to_site

Arguments

NameTypeRequiredDescription
domainstringrequiredA domain registered in this workspace, e.g. example.com.
site_pidstringAssign onlyPublic identifier of the site.

Troubleshooting

The failures that actually come up, and what each one means.

401 Unauthorized

  • Check the key is current and has not been revoked in Account → API / MCP.
  • The header needs the Bearer prefix: Authorization: Bearer sk_xxxx.
  • In a config file, confirm the environment variable actually resolved: a literal ${STATIC_API_KEY} reaching the server reads as a bad key.
  • Signed in with OAuth and now getting 401: the connection was disconnected in Account → API / MCP. Sign in again from the client (/mcp in Claude Code, codex mcp login static-app in Codex).

"Site not found"

  • Pass the PID (the 10-character public id like 0aw4jtby1z), not the numeric database id.
  • The site has to be in the current workspace, and a member given only some of its sites reaches only those. Run list_sites to see which ones you can use.
  • Switching workspaces changes which sites are visible.

Refused: permission or plan

The tools follow your role in the workspace and the workspace’s plan, exactly as the dashboard does. Run whoami to see both.

  • 403 with “You do not have permission”: your role doesn’t allow it. A Viewer can read everything but change nothing; ask the workspace owner for another role.
  • “Only available for paid plans”: password protection, analytics, page redirects and custom domains need a paid plan on the workspace, not on your own account.
  • A domain that is still being registered, transferred or has lapsed can’t be changed. get_registered_domain gives the reason.

Passing a path from your machine

The hosted server shares no filesystem with you, so a path like /Users/me/site.zip means nothing to it. An older client that still sends archive_path gets an error explaining what to use instead; one that calls upload_site_files gets tool not found, since that tool is not registered here at all.

  • Changing files → write_site_files, with text inline and binaries by upload_id.
  • Deploying an archive → create_upload, PUT the ZIP, then upload_id.
  • Archive already hosted → archive_url.
  • Running the server yourself → LOCAL_FILE_ACCESS=true brings the local-path tools back.

Tools not showing up

  • Restart the client after editing its MCP config. Most read it only at startup.
  • Claude Desktop logs the handshake: ~/Library/Logs/Claude/mcp*.log on macOS.
  • Cannot find module 'mcp-remote': use npx -y mcp-remote, which installs it on the spot.
  • A healthy connection lists the tools in the tool index. Fewer means the client cached an older session.

Connection errors

  • The URL is exactly https://mcp.static.app/mcp, and the client is set to Streamable HTTP (--transport http, "type": "http"), not SSE.
  • Test the endpoint on its own: curl -i -X POST https://mcp.static.app/mcp. Without a credential it answers 401 with a WWW-Authenticate header pointing at the sign-in metadata, which proves the server is reachable.
  • 404 on a request that carries Mcp-Session-Id: the session expired or the server restarted. Clients reconnect on their own; a hand-rolled one has to send initialize again.
  • Still on the legacy /sse endpoint? It holds one long-lived connection, so proxies that buffer responses or cut idle connections break it. Switch to /mcp.

Upload rejected

CodeMeaningFix
403Deploying an id that belongs to another key.Use the same key that called create_upload.
404Unknown or expired id.Empty slots live 15 minutes, filled ones 30, and they are deleted once deployed. Reserve a new one.
409Content already uploaded for this id.A slot takes one file. Reserve another to re-upload.
413Over the 200MB ceiling.Split the deployment, or drop large assets and add them with write_site_files.
503Staging is switched off on the server.Deploy with archive_url, or ask us to point UPLOAD_DIR at a writable path.
422Nothing could be written.Check the errors array. It is usually an unsupported extension or a path leaving the site root.

Still stuck

The same operations are available over HTTP, and reproducing a failure against the REST API tells you whether the problem is the client or the account. If it is neither, contact support.