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.
Endpoint
One hosted server, Streamable HTTP transport, JSON-RPC 2.0, per the MCP specification (2025-03-26).
| Endpoint | Method | Purpose |
|---|---|---|
/mcp | POST / GET / DELETE | Streamable HTTP. POST sends JSON-RPC, GET opens an optional event stream, DELETE ends the session. |
/upload | POST / PUT | Stages a ZIP out of band. See Uploading. |
/sse + /message | GET / POST | Legacy 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
401to 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
/sseendpoint. Create one in Account → API / MCP. Keys start withsk_.
Pass the key in one of two headers:
| Method | Value | Notes |
|---|---|---|
| Authorization header | Authorization: Bearer sk_xxxx | Recommended. |
| Custom header | X-API-Key: sk_xxxx | For clients that cannot set Authorization. |
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.
| Tool | Group | What it does |
|---|---|---|
list_sites | Sites | List every site on the account. |
get_site | Sites | Get one site by PID. |
get_site_files | Sites | List a site's files. |
create_site_from_archive | Sites | Create a site from a ZIP. |
update_site_from_archive | Sites | Replace a site's contents from a ZIP. |
download_site_archive | Sites | Get a download link for the whole site. |
download_site_files | Sites | Get a download link for selected files. |
delete_site | Sites | Delete a site. |
write_site_files | Files | Create or replace files from inline content. |
read_site_file | Files | Read one file. |
delete_site_files | Files | Delete files or directories. |
create_upload | Uploading | Reserve a one-time upload URL for a ZIP or a single file. |
list_forms | Forms | List a site's forms. |
get_form | Forms | Get one form. |
get_form_entries | Forms | List submissions. |
delete_form_entry | Forms | Delete a submission. |
whoami | Account | Show the account, workspace, plan and permissions. |
list_workspaces | Account | List your workspaces. |
switch_workspace | Account | Change the current workspace. |
get_site_settings | Site settings | Read a site’s settings. |
update_site_settings | Site settings | Change title, JavaScript app mode, pretty URLs or analytics. |
set_site_password | Site settings | Password-protect a site, or remove it. |
get_site_analytics | Site settings | Read visitor analytics. |
list_pages | Pages | List a site’s pages with their links. |
get_page | Pages | Read one page’s settings. |
update_page | Pages | Change a page’s link, visibility, redirect or error page. |
get_site_domain | Domains | Show a site’s addresses and the DNS it needs. |
connect_domain | Domains | Put a site on a custom domain. |
disconnect_domain | Domains | Take the custom domain off a site. |
set_domain_redirects | Domains | Turn the www and free-address redirects on or off. |
list_registered_domains | Domains | List the domains registered in the workspace. |
get_registered_domain | Domains | Get one registered domain. |
list_dns_records | Domains | List a domain’s DNS records. |
add_dns_record | Domains | Add a DNS record. |
update_dns_record | Domains | Replace a DNS record. |
delete_dns_record | Domains | Delete a DNS record. |
set_nameservers | Domains | Change a domain’s nameservers. |
assign_domain_to_site | Domains | Serve a site on a registered domain. |
unassign_domain_from_site | Domains | Stop 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-...
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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier, e.g. 0aw4jtby1z. |
get_site_files
Lists a site's files and directories, recursively from the root.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
upload_id | string | optional | Preferred. Id from create_upload once the ZIP has been PUT to its URL. |
archive_url | string | optional | URL to download the ZIP from. |
archive_base64 | string | optional | Legacy fallback. See Legacy base64. |
name | string | optional | Desired 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Site to update. |
upload_id | string | optional | Preferred. Id from create_upload. |
archive_url | string | optional | URL to download the ZIP from. |
archive_base64 | string | optional | Legacy fallback. |
download_site_archive
Packs the whole site and returns a download link.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Site 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Site to download from. |
files | string | required | JSON array of paths, e.g. ["index.html", "css/style.css"]. |
delete_site
Deletes a site and everything in it. There is no undo.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Site 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Site to write to. |
files | string | required | JSON array of {path, content, encoding} or {path, upload_id}. Up to 200 entries, at most 20 with upload_id. |
create_only | boolean | optional | Fail with 409 rather than overwrite an existing file. Defaults to false. Cannot be combined with upload_id. |
File entry fields
| Field | Type | Required | Description |
|---|---|---|---|
path | string | required | Relative to the site root, e.g. css/style.css. Paths that walk outside the site are rejected. |
content | string | one of | The file's contents. Max 200MB. |
upload_id | string | one of | Id from create_upload, once the file has been PUT to its URL. Costs no tokens at any size. |
encoding | string | optional | For 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": []
}
upload_id; if part of a batch is refused, the staged files stay in place so you can retry.Errors
| Code | When |
|---|---|
| 409 | create_only was set and every file already exists. |
| 422 | Nothing 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Site to read from. |
path | string | required | Relative 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
| Code | When |
|---|---|
| 400 | path is missing or points outside the site. |
| 404 | Site or file not found. |
| 413 | File is larger than 1MB, so use download_site_files instead. |
delete_site_files
Removes files or directories. Directories go recursively.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Site to delete from. |
paths | string | required | JSON 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 to | Use |
|---|---|
| Change or add a text file | write_site_files, sending the contents |
| Add an image, font, or video | create_upload, then write_site_files with upload_id |
| Deploy a ZIP you have locally | create_upload, then upload_id |
| Deploy a ZIP already online | archive_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?
| Situation | Use | Cost in tokens |
|---|---|---|
| Editing pages, styles, adding a file | write_site_files | The file's own text, nothing more. |
| Adding an image, font, or video to a site | create_upload + write_site_files | None. The file never enters the conversation. |
| Replacing a whole site from a ZIP | create_upload + upload_id | None. The archive never enters the conversation. |
| The ZIP is already hosted somewhere | archive_url | None. |
| Client has no shell and no hosting | archive_base64 | Roughly 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
file_name | string | optional | Name 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"
}
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.
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
| Code | When |
|---|---|
| 401 | POST without an API key. |
| 404 | Unknown or expired id. |
| 409 | Content was already uploaded for this id. |
| 413 | Body is over the 200MB ceiling. |
| 503 | Staging 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
get_form
Returns a single form with its fields.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
form_id | string | required | Id of the form. |
get_form_entries
Returns submissions for a form, newest first.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
form_id | string | required | Id of the form. |
limit | number | optional | How many entries to return, 1 to 100. Defaults to 20. |
offset | number | optional | How 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
form_id | string | required | Id of the form. |
entry_id | string | required | The 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| No arguments. | |||
switch_workspace
Makes another workspace the current one. Every tool afterwards acts in it, and so does the dashboard.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
workspace_pid | string | required | The 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.
get_site_settings
Returns the title, description, JavaScript app mode, pretty URLs, analytics mode, and whether a password protects the site.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
update_site_settings
Changes only the settings you pass. Everything you leave out keeps its current value.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
title | string | optional | The site’s name in the dashboard. |
description | string | optional | A note about the site, shown in the dashboard. |
is_js_app | boolean | optional | JavaScript application mode: any address without a file of its own is answered with index.html, so client-side routes and refreshes work. |
use_pretty_urls | boolean | optional | Serve pages without the .html extension. Turning it off clears every page’s custom link. |
analytics | string | optional | disabled, 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
password | string | optional | The new password, at least 4 characters. |
remove | boolean | optional | true 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
report | string | optional | overview (default), pages, os, browsers, locations, referring_sites, referrers or keyphrases. |
limit | number | optional | Rows 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
page_pid | string | required | The 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
page_pid | string | required | The page’s pid, from list_pages. |
custom_url | string | optional | The 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. |
visibility | string | optional | public, hidden (reachable only through a secret link) or password. Password needs a paid plan. |
password | string | optional | The page password. Leave it out to keep the one already set. |
is_homepage | boolean | optional | Serve the page at the site root. The previous homepage gets its own link back. |
description | string | optional | A note about the page, shown in the dashboard. |
redirect_target | string | optional | Send visitors elsewhere: a path like /new-page or a full URL. An empty string removes the redirect. Paid plans. |
redirect_type | number | optional | 301 (default), 302, 307 or 308. |
custom_error | number | optional | Serve 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.
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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
domain | string | required | The 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
set_domain_redirects
Turns the redirects around the custom domain on or off. Pass only the ones to change.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
pid | string | required | Public identifier of the site. |
www_redirect | boolean | optional | Redirect 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_redirect | boolean | optional | Redirect 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | required | A 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | required | A domain registered in this workspace, e.g. example.com. |
record_id | string | Update and delete | The record’s id, from list_dns_records. |
type | string | Add and update | A, AAAA, CNAME, MX, TXT, SRV, CAA and the other types the dashboard offers. |
name | string | Add and update | @ for the domain itself, or a label such as www or _dmarc. |
data | string | Add and update | The value: an IP address, a hostname, or the text of a TXT record without quotes. |
ttl | number | optional | Seconds, 600 to 604800. Defaults to 3600. |
priority | number | MX and SRV | The 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | required | A domain registered in this workspace, e.g. example.com. |
nameservers | array | required | 2 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.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | required | A domain registered in this workspace, e.g. example.com. |
site_pid | string | Assign only | Public 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
Bearerprefix: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 (/mcpin Claude Code,codex mcp login static-appin 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_sitesto 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.
403with “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_domaingives 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 byupload_id. - Deploying an archive →
create_upload, PUT the ZIP, thenupload_id. - Archive already hosted →
archive_url. - Running the server yourself →
LOCAL_FILE_ACCESS=truebrings 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*.logon macOS. Cannot find module 'mcp-remote': usenpx -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 answers401with aWWW-Authenticateheader pointing at the sign-in metadata, which proves the server is reachable. 404on a request that carriesMcp-Session-Id: the session expired or the server restarted. Clients reconnect on their own; a hand-rolled one has to sendinitializeagain.- Still on the legacy
/sseendpoint? It holds one long-lived connection, so proxies that buffer responses or cut idle connections break it. Switch to/mcp.
Upload rejected
| Code | Meaning | Fix |
|---|---|---|
| 403 | Deploying an id that belongs to another key. | Use the same key that called create_upload. |
| 404 | Unknown or expired id. | Empty slots live 15 minutes, filled ones 30, and they are deleted once deployed. Reserve a new one. |
| 409 | Content already uploaded for this id. | A slot takes one file. Reserve another to re-upload. |
| 413 | Over the 200MB ceiling. | Split the deployment, or drop large assets and add them with write_site_files. |
| 503 | Staging is switched off on the server. | Deploy with archive_url, or ask us to point UPLOAD_DIR at a writable path. |
| 422 | Nothing 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.