---
title: "Bulk Edit WordPress Posts with Claude: Preview First, Then Import"
url: "https://wpimportexport.com/claude-bulk-edit-wordpress-posts-with-ai-agent/"
description: "Let Claude write excerpts, titles or meta descriptions for many WordPress posts, review them first, and save them with a CSV import matched by ID."
type: post
published: 2026-11-28T15:00:00+00:00
modified: 2026-11-25T18:43:34+00:00
categories: ["AI", "Tutorials"]
tags: ["Abilities API", "AI Agents", "Claude", "Import Export by RockStarLab"]
docs_topics: ["Bulk updates and automation", "Using with AI agents"]
---

# Bulk Edit WordPress Posts with Claude: Preview First, Then Import

Some bulk edits can’t be done with find and replace: writing an excerpt for every post, shortening titles, rewriting meta descriptions so they match the content. Each post needs its own text. Claude can write that text, and with WordPress connected through MCP it can also read the posts and save the results. With **Import Export by RockStarLab**, Claude reads the posts with an export preview, writes the new values into a CSV file, uploads it and runs a normal import that updates the posts by ID. You see every new value before anything changes.

**Free:** every action used here is in the free plugin. The test below used Import Export by RockStarLab 2.2.13, WordPress 7.1 and MCP Adapter 0.7.1.

## Short Answer

Connect Claude to the site through MCP Adapter. Ask Claude to read the posts first and show you the new values without changing anything. When you approve them, Claude writes a CSV with ID, title and the changed field, uploads it with `rsl-ie/upload-create`, `upload-chunk` and `upload-complete`, checks it with `rsl-ie/import-validate` and starts the import with `rsl-ie/import-start`, matching posts by ID and skipping rows that don’t match. The import shows up in the Jobs Log like any other.

## Before You Start

