<!-- Deploy a Website from Cursor | Demox -->
Source: https://www.demox.site/cursor-deploy-website

Cursor · Updated 2026-09-14 · Demox team

# Deploy a website from Cursor

**Direct answer:** Cursor can deploy to Demox with MCP or with the CLI. For MCP, add npx -y @demox-site/mcp-server@latest and restart Cursor. For CLI, run npm install -g @demox-site/cli@latest, then demox login and demox deploy ./dist. Give Cursor this prompt: read https://www.demox.site/doc, use the local files, and publish a static site. Cursor must be able to read the project and run tools. A chat-only session cannot upload. This is for static output, not for an Express listen server.

## How to do it

1. **Step 1.** Enable the Demox MCP server in Cursor, or install the CLI.
2. **Step 2.** Open the project that already has HTML or a dist folder.
3. **Step 3.** Ask Cursor to deploy with Demox and return the URL.
4. **Step 4.** Open the URL in a private window.

## FAQ

### MCP or CLI?

MCP if you want Cursor to call tools. CLI if you want to type demox deploy yourself.

### Does Cursor need GitHub?

No. Demox publishes local files.

## 用 Cursor 发布网站

在 Cursor 里接 Demox MCP，或让它执行 demox deploy ./dist。把文档地址发给它，要求用本地文件发布。

### 按这个顺序做

1. **01** 在 Cursor 启用 Demox MCP，或安装 CLI。
2. **02** 打开已经有 HTML 或 dist 的项目。
3. **03** 让 Cursor 用 Demox 发布并返回地址。
4. **04** 用无痕窗口打开该地址。

### 常见问题

### 用 MCP 还是 CLI？

想让 Cursor 调工具就用 MCP。想自己敲命令就用 demox deploy。

### Cursor 需要 GitHub 吗？

不需要。Demox 发布的是本地文件。

## 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 website from MCP](https://www.demox.site/mcp-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)
- [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)
