<!-- MCP Website Deployment for Claude Code and Cursor | Demox -->
Source: https://www.demox.site/mcp-website-deployment

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

1. **Step 1.** Add the Demox MCP server to the agent config with npx -y @demox-site/mcp-server@latest.
2. **Step 2.** Restart the agent and complete the browser login on first use.
3. **Step 3.** Point the agent at a folder that contains index.html, or at a single HTML file.
4. **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。

### 按这个顺序做

1. **01** 在助手配置里加入 npx -y @demox-site/mcp-server@latest。
2. **02** 重启助手，第一次发布时完成浏览器登录。
3. **03** 把含 index.html 的目录或单个 HTML 交给它。
4. **04** 让它发布到 Demox 并返回公开地址。

### 常见问题

### 哪些助手能用？

能跑 npx 的 MCP 客户端都可以。文档里的例子是 Claude Code 和 Cursor。

### 配置里要写 API key 吗？

不用环境变量。第一次发布会在浏览器登录。

## Related Demox pages

- [Free static website hosting with CLI and MCP](https://www.demox.site/free-static-site-hosting)
- [Deploy AI-generated websites in seconds](https://www.demox.site/ai-website-deployment)
- [Deploy a static site from the CLI](https://www.demox.site/cli-static-site-deploy)
- [You have an AI-generated page. How do you publish it?](https://www.demox.site/deploy-ai-generated-website)
- [Deploy a website from Claude Code](https://www.demox.site/claude-code-deploy-website)
- [Deploy a website from Cursor](https://www.demox.site/cursor-deploy-website)
- [CLI and MCP docs](https://www.demox.site/doc)
- [When to use Demox](https://www.demox.site/when-to-use-demox)

[Upload and publish](https://www.demox.site/console/projects) · [Read the docs](https://www.demox.site/doc)
