How to Build a Local SEO Website With Claude Code (and Not Get It Treated as Spam)
One builder documented a 50-page local service site built in four hours with Claude Code. Here is how to build a smaller, more honest version for a local business, what it costs to host and why 200 near-identical city pages is the fastest way to waste the work.
How to build a local SEO website with AI
A mobile mechanic, a pressure washer or a two-truck plumbing company does not need a 6,000 dollar website. They need a fast site that tells Google and customers exactly what they do, where they do it and how to call. Most of those businesses either have a five-year-old template site that loads slowly or nothing but a Google Business Profile. Claude Code can now build the first kind of site in an afternoon.
The most striking example on this site is Claude Code Built a 50-Page Local SEO Website in 4 Hours That Ranked Top 3 on Google Within 24 Hours. The builder made a mobile diesel repair site over a weekend and reports ranking in the top three organic results for "mobile diesel mechanic Charlotte" within a day, with the phone ringing the same day and near-perfect desktop PageSpeed scores. Those are self-reported results for a narrow, low-competition search, and most new sites take weeks or months to rank. Treat it as proof that speed of building is no longer the bottleneck, not as a timeline to promise anyone.
What actually makes a local site rank
Google ranks local service pages on relevance, proximity and prominence. Your site helps most with relevance: clear pages for each service, the areas you serve, consistent name, address and phone, and proof that you are a real business. The Google Business Profile does a lot of the heavy lifting for map results, and another case study here, a 30-Day Claude Cowork SEO System for Google Business Profile Dominance, reports 25,000 dollars in extra revenue over 30 days, with the builder noting that the gains came from acting on what Claude surfaced, not from Claude doing the work.
The trap is volume. With AI it is trivial to generate a page for every suburb within 50 miles. Google's spam policies call this scaled content abuse when many pages are produced mainly to manipulate rankings rather than help people, and the policy applies whether a human or AI wrote them. Pages built only to catch similar city searches and funnel visitors on are covered by the separate doorway policy. A site with 12 strong pages beats one with 200 copies that differ only in the town name.
A worked example: a mobile pressure washing business
Picture a one-person pressure washing business in a metro of about 600,000 people. The owner offers four services (house washing, driveway and concrete cleaning, roof soft washing, commercial storefronts) across six suburbs where they actually take jobs. They have 47 Google reviews and a folder of before-and-after photos, and the current site is a single page on a website builder.
The new site has 14 pages: home, four service pages, six area pages, about, a pricing page with real starting prices and a contact page. Each area page mentions jobs actually done there, the kind of surfaces common in that suburb (older brick homes in one, new HOA developments in another) and two job photos from that area. Claude Code writes the drafts and the code. The owner spends about two hours supplying the specifics and checking every claim. Hosting is free, the domain is about 15 dollars a year and the total out-of-pocket cost is a Claude subscription. The details here are illustrative; the shape of the site is what to copy.
Step by step: build it in a weekend
Step 1: Collect the facts before you open any AI tool
Make a document with the business name, address or service area, phone, license number if the trade needs one, every service with a starting price, every area served, the ten best reviews with first names, and 20 job photos named by service and town. This is the material that separates a real local site from a generated one. If the business cannot supply it, the site will be thin no matter how good the code is.
Step 2: Install Claude Code on a paid plan
Claude Code is included with Claude Pro (20 dollars a month, or 17 dollars a month on annual billing, as of November 2026) and with Max plans. It is not included with the free plan. Install it, create an empty folder for the project, open a terminal in that folder and start Claude Code. Put your facts document and photos in the same folder so Claude can read them.
Step 3: Ask for a static site, not a heavy app
A static site generator such as Astro gives you fast pages and nothing to maintain. Tell Claude Code: "Build a static Astro site for this business using the facts in facts.md. Pages: home, one page per service, one page per area served, about, pricing, contact. Use LocalBusiness schema with the exact name, address and phone. Put the phone number as a tap-to-call button in the header on mobile. No stock photos; use the images in the photos folder. Do not invent reviews, prices, licenses or years in business." The last line matters. Models will fill gaps with plausible details unless you forbid it.
Step 4: Make every area page earn its place
Read each area page and ask one question: could a competitor copy this page by changing the town name? If yes, rewrite it. Add the jobs done there, the photos from there, any local detail the owner knows (common house styles, HOA rules, water hardness, travel time). If you cannot find anything specific to say about an area, drop that page and list the town on a general service area page instead.
Step 5: Check speed and structure before you publish
Ask Claude Code to run a production build, then test the home page and one service page in Google's PageSpeed Insights. Fix anything flagged. Check that each page has a unique title and meta description, one H1, the phone number in text and not only in an image, and an embedded map on the contact page. Ask Claude Code to generate a sitemap.
Step 6: Host it, connect it and submit it
Cloudflare Pages has a free plan with unlimited static requests and bandwidth and up to 500 builds a month, which is plenty for a small site. Netlify also has a free tier. Vercel's free Hobby plan is restricted to personal, non-commercial use, so a business site belongs on its paid plan or elsewhere. Connect the domain, then add the site to Google Search Console, verify it and submit the sitemap. Update the Google Business Profile website link to the new home page and make sure the name, address and phone match exactly.
Step 7: Keep it alive monthly
Once a month, add one or two real job write-ups with photos, refresh prices if they changed and check Search Console for pages getting impressions with no clicks. Tweak those titles first. Our guide on finding decaying pages in Search Console covers the routine. A local site that gets a real update every month tends to outlast one that was perfect on launch day and never touched again.
What this costs
Claude Pro is 20 dollars a month, or 17 dollars on annual billing, as of November 2026, and that covers Claude Code for a project this size. Cloudflare Pages and Netlify both offer free hosting tiers for static sites. A domain usually runs 10 to 20 dollars a year. Google Search Console, PageSpeed Insights and Google Business Profile are free. If you are a web designer selling this, one documented operator on this site prices AI-built local sites at 500 dollars each plus 97 to 197 dollar monthly maintenance retainers, though those are projected figures rather than confirmed results. Your biggest cost is the half day spent gathering real facts and checking every page.
When not to do this
If you have never used a terminal and do not want to, a website builder with a good local template is a better use of your weekend. If the business has no reviews, no photos and no clear service area, fix the Google Business Profile first; a new site will not rank for a business Google barely knows exists. And never use this to spin up sites for businesses that do not exist yet, or for areas the business does not serve. That is the pattern spam policies were written for, and when a site gets hit it usually loses most of its traffic, not just the bad pages.
Frequently Asked Questions
Can AI build a local SEO website?▾
Yes. Claude Code can write the pages, schema, sitemap and code for a fast static site in an afternoon. What it cannot supply is the real business information, reviews and photos that make the pages worth ranking, so plan to provide those yourself.
How many location pages should a local business have?▾
One for each area where you genuinely work and can say something specific. For most small service businesses that is somewhere between a handful and a couple of dozen. Hundreds of near-identical town pages risk being treated as scaled content or doorway pages under Google's spam policies.
Does Google penalize AI-written content?▾
Google's policies target content made mainly to manipulate rankings, however it was produced. AI-written pages that help customers with accurate, specific information are fine. Mass-produced pages that add nothing are the risk, whether a person or a model wrote them.
How fast will a new local website rank?▾
Usually weeks to months. One builder on this site reports a top three ranking within 24 hours for a narrow search, but that is self-reported and unusual. A strong Google Business Profile and real reviews usually matter more in the first months than the website does.
Where should I host a small business website for free?▾
Cloudflare Pages and Netlify both have free tiers that suit static sites. Vercel's free Hobby plan is for personal, non-commercial use only, so a business site belongs on a paid Vercel plan or another host.