The job: “Build a simple website with Claude and put it online with Netlify”

Deploy a website with Claude and Netlify (MCP, CLI or Drop)

Deploy a website with Claude: Claude Code builds it, Netlify MCP or CLI puts it online. Also Drop, Claude Design, free credits and making it public.

  • Level Beginner
  • Time 30-60 minutes
  • Works with
    • Claude Code
    • Claude Desktop
    • Claude.ai
On this page14 sections

To deploy a website with Claude, let Claude Code write the site files on your computer, then have it publish them to Netlify through Netlify’s MCP server (claude mcp add --transport http netlify https://mcp.netlify.com/mcp) or the Netlify CLI. No account yet? netlify deploy --allow-anonymous gives you a live test URL that you can claim within one hour, and Netlify’s Free plan costs $0.

At the end of this guide you’ll have a small site (a one-page portfolio, event page or menu) live at a netlify.app address, and a repeatable way to update it by asking Claude.

Netlify is a hosting service that puts website files on the internet. Netlify’s MCP server is a plug-in that lets Claude talk to your Netlify account: create projects, deploy them and check their status.

What you’ll have at the end

  • A folder on your computer with your site’s files (HTML, CSS, images).
  • A live URL you can share.
  • Netlify connected to Claude Code, so “deploy my latest changes” works as a prompt.

What you need

  • Claude Code, signed in with a Pro, Max, Ultra, Team or Enterprise plan or a Claude Console account.
  • Node.js. Netlify’s Claude Code guide recommends Node 24 or newer; the Netlify CLI itself needs 18.14.0 or later. Check with node --version.
  • A Netlify account, or none yet. Netlify says Claude Code can prompt you to log in or sign up when needed.
  • About 30 minutes, most of it spent deciding what the page should say.

Pick your publishing route

RouteCommand or placeUpdates laterGood for
Netlify MCP in Claude CodeAsk Claude to deployAsk againMost people following this guide
Netlify CLI (Claude can run it)netlify deploy --prodRun againIf you prefer to see the command
Netlify Dropapp.netlify.com/dropDrag the folder againNo terminal at all
Anonymous deploynetlify deploy --allow-anonymousClaim within 1 hour or it’s removedA quick, throwaway preview
Claude DesignShare > More formats and apps > NetlifyEdit the design, send againA design you made in Claude Design
Netlify connector in claude.ai or Claude DesktopAsk Claude in a chatAsk againManaging projects and deploy status without a terminal

Is it free?

Yes, for a small site. Netlify’s Free plan is $0 with a 300-credit monthly limit (pricing page, checked 2026-11-30). Netlify says the Free plan has hard limits that “cannot be exceeded or incur any costs”: if you run out, you don’t get a bill.

What uses creditsCost
Production deploy15 credits each
Bandwidth20 credits per GB
Web requests2 credits per 10,000
Compute (functions)10 credits per GB-hour

A small static site updated a few times a week fits easily. Twenty production deploys in a month would use the whole 300 on their own, so test with draft deploys, which don’t count as production. The Personal plan includes 1,000 credits a month. Monthly credits reset each cycle and don’t roll over (except on larger Pro plans).

On the Claude side, Claude Code needs a Pro, Max, Ultra, Team or Enterprise plan or a Console account; Claude’s free plan doesn’t include it.

Step-by-step

1. Install Claude Code and make a project folder

On macOS, Linux or WSL:

curl -fsSL https://claude.ai/install.sh | bash

On Windows PowerShell:

irm https://claude.ai/install.ps1 | iex

Claude Code’s docs also list Homebrew and WinGet installs; those don’t update themselves. Open a new terminal, run claude --version, then make a folder and start Claude in it:

mkdir my-site
cd my-site
claude

Claude Code asks you to sign in the first time.

2. Ask Claude to build the site

Be specific about content and keep it static (plain HTML and CSS) for your first site. Static sites need no build step, which removes the most common deploy errors. Use the first prompt under “Prompts to try” below.

When Claude proposes creating files, it may ask for approval. Read the file list, then approve. For a plain HTML site, opening index.html in your browser is enough to preview it.

What we tested (re-run 2026-11-30): we ran that exact prompt with claude -p in an empty folder. Claude wrote index.html and styles.css with all three prices, the contact email, a phone viewport tag and a single-column layout on phones (three columns from 720px wide), then explained how to preview. It also said it hadn’t seen the page in a browser, so check it yourself. Signing in at step 3, and steps 4 to 7, need a live Netlify account and were not run for this guide; they follow Netlify’s own docs. Our test log is in research/tests/netlify-2026-11-30/.

3. Connect Netlify’s MCP server to Claude Code

Exit Claude Code (/exit) and run Netlify’s documented command. Netlify’s docs now use this address (older guides showed netlify-mcp.netlify.app, which Netlify says still works):

claude mcp add --transport http netlify https://mcp.netlify.com/mcp

We ran it on 2026-11-30: the server saved, and claude mcp list showed “Needs authentication”. You sign in with /mcp (we didn’t, because the test had no Netlify account).

If your company network blocks remote MCP servers, Netlify gives a local alternative:

claude mcp add netlify -- npx -y @netlify/mcp

Start claude again and type /mcp to confirm netlify is listed and connected. More detail is on our Netlify MCP server profile.

One-command alternative (untested here): Netlify’s Claude Code guide says to ask Claude to run npx netlify@latest init in your project folder. It signs you in, installs Netlify’s agent skills, adds the Netlify MCP server for the agents it finds, and links the folder to a Netlify project.

Optional: Netlify publishes “agent skills” (instruction packs that teach Claude Netlify’s features). Netlify’s quickest route is to paste this into Claude Code together with what you want to build: fetch https://netlify.ai to get me set up with Netlify. If Claude gives you a login link, open it and sign in. To install the skills for Claude Code from the terminal:

npx -y skills add netlify/context-and-tools --skill '*' --yes --agent claude-code

4. Log in to Netlify

If the Netlify CLI isn’t installed yet, ask Claude to install it or run npm install -g netlify-cli. Then ask Claude to help you log in, or run netlify login yourself. If your company uses Netlify single sign-on, Netlify warns you may need your work login rather than a personal one.

5. Deploy a draft first, then production

Netlify’s Claude Code guide lists three deploy types:

  • Draft deploy (netlify deploy): a test URL that isn’t your live site.
  • Production deploy (netlify deploy --prod): your live site, and the one that uses 15 credits.
  • Anonymous deploy (netlify deploy --allow-anonymous): no login; see below.

Ask Claude for a draft deploy, open the URL it gives you, check the page on your phone too, then ask for production. Claude should tell you the live URL when it’s done.

6. Make the site public

This step surprises people. On Netlify’s credit-based plans, new projects can start private by default: only you (the Team Owner, on Free and Personal plans) can view them, behind a Netlify login. If a friend sees a login screen instead of your page, that’s why.

Once the project has at least one successful production deploy, open it in Netlify and select Make public. You can also change it under Project configuration > General > Visitor access > Project visibility. Previews stay private unless you change their setting too.

7. Update the site later

Open the folder, run claude, describe the change, review it locally, then ask Claude to deploy again (draft first if the change is big). Your deploys are listed on the project’s Deploys page in Netlify.

The anonymous deploy command, explained

People often search for this exact line:

npm i -g netlify-cli
netlify deploy --allow-anonymous

The first line installs the Netlify CLI. The second deploys without logging in (not run in our test): Netlify creates a temporary project with a live URL that you can claim within one hour by logging in or signing up. Unclaimed projects are removed after that hour. When you claim it, it takes your team’s default visibility (so it may turn private; see step 6).

The CLI’s own help shows a full example for a folder of plain files: netlify deploy --allow-anonymous --dir ./public --no-build. For this guide’s site, use --dir . from inside my-site.

Netlify suggests anonymous deploys for temporary projects and for testing whether a deploy problem is really a login problem. Don’t use them for anything sensitive: the URL is live for anyone who has it.

No-terminal fallback: Netlify Drop

Go to app.netlify.com/drop and drag your site folder (or a zip file) into the drop zone. Netlify says you get a URL ending in netlify.app in seconds, and no Git repository is needed. We did not test Drop for this guide; this follows Netlify’s Drop quickstart.

  • Without logging in, Netlify protects the URL with a temporary password until you claim it by logging in or signing up. So “no account” works for trying it, not for sharing.
  • Logged in, you can even drop a project that still needs a build step: Netlify detects the framework and builds it. Log in to the right team first.
  • After claiming, credit-based plans with private-by-default keep the project private until you select Make public (step 6).
  • To update, drag the new folder onto the drop area under Production deploys on the project page. It goes straight to production.

If the page doesn’t show up, Netlify’s tip is to make sure the folder has an index.html.

Using Claude Desktop or claude.ai instead

Netlify is in Claude’s connector directory (connector URL https://mcp.netlify.com/mcp). One connection works in both claude.ai and Claude Desktop:

  1. Go to Customize > Connectors, search for Netlify, select Connect and authorize your Netlify account. On Team and Enterprise plans an admin first adds the connector under Organization settings > Connectors.
  2. Allow the Netlify tools when Claude asks, and turn on code execution with network access in Claude’s settings, so Claude can reach Netlify when it builds and deploys.
  3. Set tool permissions: Netlify recommends that Claude can read Netlify context without approval, while you approve actions that change Netlify resources.

Netlify notes it is a remote connector, not a local desktop extension. We did not test this route. Good prompts: “Show me my Netlify projects”, “What’s the status of my latest deploy?” or “Deploy this project to Netlify.” For building a new site from files on your computer, Claude Code is the more direct route, because it works with those files directly.

Deploying a Claude Design to Netlify

If you made the page in Claude Design, you can publish it without Claude Code. Netlify’s setup guide:

  1. In your Claude Design project, select Share, then More formats and apps at the bottom.
  2. Find Netlify and select Connect. That opens Claude’s connector settings; authorize Netlify once.
  3. To deploy, go to Share > More formats and apps and select Send next to Netlify under Your destinations, or type Deploy to Netlify in the Claude Design chat.

Claude bundles the files and gives you a link to the live site and to the project in your Netlify dashboard. Designs deploy as static sites, and any data is saved in the visitor’s browser, not in a shared database. Netlify suggests its Agent Runners when you need forms, a database or login. We did not test this route.

Prompts to try

Build a one-page website in this folder using only HTML and CSS, no frameworks. It's for my weekend pottery classes: a headline, a short "about me" paragraph, three class options with prices (Beginner wheel 45 USD, Glazing 35 USD, Private lesson 80 USD), a contact email of hello@example.com, and a footer. It must look good on a phone. Put everything in index.html and styles.css, then tell me how to preview it.
Use the Netlify MCP server to create a new Netlify project for this folder and do a draft deploy. Give me the draft URL and wait. Don't deploy to production until I say "go live".
Change the Glazing price to 40 USD, add a "Gift vouchers" section under the classes, check the page still works at phone width, then deploy to production on Netlify, tell me the live URL, and tell me whether the project is public or private.

Troubleshooting

  • claude: command not found after install. Open a new terminal window. If it still fails, the install folder isn’t on your PATH; Claude Code’s setup page covers the fix.
  • Netlify tools missing in Claude Code. Run /mcp and re-authenticate, or remove and re-add the server with claude mcp remove netlify.
  • Login or “wrong account” errors. Run netlify status to see which account you’re on, then netlify login. If the CLI itself is broken, reinstall with npm install -g netlify-cli and check netlify --help.
  • Visitors see a Netlify login page. The project is private. Use Make public (step 6).
  • Node errors. Run node --version. With nvm: nvm install 24 then nvm use 24.
  • The site deployed but looks unstyled. Usually a wrong file path for styles.css. Ask Claude to check that every link in index.html points to a file that exists.

FAQ

Can Claude deploy to Netlify by itself? Yes. With the Netlify MCP server or the CLI, Claude Code can create the project and run the deploy. Keep production deploys on your approval (prompt 2 does this).

Do I need a Netlify account? Not to try it: an anonymous deploy or Netlify Drop works without one. An anonymous CLI deploy is removed after an hour unless you claim it, and a Drop site stays behind a temporary password until you claim it. To share or update the site, claim it with an account.

Is it free? Netlify’s Free plan is $0 with 300 credits a month and hard limits that can’t incur costs. Each production deploy uses 15 credits. Claude Code itself needs a paid Claude plan or a Console account.

Can I deploy something I made in claude.ai? Yes, two ways: a Claude Design project can send to Netlify from Share > More formats and apps (see above), and the Netlify connector in claude.ai can deploy a project once code execution with network access is on.

MCP server or CLI? Both work. The MCP server lets Claude manage projects in plain language; the CLI is what Netlify’s own troubleshooting uses, and you can read every command.

Can I use my own domain? Netlify’s Free plan lists custom domains with SSL. Set it up in the Netlify dashboard after your first deploy.

Watch out for

  • Don’t use anonymous deploys for anything sensitive. They’re public to anyone with the link until removed.
  • Netlify says never to commit Netlify CLI config files or personal access tokens to a repository.
  • Approve production deploys yourself. Each one uses credits, and stopping at a draft gives you a review step.

Next steps

Sources

Facts checked against these sources on . Page updated . How we check facts

  1. docs.netlify.com/build/build-with-ai/agent-setup-guides/agent-setup-overview/ (opens in a new tab)
  2. docs.netlify.com/build/build-with-ai/agent-setup-guides/set-up-claude-code-for-netlify/ (opens in a new tab)
  3. docs.netlify.com/build/build-with-ai/agent-setup-guides/set-up-claude-for-netlify/ (opens in a new tab)
  4. docs.netlify.com/build/build-with-ai/agent-setup-guides/set-up-claude-design-for-netlify/ (opens in a new tab)
  5. docs.netlify.com/start/quickstarts/netlify-drop-quickstart/ (opens in a new tab)
  6. docs.netlify.com/manage/accounts-and-billing/billing/billing-for-credit-based-plans/credit-based-pricing-plans/ (opens in a new tab)
  7. docs.netlify.com/deploy/create-deploys/ (opens in a new tab)
  8. docs.netlify.com/manage/security/secure-access-to-sites/project-visibility/ (opens in a new tab)
  9. docs.netlify.com/api-and-cli-guides/cli-guides/get-started-with-cli/ (opens in a new tab)
  10. netlify.com/pricing/ (opens in a new tab)
  11. cli.netlify.com/commands/deploy/ (opens in a new tab)
  12. claude.com/marketplace/connectors/netlify (opens in a new tab)
  13. code.claude.com/docs/en/quickstart (opens in a new tab)
  14. code.claude.com/docs/en/setup (opens in a new tab)
  15. code.claude.com/docs/en/mcp (opens in a new tab)

Related guides

All guides