StaticX MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@StaticX MCP Serverdeploy the build from ./dist"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
StaticX MCP Server
Official Model Context Protocol server for StaticX, the deployment infrastructure for static websites.
Give Claude Code, Cursor, Codex, Cline, Windsurf, Claude Desktop, Zed, Continue, or another MCP client a scoped StaticX API token. The agent can then create sites, upload files, publish releases, inspect logs, start manual custom domain setup, and roll back with explicit confirmation when deployment history is enabled.
StaticX intentionally uses scoped API tokens instead of OAuth because it is designed for developers, CI/CD, automation tools, and AI agents.
Install
The package runs directly through npx; a global install is not required.
{
"mcpServers": {
"staticx": {
"command": "npx",
"args": ["-y", "staticx-mcp-server"],
"env": {
"STATICX_API_TOKEN": "sx_replace_with_your_token",
"STATICX_API_BASE_URL": "https://staticx.site/api/v1"
}
}
}
}Create the narrowest token that fits the job. A short-lived, site-scoped token is the safest default for one-site deployments.
Full client-specific snippets are available in the StaticX MCP documentation.
Related MCP server: Hostsmith MCP Server
Claude Code
claude mcp add staticx --scope user \
--env STATICX_API_TOKEN=sx_replace_with_your_token \
--env STATICX_API_BASE_URL=https://staticx.site/api/v1 \
-- npx -y staticx-mcp-serverCodex
codex mcp add staticx \
--env STATICX_API_TOKEN=sx_replace_with_your_token \
--env STATICX_API_BASE_URL=https://staticx.site/api/v1 \
-- npx -y staticx-mcp-serverLocal HTTP debugging
STATICX_API_TOKEN=sx_replace_with_your_token npx staticx-mcp-server httpThen connect a Streamable HTTP client or the MCP Inspector to:
http://localhost:3100/mcpHTTP mode listens on 127.0.0.1 by default. Do not expose it publicly without a secure reverse proxy and a deliberate authentication policy.
Environment variables
Variable | Required | Purpose |
| Yes | Scoped StaticX API token. |
| No | Defaults to |
| No | Default site ID for site-specific tools. |
| No | API request timeout in milliseconds. |
| No | ZIP import poll interval, default 2000. |
| No | ZIP import wait timeout, default 15 minutes. |
| No | Deployment poll interval, default 5000. |
| No | Deployment wait timeout, default 15 minutes. |
| No | Local HTTP port, default |
| No | Local HTTP bind host, default |
Never paste a real token into documentation, source control, screenshots, prompts, or issue reports.
Plan limits
MCP tools use the public StaticX API and cannot bypass account capacity.
Plan | Sites | Storage | Max upload | Form entries | Team seats | Rollback history |
Free | 1 | 500 MB | 500 MB | 1,000 | 1 | Last 5 versions |
Plus | 15 | 10 GB | 50 GB | 20,000 | 5 | Last 10 versions |
Pro | 100 | 20 GB | 50 GB | 100,000 | 10 | Last 50 versions |
Agency | Custom | Custom | 50 GB | Custom | Custom | Custom |
If a tool returns PLAN_QUOTA_EXCEEDED, stop and return the exact message to the user. Do not retry blindly, change endpoints, or bypass StaticX Forms.
Tools
Tool | Purpose |
| Show configuration state without exposing secrets. |
| Validate the configured token. |
| List accessible workspaces. |
| Create a workspace. |
| List accessible sites. |
| Read one site. |
| Create a site. Optional |
| Upload a static build ZIP and wait for queued import completion. |
| Import a public website URL. |
| Publish the current workspace. |
| Upload a ZIP, wait for import completion, deploy, read state, and return the live URL. |
| List releases. Sites may use versioned history or one baseline release. |
| Roll back with exact confirmation text. |
| Delete an inactive release with exact confirmation text. |
| Read recent site activity. |
| Start manual one-record custom domain setup. |
| Read domain activation status. |
| Sync site environment variables. |
| Return the built-in safe deployment guide. |
Safety contract
Tokens are never returned by a tool.
Write tools explain their effect in their descriptions.
Rollback requires
ROLLBACK <deployment_id>.Deployment deletion requires
DELETE <deployment_id>.The server only calls the public StaticX
/api/v1contract.Use a site-scoped token for one-site agents and revoke it when the task is complete.
Plan limits are enforced by the API and hosted forms runtime. Tools must stop on
PLAN_QUOTA_EXCEEDED.ZIP uploads are queued by the StaticX API.
staticx_upload_zipandstaticx_deploy_zipwait for import completion before reporting success or publishing.Sites default to versioned deployment history. If the user asks to avoid release history, pass
versioning_enabled: falsetostaticx_create_project,staticx_deploy_project, orstaticx_deploy_zip; StaticX keeps one baseline release for analytics, forms, and live serving.DNS Connect requires browser approval in the StaticX dashboard. MCP tools should return manual DNS records or tell the user to approve DNS Connect; they must not claim to authorize an external DNS provider silently.
Generated subdomain suffix changes are dashboard-only. If an account has an active publishing domain, use
Site → Settings → Domainto save a generated address on that suffix.
Recommended agent prompt
Use StaticX MCP to deploy this static website.
Before deploying:
- build the project
- verify index.html and 404.html exist at the build root
- explain what you will publish
After deploying:
- return the live URL, release, and deployment mode
- inspect logs if anything fails
- stop on PLAN_QUOTA_EXCEEDED and show the exact quota message
- if I ask to disable version history, create or deploy with versioning_enabled=false
- if the user asks to move a generated subdomain to a publishing domain, direct them to Site Settings → Domain
- do not roll back or delete anything without asking me firstDevelopment
git clone https://github.com/madprodworks-coder/staticx-mcp-server.git
cd staticx-mcp-server
npm install
npm testThe MCP package must continue to use the public StaticX API. It must not import Laravel controllers, services, or internal engine classes.
Security
Please report vulnerabilities privately as described in SECURITY.md. Do not open a public issue containing tokens, private URLs, or customer data.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/madprodworks-coder/staticx-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server