Get the plugin
WP MCP/Guides/Guide

By · Published · Updated

Can Claude build a WordPress website? A step by step guide

Most answers to this question are videos. This one is a written walkthrough you can follow with a fresh WordPress install open in another tab.

Yes, Claude can build a WordPress website, but not from a chat window alone. Claude writes the copy and the block markup; it needs a connection to create pages on the site. With an MCP server such as the free WP MCP plugin installed, Claude builds pages, menus and settings directly, and every change can be undone.

What Claude can and cannot do on its own

Without a connection, Claude for WordPress is a writing and coding assistant. It can draft a home page, write block markup, a child theme or a small plugin, and explain where to paste each piece. It cannot log in, press Publish or see what is already on your site.

With a connection, Claude and WordPress work together directly: Claude reads your pages, creates and edits them, sets up menus and changes site settings by calling tools on the site. That connection is an MCP server. What is an MCP server explains the idea, and the WordPress MCP plugin page covers what WP MCP adds: 407 abilities (274 free, 133 Pro) and a snapshot before every write.

Three ways to connect Claude to WordPress

  • Claude Desktop, with the desktop bundle. Download a small bundle from the plugin’s Connection screen, double-click it and enter an application password. The easiest route.
  • Claude Code, with one command. A good fit if you already work in a terminal. See Claude Code and WordPress.
  • claude.ai or Claude Desktop, as a custom connector. This route signs in with OAuth, which ships switched off, so a site administrator has to enable it first.

The full setup for each is in Claude and WordPress. The Claude clients are the most tested path, so this walkthrough uses them.

Walkthrough: build a WordPress website with Claude

You need WordPress 6.9 or newer on PHP 8.1 or newer. Use a staging copy or a fresh install, not your live site, for the first run.

1. Install and activate WP MCP

Download the free plugin from https://github.com/wpmcp/wordpress-mcp/releases/latest/download/wpmcp.zip, then upload it under Plugins > Add New > Upload Plugin and activate it. With WP-CLI:

wp plugin install https://github.com/wpmcp/wordpress-mcp/releases/latest/download/wpmcp.zip --activate

Activation adds a wpmcp menu in wp-admin. It does not open the site to anyone: a client still needs valid WordPress credentials.

2. Create an application password

Open WP MCP > Connection and create an application password (or use Users > Profile > Application Passwords). Copy it straight away, because WordPress shows it once. A dedicated Editor or Administrator user for the agent is easier to audit and revoke than your own account. WordPress application passwords explains how they work.

3. Connect Claude

In Claude Desktop, download wpmcp.mcpb from the Connection screen, double-click it and enter the username and application password. In Claude Code, run the command the Connection screen shows with your site filled in. Then check the connection:

› List the post types on my site.

Claude calls list-post-types. A result means the connection and sign-in work.

4. Set the site basics

› Set the site title to "Harbor Street Bakery" and the tagline to
  "Bread and pastry, baked every morning in Portside".

Claude calls update-settings, which only accepts an allowlist of WordPress settings and validates each value.

5. Build the home page

Give Claude the facts. It cannot invent your opening hours.

› Build a home page as a draft. Sections: a hero with the headline
  "Fresh bread, every morning" and a button linking to /contact, three
  columns on our sourdough, pastries and coffee, and a short visit-us
  section with the address 12 Harbor Street. Do a dry run first and
  tell me what you plan to create.

This runs build-page, a free ability that composes a whole Gutenberg page from one validated spec. With dry_run it validates and reports without writing. Pages are created as drafts unless you ask for published, and the build is one atomic operation: if something fails partway, everything it created is removed.

Images are referenced from the Media Library. Upload your own first, or ask Claude to find openly licensed ones with search-stock-images and import-stock-image (both free).

6. Build the About and Contact pages

› Build an About page as a draft: our story in three short paragraphs
  from the notes below, then a two-column section for the two founders.
› Build a Contact page as a draft with our address, phone number,
  opening hours as a table, and an email link.

Each is another build-page call with its own operation_id. A working contact form needs a form plugin. With Contact Form 7 active, the free contactform7-write ability can create the form. Several other form plugins are covered too, some of them on Pro.

7. Add a menu and set the front page

› Create a menu called Main with Home, About and Contact, and assign
  it to the theme's primary menu location.
› Publish the three pages and make Home the static front page.

