Your Site Is Already Live. Here's How to Let Claude Edit It Without Rebuilding It
Michael Sacca•There's a genre of tutorial we've written a lot of on this blog, and it has a shape you can probably recite by now: prompt Claude, get a folder of files, run a QA pass, deploy to static hosting. It's a good shape. It's also a shape that quietly assumes you're starting from nothing.
But most people aren't starting from nothing. Most people have a site that's already live — one they built last month, or built with Claude in an earlier session, or inherited — and what they want is not a new site. They want this site, with the headline changed, a section added, a pricing table updated. And the failure mode almost everyone hits is the same: you paste your code back into a chat, ask for one small change, and Claude hands you back an entire rewritten site that looks similar but behaves differently in three places you didn't notice until later.
That's the problem this post is about. And the fix — the thing that turns "edit my live site" from a gamble into a workflow — is MCP.
The rebuild problem, briefly
We touched on this in The Self-Updating Site: Wiring Claude and MCP Into a Pipeline That Publishes Without You, but that post was about architecture: content generation, scheduled updates, publishing as a pipeline. This is narrower and more mundane. This is about the Tuesday afternoon where you need to fix a typo in your hero section and you don't want to gamble the whole site to do it.
The rebuild problem happens because Claude, by default, only knows what you tell it in the conversation. If you don't paste in the current state of your files, it will happily generate a plausible guess of what your site looks like — and every edit built on that guess is an edit to a site that doesn't exist. Even when you do paste the files in, there's a copy-paste step between what's on your server and what's in the chat, and that step is where things drift.
MCP — the Model Context Protocol, Anthropic's open standard for connecting models to external tools — closes that gap. Instead of describing your site to Claude, you give Claude a tool that can see and touch the actual files.
What "editing a live site" actually requires
Before you connect anything, it's worth being honest about the surface area of a small edit:
- Read the current file(s) — the real ones, not your memory of them.
- Locate the exact spot to change, in context of everything around it.
- Write the change back without disturbing siblings.
- Verify the result renders correctly.
- Deploy — and ideally, be able to roll back.
If you're doing this through a chat window, each of those steps is a manual copy-paste and a prayer. With MCP servers, each one maps to a tool call Claude can make itself.
The two-server setup that covers 90% of cases
You don't need an exotic stack. For a typical static site (the kind we've been deploying to Cloudflare Pages or GitHub Pages throughout this blog), two MCP servers cover nearly everything:
A filesystem server. This gives Claude the ability to list directories, read files, and write files within a folder you explicitly allow. That allowed-folder boundary matters — you're granting file access, so scope it to your site's project directory and nothing else.
A deployment server. Depending on where your site lives, this might be the MCP server published by your hosting provider (Cloudflare, Netlify, and others have published MCP servers for their platforms) or, more simply, a shell/command server that lets Claude run your existing deploy command — npx wrangler deploy, a Netlify CLI deploy, a git push. If your site deploys via a CI hook on every push to main, a git-capable server is all you need; the deploy happens the way it always has.
The wiring happens in your MCP client's config — in Claude Desktop or Claude Code, that's a JSON block listing each server, its command, and its arguments. Once it's loaded, Claude sees a new set of tools alongside its usual capabilities.
The workflow, step by step
Here's what a targeted edit looks like once the plumbing is in place. The key discipline, and the thing that separates this from the rebuild gamble, is that Claude reads before it writes, every time.
1. Point Claude at reality
Start the session with something like:
List the files in my site directory and read
index.html. Don't change anything yet.
This does two things. It forces Claude to ground itself in the actual current state of the site, and it gives you a checkpoint: if what Claude reads back doesn't match what you believe the site looks like, you've caught the problem before any damage.
2. Describe the change surgically
In
index.html, change the hero headline from X to Y. Change nothing else. After editing, show me the diff.
"Show me the diff" is the phrase that earns its keep. It turns Claude's edit from an act of faith into a reviewable artifact. A one-line headline change should produce a one-line diff; if it produces forty changed lines, something is wrong and you catch it in the review, not on the live site.
3. Verify before deploying
If your project directory is also served locally (a dev server, or even just opening the file in a browser), look at it. This is the same discipline from the QA work in Your AI-Built Site Looks Fine on Your Laptop. Run This QA Prompt Before You Ship It. — compressed, because you're changing one thing, not shipping a site, but not skipped.
4. Deploy and know your rollback
Push or deploy through whatever path your setup uses. Here's the part nobody emphasizes enough: the rollback story is what makes targeted edits safe. On Cloudflare Pages and Netlify, every deploy is versioned and one click away from being promoted back to production. On GitHub Pages, your git history is your rollback. If your deployment story has no rollback, fix that first — it matters more than any edit you're about to make.
What breaks, and how to avoid it
A few failure modes worth naming, because they're the ones people hit:
Scope creep. Even with file access, Claude sometimes "helpfully" fixes things you didn't ask about — reformatting, renaming, "improving." The diff requirement in step 2 is your defense. So is an explicit instruction: make only the requested change.
Edits to generated artifacts. If your live site is built from source (a framework, a static site generator), editing the built output directly means your next build overwrites your edit. Claude should edit the source, not the output. Say this explicitly in the prompt if it's not obvious from the file structure.
Stale reads across a session. If you edit a file in one tool and Claude's context still holds an older read, it can build on outdated state. Re-read after external changes; it's one tool call.
Credential sprawl. Every MCP server you add is a new permission surface. Add the ones you need, scope filesystem access to the project folder, and don't wire in deployment credentials on machines you don't control.
Why this matters more than it sounds
The rebuild-based edit workflow has a hidden cost that isn't the risk of breakage — it's that the cost of a small change stays high, so you batch changes, so edits pile up, so when you finally do touch the site it's a big scary session. When the cost of an edit drops to "open Claude, make the change, review the diff, deploy," you start maintaining the site the way sites are supposed to be maintained: continuously, in small pieces, without ceremony.
That's the real promise of MCP here. Not magic — just closing the gap between the copy of your site that Claude imagines and the one that's actually live.