To deploy a Cursor app to your own server, add a deploy tool’s MCP server to Cursor, point it at a repo, and ask the agent to deploy. With CloudPloy that means one entry in mcp.json, one browser sign-in, and a prompt. The app runs on a server you own, either an AWS account you connect or any machine you can reach over SSH.

Cursor writes the code. It doesn’t host it. This guide covers the gap between “it runs on localhost” and “it has a URL”.

How do I deploy a Cursor app?

  1. Push the project to GitHub, GitLab or Bitbucket.
  2. Add the CloudPloy MCP server to Cursor.
  3. Sign in to CloudPloy when the browser opens.
  4. Ask the agent to connect your Git provider, create the app, and deploy it.
  5. Add a domain and let CloudPloy issue the certificate.

What do I need first?

  • A CloudPloy account. The Free plan covers one server and one app, with a hard cap of 2 vCPU and 2 GB RAM.
  • The project in a Git repository. Cursor works on local files, so commit and push before you deploy.
  • A server: a fresh Ubuntu or Debian machine you can reach over SSH, or an AWS account you connect with an access key. The server docs list the supported images.
  • Cursor with Agent mode. Per Cursor’s docs, Agent can run terminal commands and edit code, and that is the mode that calls MCP tools.

How do I add the MCP server to Cursor?

Cursor reads MCP servers from a JSON file. According to Cursor’s MCP docs, .cursor/mcp.json in your project holds project tools, and ~/.cursor/mcp.json in your home directory holds tools for every project. Add CloudPloy as a remote server:

{
  "mcpServers": {
    "cloudploy": {
      "url": "https://brain.cloudploy.com/mcp"
    }
  }
}

Cursor supports OAuth for remote servers, so you don’t paste a token. A browser tab opens, you sign in to CloudPloy and approve access, and the tools appear in the chat. If they don’t, check that the server is switched on in Cursor’s MCP list. Cursor’s docs say disabled servers don’t load.

How do I deploy it?

Ask Cursor’s agent in plain English. A first prompt could be:

Connect my GitHub account to CloudPloy, detect what is in my-org/my-app, create the app, estimate the cost, and deploy it.

The agent calls CloudPloy’s tools in order: connect_git_provider returns a sign-in link so you never paste a Git token into the chat, detect_app reads the repo, create_app sets it up, estimate_cost shows the price before anything is provisioned, and deploy_app ships it.

By default, Cursor asks for approval before it uses MCP tools. Read each call before you accept it, especially the first deploy. That prompt is a useful brake, and you can loosen it later for tools you trust.

Then set the app’s environment variables the same way:

Set DATABASE_URL and SESSION_SECRET for the production environment.

The agent uses set_env_vars. Point the database variable at a database you run yourself, because CloudPloy doesn’t host databases.

How does CloudPloy build my app?

If the repo has a Dockerfile, CloudPloy builds with it. If not, it builds with Nixpacks, which detects the stack from your files. Node, Python, Go, Rust, Ruby, Java, PHP and static sites work this way. The Nixpacks vs Dockerfile guide explains when each is the better pick, including a status note on Nixpacks you should read before you rely on it.

How do I redeploy after the next change?

Ask for auto-deploy once:

Turn on auto-deploy for the main branch.

After that, each push to main redeploys the app. If a release breaks, ask the agent to roll back to the previous deployment. Releases switch with zero downtime.

Can Cursor’s cloud agents do this too?

Not with the file above. Cursor says its hosted Cloud Agents don’t read ~/.cursor/mcp.json. If you use cloud agents, check Cursor’s docs for how to give them MCP access. The steps in this guide are for the editor.

When is this the wrong setup?

  • The app is static HTML. A static host is simpler and often free.
  • You want no server at all. A managed platform removes the machine, at the price of a bill that grows with usage.
  • You need a managed database. CloudPloy deploys the app, not the database.

For a wider look at where to put an app an agent built, see where to host a vibe-coded app. To see what other MCP servers can deploy, read which MCP servers deploy apps. The same setup for Claude Code is in the Claude Code deploy guide.

What does it cost?

CloudPloy has a Free plan for one server and one app, and paid plans from $9.99 to $39 a month. Your cloud provider bills the server separately, and CloudPloy adds no markup to compute. See pricing for what each plan includes.

FAQ

Can Cursor deploy my app for me?

Cursor can, once it has a deploy tool. Add CloudPloy’s MCP server and the agent can create the app, set variables, deploy and roll back. Cursor on its own writes code but has no host.

Where do I put the MCP config in Cursor?

In .cursor/mcp.json inside the project for one repo, or ~/.cursor/mcp.json in your home directory for all projects, per Cursor’s MCP docs.

Do I need to paste an API key into Cursor?

No. CloudPloy’s MCP server signs you in with OAuth in the browser, and your Git provider connects through a link the agent returns.

Can I deploy a Cursor app to a VPS?

Yes. Connect any fresh Ubuntu or Debian server over SSH, or let CloudPloy provision an EC2 instance in your own AWS account. Other providers work as plain SSH servers.

Is it safe to let the agent deploy?

Cursor asks before it runs MCP tools by default. In CloudPloy, terminate_server and delete_app are permanent, so they run only when you ask and the call includes confirm=true.

Does the same setup work in Claude Code, Codex or ChatGPT?

Yes. Every MCP client uses the same address, https://brain.cloudploy.com/mcp. Only the way you add it changes. The MCP setup page has the steps for each.

Connect Cursor to CloudPloy