StaticX MCP Server

StaticX MCP Server

Enables AI agents to deploy static websites to StaticX, including creating sites, uploading builds, publishing releases, and managing domains.

Category
Visit Server

README

StaticX MCP Server

npm license

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 immutable releases, inspect logs, connect domains, and roll back with explicit confirmation.

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.

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-server

Codex

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-server

Local HTTP debugging

STATICX_API_TOKEN=sx_replace_with_your_token npx staticx-mcp-server http

Then connect a Streamable HTTP client or the MCP Inspector to:

http://localhost:3100/mcp

HTTP 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
STATICX_API_TOKEN Yes Scoped StaticX API token.
STATICX_API_BASE_URL No Defaults to https://staticx.site/api/v1.
STATICX_PROJECT_ID No Default site ID for site-specific tools.
STATICX_TIMEOUT_MS No API request timeout in milliseconds.
STATICX_MCP_PORT No Local HTTP port, default 3100.
STATICX_MCP_HOST No Local HTTP bind host, default 127.0.0.1.

Never paste a real token into documentation, source control, screenshots, prompts, or issue reports.

Tools

Tool Purpose
staticx_config Show configuration state without exposing secrets.
staticx_auth_check Validate the configured token.
staticx_list_workspaces List accessible workspaces.
staticx_create_workspace Create a workspace.
staticx_list_projects List accessible sites.
staticx_get_project Read one site.
staticx_create_project Create a site.
staticx_upload_zip Upload a static build ZIP.
staticx_import_url Import a public website URL.
staticx_deploy_project Publish the current workspace.
staticx_deploy_zip Upload and deploy a ZIP end to end.
staticx_list_deployments List immutable releases.
staticx_rollback_deployment Roll back with exact confirmation text.
staticx_delete_deployment Delete an inactive release with exact confirmation text.
staticx_get_logs Read recent site activity.
staticx_connect_custom_domain Start one-record custom domain setup.
staticx_get_custom_domain_status Read domain activation status.
staticx_set_environment_variables Sync site environment variables.
staticx_agent_guide 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/v1 contract.
  • Use a site-scoped token for one-site agents and revoke it when the task is complete.

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 and release
- inspect logs if anything fails
- do not roll back or delete anything without asking me first

Development

git clone https://github.com/madprodworks-coder/staticx-mcp-server.git
cd staticx-mcp-server
npm install
npm test

The 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured