MCP deploy · Updated 2026-09-14 · Demox team
Deploy a website from MCP
Direct answer: Demox has an MCP server so an AI coding agent can publish a static site without opening a cloud console. Add npx -y @demox-site/mcp-server@latest to the MCP config for Claude Code, Cursor, or another MCP client. Restart the agent. The first deploy opens a browser for OAuth. After that, the agent can upload a folder, ZIP, HTML file, or document. The npm package is @demox-site/mcp-server. This is for static output and Node handlers that export handler(request, env). It is not an Express listen host.
How to do it
- Step 1. Add the Demox MCP server to the agent config with npx -y @demox-site/mcp-server@latest.
- Step 2. Restart the agent and complete the browser login on first use.
- Step 3. Point the agent at a folder that contains index.html, or at a single HTML file.
- Step 4. Ask it to deploy to Demox and return the public URL.
FAQ
Which agents work?
Any MCP client that can run npx. Claude Code and Cursor are the documented examples.
Do I need an API key in the config?
No environment variable is required. Login happens in the browser on first deploy.
用 MCP 把网站发布到公网
在 Claude Code 或 Cursor 里加入 npx -y @demox-site/mcp-server@latest。首次部署会打开浏览器登录。之后 AI 可以直接上传 HTML、ZIP 或 dist。
按这个顺序做
- 01 在助手配置里加入 npx -y @demox-site/mcp-server@latest。
- 02 重启助手,第一次发布时完成浏览器登录。
- 03 把含 index.html 的目录或单个 HTML 交给它。
- 04 让它发布到 Demox 并返回公开地址。
常见问题
哪些助手能用?
能跑 npx 的 MCP 客户端都可以。文档里的例子是 Claude Code 和 Cursor。
配置里要写 API key 吗?
不用环境变量。第一次发布会在浏览器登录。