The first prompt runs create-menu, add-menu-item and assign-menu-to-location. This applies to themes that register menu locations, which list-menu-locations reports. If your theme has none, set up navigation in the Site Editor instead. The second prompt runs update-post to publish and update-settings for the front page.

8. Review the result

Open the site in a browser and read every page yourself. Claude can check its own work too:

› Read the home page back and list anything that looks off: empty
  sections, missing images, links that go nowhere.

get-page-snapshot returns the page outline, media and link inventory, and get-rendered-html returns the HTML a visitor receives. For small corrections, ask for exactly what should change:

› On the home page, change the hero headline to "Baked fresh at 6am"
  and leave everything else alone.

Claude uses update-block to change one block while the rest of the page stays byte-identical, or update-blocks to rewrite the page’s block content.

9. Undo a change you do not like

Every write returns an operation_id, and the snapshot behind it is saved before the change runs.

› Undo the headline change you just made.
› Undo everything from this session.

The first calls rollback-operation for that one change. The second calls rollback-session, which returns each object to its state from before the session touched it. You can also do this without Claude: the wpmcp screen in wp-admin lists recent operations with a Restore button on each row.

The free plugin keeps the last 20 operations and always keeps the most recent run whole. Pro keeps unlimited history. For how this differs from WordPress revisions, see WordPress revisions and undoing changes.

Page builders and WooCommerce

Everything above uses Gutenberg, which is covered by the free plugin. Page builders are different:

  • Elementor: building and deep editing Elementor pages (widgets, containers, templates, global styles) is Pro. build-page can target Elementor on Pro as well. See Elementor MCP.
  • Other builders: Bricks, Divi, WPBakery, Beaver Builder, Breakdance, Oxygen, Avada and Thrive Architect are handled by three Pro abilities: detect-builder, get-builder-content and update-builder-content.
  • WooCommerce: the core store surface is free: products, variations, bulk updates, orders, coupons, tax rates and sales reports. Shipping zones, payment gateway settings, webhooks and review moderation are on Pro. See MCP for WooCommerce.

What to expect

  • Claude does not see the rendered page unless you show it. It reads content and HTML, not pixels. For layout feedback, paste a screenshot into the chat.
  • Design judgement still needs a human. Claude produces a clean, sensible structure. Whether it fits your brand is your call, and you should expect a round or two of corrections.
  • Work on a staging copy first. Rollback covers what WP MCP changed, but a staging site lets you experiment freely before anything is public.
  • Build page by page. One page per prompt, reviewed before the next, gives better results than asking for a whole site at once, and it keeps each undo point small.
  • Risky tools are off by default. Permanent deletes, raw database writes and file edits stay disabled until the site owner opts in.

Next step

Install the free plugin on a staging site, then follow Claude and WordPress to connect, and run step 5 with your own home page.

Common questions

Can Claude build a WordPress website?

Yes, with a connection to the site. On its own Claude can only write the copy and code for you to paste in. With an MCP server such as the free WP MCP plugin installed, Claude creates the pages, menus and settings on the site itself, and every change can be undone.

Is there any MCP for WordPress?

Yes. WP MCP is a free, GPL WordPress plugin that turns a site into an MCP server with 407 abilities, 274 of them free. It is downloaded from GitHub releases, not from the WordPress.org plugin directory.

How to add WordPress MCP?

Upload wpmcp.zip under Plugins > Add New > Upload Plugin and activate it. Create an application password on the WP MCP > Connection screen, then add the site to Claude Desktop with the downloadable bundle or to Claude Code with one command.

Which AI tool is best for WordPress?

It depends on the job. A chat app suits content and page work, a coding agent suits theme and plugin development. WP MCP is tested most with Claude Desktop, the claude.ai connector and Claude Code. Cursor is supported, and ChatGPT works through OAuth but is not fully tested.

Does Claude work with Elementor or other page builders?

Gutenberg block pages are covered by the free plugin. Deep Elementor editing and the builder tools for Bricks, Divi, WPBakery, Beaver Builder and others are part of WP MCP Pro.

Can I undo what Claude changed on my site?

Yes. WP MCP saves a snapshot before every write. You can restore a single change with rollback-operation, a whole run with rollback-session, or click Restore on the wpmcp screen in wp-admin. The free plugin keeps the last 20 operations.

All WP MCP guides, or see every plugin integration. Topic: Get started and stay safe.