Connect Cursor to the Lobsite MCP server
Add the server to .cursor/mcp.json in the project (or to ~/.cursor/mcp.json for every project). In the Cursor app, Cursor Settings → MCP → Add new MCP server opens that global file for you:
{ "mcpServers": { "lobsite": { "url": "https://mcp.lobsite.com" } } }
Cursor then lists Lobsite's tools: deploy_files publishes files, up to 25 MB per deploy, and list_files, read_file and patch_files change one page of a site the agent deployed without sending the whole site again. The agent calls them instead of the terminal, so there's no command to approve. Connect your Lobsite account when Cursor asks you to sign in to the server, and the agent can also preview, promote and roll back the sites you've kept.
Add a Lobsite project rule to Cursor
Rules tell Cursor's agent how this project works. Save this as .cursor/rules/deploy.mdc:
---
description: How to deploy this site
alwaysApply: false
---
This site deploys with Lobsite. Build it, then publish the build folder with the
lobsite MCP server's deploy_files tool. For a large build, run from the project folder:
npx lobsite
- Tell the user the URL and the claim link, and relay any "Tell the user:" line word for word.
- Pass the site and claim token from the first deploy with every later one, so the site
keeps its address. Ask for a preview to deploy without changing the live site.
- If a deploy fails, follow the fix in the error message. Never pass --include-secrets.
- Forms need no backend: point a form at /_lobsite/forms/<name> with method="POST" and
data-lobsite-type (contact, waitlist, survey or quiz). Read https://lobsite.com/docs/forms.md first.
With alwaysApply: false the agent reads it when the chat is about deploying. Commit it, so the whole team's agents deploy the same way.
Deploy large Cursor builds with the CLI
The MCP server takes the files' contents in the tool call, which suits pages and small sites. For a build with big assets, the agent runs npx lobsite in Cursor's terminal: it uploads the build folder from disk and only sends the files that changed. The CLI sees it's under Cursor (from the CURSOR_AGENT variable), so it never waits for an answer that wouldn't come, and prints plain lines. lobsite.toml remembers the site; commit it after the first deploy.
Cursor deploys: MCP server or terminal
| Lobsite MCP server | Terminal command | |
|---|---|---|
| Set-up | One URL in .cursor/mcp.json |
None |
| Needs Node | No | Yes |
| Approval in Cursor | Per tool, the first time | Each run, unless you allow the command |
| Best for | Pages and small sites, up to 25 MB | Large builds |
| Roll back, list deploys | As tools, once your account is connected | With more commands |
| Shared with the team | Yes, if .cursor/mcp.json is committed |
Through the project rule |
Both deploy to the same kind of site with the same claim link. Without Node, the agent can send a page with curl instead; see AI agents.
Cursor hosting FAQ
Does the agent get stuck on a prompt?
No. The MCP tools take no input from you, and under Cursor the CLI never asks anything either: a first deploy prints its summary and carries on, and anything that can't be undone needs --yes. That's why the command includes it.
Can it deploy to my account instead of a temporary site?
Yes. Connect your Lobsite account when Cursor asks you to sign in to the MCP server, or run npx lobsite login once in Cursor's terminal yourself for the CLI; both open a browser to sign in.
Which files does it upload?
Over the MCP server, the files the agent sends: the build output, usually. The CLI uploads the first of dist/, build/, out/, _site/ or public/, or the folder named in lobsite.toml, and secret files such as .env stop the deploy until they're ignored.
Does every deploy upload the whole site again?
No. Over the MCP server the agent can change single pages with patch_files. The CLI compares files by their hash and only uploads the ones that changed, so redeploying after a small change takes a moment.
Is there a Cursor extension?
No extension is needed: the MCP server and the CLI are the whole integration.