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

Upload and publish · Read the docs