- Claude connected to the site: see [Claude Code](https://wpimportexport.com/connect-claude-code-to-wordpress-mcp/) or [Claude Desktop](https://wpimportexport.com/connect-claude-to-wordpress-mcp-server/).
- An administrator account for the connection.
- A backup, so you can return to the old texts at any time.

## Step 1: Ask for a Preview, Not a Change

Our test site had three posts in the categories Brewing Guides, Coffee Origins and Roasting Notes without excerpts. The first request only reads:

```
With Import Export by RockStarLab, find published posts in the categories brewing-guides, coffee-origins and roasting-notes that have no excerpt. Read their content and write an excerpt of up to 160 characters for each one, based only on what the post says. Show me a table with ID, title and the new excerpt. Do not change anything yet.
```

Claude called `rsl-ie/export-preview` for posts with a `tax_query` on the three categories and the fields ID, title, excerpt and content. All three had an empty excerpt. Claude returned the table:

| ID | Title | New excerpt |
| --- | --- | --- |
| 127873 | Kenya AA Roast Profile | A washed Kenya AA from Nyeri, roasted light-medium: our roast curve, development time and the blackcurrant and grapefruit notes it gives. |
| 127872 | How to Dial In a V60 for Light Roasts | A finer grind, 96 °C water and a two-stage pour: a V60 recipe for light roasts, with what to change when the cup is sour or bitter. |
| 127871 | Ethiopia Guji Natural: Brewing Notes | A natural-process coffee from Guji, Ethiopia, and the pour-over recipe we use for it: 15 g to 250 g, medium-fine, blueberry and dark chocolate. |

This is the point to read the texts. Ask for changes in the same chat (“make the second one shorter”, “don’t mention grams”) until they are right. Nothing on the site has changed so far.

## Step 2: Approve and Import

The second request lets Claude save the excerpts, and says how:

```
Save these excerpts with Import Export by RockStarLab. Write a CSV with the columns ID, post_title and post_excerpt, upload it, and import it as Blog Posts: match existing posts by ID, update them, and skip rows without a match. Do not create posts and do not change other fields. Tell me the result of the import job.
```

Claude made these calls:

1. `rsl-ie/upload-create`, `rsl-ie/upload-chunk` and `rsl-ie/upload-complete` to upload the 573-byte CSV. The response listed the three columns and a preview of the rows.
2. `rsl-ie/import-prepare`, which suggested mapping each column to the field with the same name.
3. `rsl-ie/import-validate` with the mapping and the options `duplicate_check: ID`, update for matches and skip for the rest. It answered `valid: true` with 3 items.
4. `rsl-ie/import-start`, which queued job 66942, and `rsl-ie/job-get` until the job reported `completed`: 3 processed, 3 successful, 0 failed.

The job appears in **Import Export by RockStarLab > Jobs Log**, where you can open its details and log:

![Jobs Log row for job 66942, Import Blog Posts, status Completed, 100%, 3 of 3 items](https://wpimportexport.com/wp-content/uploads/2026/11/agent-import-job-1024x92.webp)

_The import Claude started, in the Jobs Log._

In the block editor, each post showed its new excerpt in the post summary:

![Block editor post summary of How to Dial In a V60 for Light Roasts showing the excerpt written by Claude](https://wpimportexport.com/wp-content/uploads/2026/11/agent-excerpt-editor.webp)

_The new excerpt in the post editor._

The title column was imported with the same values; the content, categories and publish dates didn’t change.

## Why a CSV Instead of Editing Posts One by One

Through MCP Adapter, WordPress itself gives Claude only read-only abilities for site, user and environment information. Reading the posts, the upload and the import with its checks all come from Import Export by RockStarLab, and that is what makes the edit reviewable:

- **One reviewable change.** The file holds exactly what will be written, and the import touches only its columns.
- **Safe matching.** Matching by ID with Skip for rows that don’t match means a wrong ID can’t create a new post.
- **A record.** The Jobs Log keeps the job, its log and the file, so you can see later what was changed and when.
- **Scale.** The same calls work for 3 posts or 3,000; the import runs in the background in batches.

## Other Bulk Edits to Ask For

- “Rewrite the Yoast meta descriptions of posts in the News category that are longer than 160 characters.” The column is `_yoast_wpseo_metadesc`.
- “Set every post in the Archive category that is older than 2020 to draft, and show me the list first.” The column is `post_status`.
- “Fix the capitalization of all post titles in the Guides category to sentence case, and show me the list first.”

For edits that follow one rule, such as replacing a phrase or a URL everywhere, you don’t need Claude to write each value; see [bulk find and replace with a preview](https://wpimportexport.com/bulk-find-replace-wordpress-posts/).

## Things to Know

- Tell Claude which fields it may change and to match by ID. Without that, an import may use other defaults, such as matching by slug or creating missing posts.
- Claude writes the texts from the content it reads. Check facts, numbers and names in the preview table, as you would with any draft.
- Long texts in many posts make large previews. For hundreds of posts, ask Claude to work in groups of 20 to 50 and show each group before importing.
- Claude asks for permission before each tool call unless you allowed the WordPress tools for the conversation. Keep that on for imports.

## FAQ

### Can Claude bulk edit WordPress posts?

Yes. Connected through MCP Adapter, Claude can read posts with the plugin’s export preview, write new values into a CSV and import it to update the posts by ID.

### Will Claude change my posts without asking?

Ask for a preview first and for the import only after you approve the values. Claude also asks for permission before each tool call unless you turned that off.

### Which fields can Claude change this way?

Any field the post import accepts: title, excerpt, content, status, date, categories, tags, custom fields and SEO fields of Yoast SEO or Rank Math.

### Can I undo a bulk edit made by Claude?

Not from the plugin. Restore a backup, or export the affected columns before the change and import that file again.

## Related Guides

- [How to Connect Claude Code to WordPress via MCP](https://wpimportexport.com/connect-claude-code-to-wordpress-mcp/)
- [How to Connect Claude Desktop to WordPress with MCP](https://wpimportexport.com/connect-claude-to-wordpress-mcp-server/)
- [How to Bulk Update Existing WordPress Posts without Creating Duplicates](https://wpimportexport.com/how-to-bulk-update-existing-wordpress-posts-without-creating-duplicates/)
- [Bulk Find and Replace in WordPress Posts (With a Preview First)](https://wpimportexport.com/bulk-find-replace-wordpress-posts/)

Before letting an agent import, [back up the site](https://wpimportexport.com/how-to-create-a-wordpress-website-backup-and-restore-it/), or ask your AI agent to start the backup.

Get the free plugin on [WordPress.org](https://wordpress.org/plugins/import-export-by-rockstarlab/).
