cd /news/ai-agents/publish-a-static-site-from-cursor-cl… · home › topics › ai-agents › article
[ARTICLE · art-178794] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Publish a static site from Cursor, Claude Code or VS Code with an MCP server

The SoFast team built a remote MCP server that lets coding assistants in Cursor, Claude Code and VS Code publish static sites directly, using OAuth sign-in instead of API keys. The server exposes tools such as upload_files, create_site, publish_site and delete_site, so an assistant can chain them to deploy a generated site to a *.sofast.website address with SSL and republish updates without changing the URL. The team notes the setup works with any remote MCP server that uses OAuth.

key takeaway

A remote MCP server using OAuth and readOnlyHint/destructive tool annotations lets coding assistants publish static sites via chained tools like upload_files, create_site and publish_site, with delete_site returning a confirmation link instead of deleting.

by read4 min views2 publishedNov 30, 2026

You ask Cursor or Claude Code for a landing page. Two minutes later you have an index.html, a stylesheet and a couple of images. Then the boring part starts: pick a host, create a project, drag files somewhere, wait for a deploy, copy the URL.

I wanted the assistant that wrote the site to also put it online. So we built a remote MCP server for SoFast, the static hosting I work on. This post shows how to wire it up in Cursor, Claude Code and VS Code, and what actually happens when you ask the assistant to publish.

Disclosure: I'm on the SoFast team. The setup below works the same way with any remote MCP server that uses OAuth, so it's useful even if you host elsewhere.

The server URL is:

https://mcp.sofast.host/mcp

There's no API key. The first time the client connects, it opens a browser window, you sign in to SoFast and approve access. The assistant never sees your password, and you can revoke access from the SoFast dashboard at any time.

One command:

claude mcp add --transport http sofast https://mcp.sofast.host/mcp

Then, inside Claude Code:

/mcp

Pick sofast and sign in when the browser opens.

Add the server to .cursor/mcp.json in your project (or ~/.cursor/mcp.json to make it available everywhere):

{
  "mcpServers": {
    "sofast": { "url": "https://mcp.sofast.host/mcp" }
  }
}

Cursor asks you to sign in the first time a tool is used.

In the Chat view: Customizations → Add MCP Server → HTTP, then paste the URL. Or commit it with the project in .mcp.json:

{
  "mcpServers": {
    "sofast": {
      "type": "http",
      "url": "https://mcp.sofast.host/mcp",
      "tools": ["*"]
    }
  }
}

Ask:

List my SoFast sites.

If you get a list (or "no sites yet"), you're connected.

Try a prompt like this one:

Build a one-page portfolio for a freelance illustrator: hero, three project cards, contact section. Plain HTML and CSS. Then publish it on SoFast at a new address.

Behind the scenes, the assistant chains a few tools:

upload_files`` upload_id. Big sites can be sent in several calls with the same create_site``<name>.sofast.website with that get_site_status`` index.html at the root is the classic one). You get back a live HTTPS URL.

If your client can run shell commands (Claude Code, Cursor's agent), there's a faster path for sites with lots of binary files. get_upload_link returns a one-time command that zips the folder and uploads it directly. It's valid for 15 minutes and a single upload. The assistant runs it, and the site is published as a new version.

Change the headline to "Available for new projects" and republish my portfolio.

The assistant edits the file, calls upload_files, then publish_site on the existing site. The address doesn't change, and the previous version stays restorable from the dashboard. Small copy fixes happen without opening anything.

Tool What it does
list_sites Lists your sites with their address, status and last publish
get_site_status One site's status, file count and latest publish result
rename_site Changes the name shown in your dashboard (not the URL)
change_site_address Moves the site to a new *.sofast.website subdomain (once a day; old links break)
_site /un_site Takes a site offline or puts it back online
delete_site Doesn't delete anything: returns a link so you confirm it in the dashboard

Two design choices worth copying if you build your own MCP server:

list_sites, readOnlyHint, the rest are marked as writes or destructive, so clients can ask for confirmation before the risky ones.delete_site hands you a link instead. Sites get a *.sofast.website address with SSL out of the box. On paid plans you can connect your own domain to each site from the dashboard, and the certificate is issued and renewed for you. Domains are managed in the dashboard, not through MCP.

The nice thing about remote MCP servers with OAuth is that setup is just a URL. Once it's added, "publish this" becomes part of the same conversation that built the site.

Full setup for every client (including Claude and ChatGPT on the web): sofast.host/mcp.

If you've built an MCP server yourself, I'm curious how you handled destructive actions. Let me know in the comments.

── more in #ai-agents 4 stories · sorted by recency
── more on @sofast 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/publish-a-static-sit…] indexed:0 read:4min 2026-11-30 · —