Back to HTML Pub

The Self-Updating Site: Wiring Claude and MCP Into a Pipeline That Publishes Without You

Michael Sacca•
AI-Native Publishing
Automation
LLM Engineering

We've spent a lot of posts on this blog getting a site to exist. Claude builds it, you QA it, you host it for free. That's the fun part, and it's the part every "AI website builder" article covers — right up until the site goes live and immediately starts rotting.

Because here's the thing nobody puts in the launch screenshot: a static site with a blog on it is a commitment. Every post is a session, a copy-paste, a commit, a deploy. After about six weeks of that, most people stop publishing, and the site quietly becomes a brochure.

This post is about the step after that: turning the site from a thing you maintain into a thing that maintains itself. Not a gimmick — an actual pipeline where Claude writes, checks, and ships content on a schedule, with you as the editor rather than the operator.

Why "prompt Claude, paste the result" doesn't scale

The manual workflow looks like this: open Claude, describe the post, copy the markdown, paste it into your repo, commit, wait for the deploy. It works. It's also four context switches per post, and every one of them is a place where you'll skip a step when you're busy.

The automation version replaces those switches with two pieces of plumbing:

  1. An MCP server that lets Claude read and write to the places your content actually lives — your repo, your CMS, your draft folder — instead of you ferrying text between them by hand.
  2. A trigger — a scheduled job or a CI hook — that starts the pipeline without you opening a chat window.

If you've read The 'Marketing Agent' You're Paying $99/mo for Is Just Four Prompts — Here's How to Own Them, you've seen the argument that most "automated content" subscriptions are a prompt wrapper plus a scheduler. This post is the do-it-yourself version of that stack.

What MCP actually buys you here

Model Context Protocol (MCP) is an open standard for connecting LLMs to external tools — file systems, git, databases, APIs. Instead of pasting content into a chat window, Claude gets tools it can call: read a file, write a file, create a pull request, query your site's frontmatter.

The MCP ecosystem has grown fast, and there are now community servers for the things a publishing pipeline needs most:

  • Filesystem — read and write markdown in your content directory
  • Git/GitHub — branch, commit, and open pull requests programmatically
  • Fetch — pull reference material from URLs when Claude is researching a post

The exact server names and capabilities vary as the ecosystem moves — check the current MCP server registry rather than trusting any list in a months-old blog post, including this one.

The practical difference is this: with MCP, Claude's output goes somewhere. Without it, everything ends as text in a chat window that a human has to move. A pipeline needs endpoints.

The pipeline, layer by layer

Here's the shape of a self-updating site, built from the same free stack we've recommended throughout this blog — Claude for generation, a static host for publishing.

1. Content source: a structured queue

The pipeline starts with a content queue, not a blank page. This is the single most important design decision, and it's the one people skip.

Your queue is just a file — queue.md, or a folder of one-line briefs — that you (or a research prompt) fill with post ideas, each with a target keyword, an angle, and a word count. When the pipeline runs, it pulls the next item instead of inventing a topic. This keeps the output on-strategy and keeps you as the editorial gatekeeper before generation, which is much cheaper than editing after.

2. Generation: a scheduled prompt, not a chat session

The generation step is a prompt template that takes a queue item and produces a finished markdown file with correct frontmatter, internal links to existing posts, and your voice rules baked in. The same prompt runs every time, which means the output is consistent in a way ad-hoc chat sessions never are.

You can run this prompt through Claude's API from a scheduled job (a GitHub Actions cron is the usual free choice), or — if you'd rather review before anything is written — have the job draft to a _drafts folder and open a pull request instead of committing directly.

3. Review: the human gate you should not remove

This is where I'll push back on the fully-autonomous version of this dream. A pipeline that publishes to production with zero review will eventually publish something wrong, off-brand, or embarrassing, and it will do it at 3 a.m. while you sleep.

The fix costs you almost nothing: have the pipeline open a pull request per post. You review diffs in GitHub's interface, approve or edit, merge, and the deploy happens automatically. Your review workload drops from "operate the whole pipeline" to "read a diff," and you keep a veto. That's the right trade for a personal site or a small business blog.

4. Publishing: the hook you already have

If your site is on GitHub Pages, Cloudflare Pages, or Netlify — the hosts we compared in There's No Truly Free Builder Plan — But a Site Claude Builds You Can Host for $0 Forever — then publishing is already automated. A merge to main triggers a deploy. You don't build this step; you just make sure your generation step ends in a merge.

This is the quiet advantage of the static-site stack: the entire "publishing pipeline" is git's existing behavior. You're not wiring Claude into a CMS with an API; you're wiring Claude into git.

A concrete starter setup

The smallest version of all this that actually works:

# .github/workflows/draft-post.yml (sketch)
on:
  schedule:
    - cron: "0 9 * * 1"  # Mondays, 9am

jobs:
  draft:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Draft next post from queue
        env:
          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
        run: |
          python scripts/draft_from_queue.py \
            --queue content/queue.md \
            --out content/_drafts/
      - name: Open pull request
        run: gh pr create --fill

The script inside is simple: read the top item from the queue, call Claude with your post template, validate the frontmatter, write the file. Everything else — branch, PR, review, merge, deploy — is stock GitHub behavior.

Total infrastructure cost: an API key and whatever the generation tokens run you. Total ongoing effort: reviewing one PR a week.

Where this breaks (and what to do about it)

Honest accounting, because the failure modes are predictable:

  • Frontmatter drift. Claude will invent fields your templates don't use. Solve it with a validation step in the script that rejects malformed output — the same discipline as the QA prompt in Your AI-Built Site Looks Fine on Your Laptop. Run This QA Prompt Before You Ship It., applied to content instead of layout.
  • Hallucinated internal links. Claude will link to posts that don't exist. Give the generation step a list of your actual post slugs as context, or validate every link against the filesystem before the PR opens.
  • Queue starvation. The pipeline is only as good as the queue behind it. Block out an hour a month to refill it; otherwise the scheduler will either stall or start improvising, and improvised content is where quality dies.
  • Voice erosion. A prompt template locked in January will sound stale by June, because your site and your thinking will have moved. Revise the template the way you'd revise any other asset on the site.

The reframe

The "AI website builder" frame ends at launch. The pipeline frame starts there. The site Claude built you is the artifact; the pipeline is the asset — it's the thing that keeps the site alive after your initial enthusiasm runs out, and it's the thing no builder subscription will ever hand you, because their business model depends on the updating staying inside their tool.

Build the site with Claude if you haven't yet. Then build the queue, the template, and one cron job. After that, your site publishes on a schedule, you edit diffs from your phone, and the whole thing costs you a review session a week.

Keep Reading