StaticX MCP Server
Enables AI agents to deploy static websites to StaticX, including creating sites, uploading builds, publishing releases, and managing domains.
README
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 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/v1contract. - 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。