Imagine telling an AI assistant, “Write and publish a blog post about the best productivity tools for 2025” — and watching it research the topic, draft the content, format it properly, and publish it live to your WordPress blog, all without you touching the WordPress dashboard. That’s exactly what the Cloud WordPress MCP (Model Context Protocol) makes possible when paired with Claude Code.

In this guide, you’ll learn what the WordPress MCP is, how to connect it to Claude Code, and how to build a reliable workflow for automatically publishing polished, well-structured articles.


What Is the Cloud WordPress MCP?

MCP stands for Model Context Protocol — an open standard developed by Anthropic that lets AI assistants like Claude connect to external tools, APIs, and services in a structured, permission-aware way. Rather than Claude simply knowing about WordPress, the WordPress MCP gives Claude the ability to act on your WordPress site directly.

The Cloud WordPress MCP specifically integrates with WordPress.com sites (including custom-domain blogs hosted on WordPress.com). Through it, Claude can:

  • Create, update, and delete posts and pages
  • Manage categories and tags
  • Upload and reference media
  • Read site settings, theme context, and block patterns
  • Query site statistics and existing content

All of this happens through natural language. You describe what you want; Claude figures out which API calls to make.


Prerequisites

  1. Claude Code installed on your machine (npm install -g @anthropic-ai/claude-code)
  2. A WordPress.com account with a blog (free or paid plan both work)
  3. The WordPress MCP server configured in Claude Code (available as a built-in plugin via the Claude Code plugin ecosystem)
  4. Your blog URL — for example, blog.ameya.page or yourblog.wordpress.com

Step 1: Connect the WordPress MCP to Claude Code

Claude Code supports MCP servers through its plugin system. The WordPress MCP is available as a cloud-hosted server, which means you don’t need to run anything locally — you just authenticate and go.

Authenticate via WordPress.com OAuth

When you first invoke a WordPress MCP tool in Claude Code, you’ll be prompted to log in with your WordPress.com credentials. This uses OAuth 2.0, so your password is never stored — only a scoped access token is kept. The token grants Claude permission to read and write content on sites you own.

Once authenticated, Claude can discover all WordPress.com sites associated with your account automatically.

Verify the Connection

In a Claude Code session, you can verify the connection by asking:

List all my WordPress sites.I think that it is sure because if you see

Claude will call the wpcom-mcp-user-sites tool and return your site list with URLs, platform types, and status information.


Step 2: Understand the Publishing Workflow

The WordPress MCP exposes a rich set of tools that Claude chains together intelligently. Here’s what happens under the hood when you ask Claude to publish an article:

1. Theme Context Discovery

Before writing a single word, Claude calls wpcom-mcp-site-editor-context to fetch your active theme name and design presets (color palette, typography scale, spacing tokens). This ensures the content uses the correct block classes and preset slugs rather than hard-coded hex values — keeping your posts visually consistent with your site’s design system.

2. Content Composition in Block Markup

WordPress uses the Gutenberg block format — structured HTML wrapped in block comment annotations. Claude generates this format natively, so the content saves cleanly and is fully editable in the block editor later — no conversion step needed.

<!-- wp:paragraph -->
<p>Your text here.</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 class="wp-block-heading">Section Title</h2>
<!-- /wp:heading -->

3. Metadata Assignment

Claude sets SEO metadata, categories, tags, and an excerpt as part of the same API call. You don’t need a separate SEO plugin step — it all happens in one operation.

4. Status Control: Draft vs. Publish

The status field controls whether the post goes live immediately ("publish") or is saved for review ("draft"). By default, Claude creates drafts — a safe default that lets you review before going live. To publish directly, explicitly say so in your prompt.


Step 3: Writing Prompts That Produce Great Posts

The quality of auto-published content depends heavily on how you prompt Claude. Here are patterns that consistently produce high-quality results:

The Full-Specification Prompt

Write and publish a blog post on blog.ameya.page about [TOPIC].
- Audience: [WHO WILL READ THIS]
- Tone: [conversational / technical / authoritative]
- Length: ~[N] words
- Include: introduction, 4-5 H2 sections, a code example, and a conclusion
- Add tags: [tag1, tag2, tag3]
- SEO description: [one sentence summary]
- Publish status: draft (I'll review first)

The Research-Then-Write Prompt

Search the web for the latest news about [TOPIC], then write and
publish a summary post on blog.ameya.page. Include links to sources,
use a neutral journalistic tone, and add the category "News".

The Series Prompt

Create a 3-part blog series on blog.ameya.page about [BROAD TOPIC].
Part 1: [subtopic] - publish as draft
Part 2: [subtopic] - publish as draft
Part 3: [subtopic] - publish as draft
Use consistent H2 structure across all three posts.

Step 4: Automating Recurring Posts with Scheduled Tasks

Claude Code supports scheduled tasks — recurring jobs that run automatically on a cron schedule. This is where automation gets genuinely powerful: you can set up Claude to publish a weekly roundup, a monthly industry report, or a daily quote post with zero manual intervention.

Create a scheduled task that runs every Monday at 8am:
Search the web for the top 5 AI news stories from the past week.
Write a "Weekly AI Roundup" post on blog.ameya.page summarizing
each story in 2-3 sentences with a link to the source.
Add the category "AI News" and tag it "weekly-roundup".
Publish immediately (status: publish).

Claude Code will store this as a SKILL.md file and trigger it automatically each Monday morning. The WordPress MCP handles the actual publishing — no server, no cron job, no extra hosting required on your end.

Cron Expression Quick Reference

ScheduleCron Expression
Every day at 9am0 9 * * *
Every Monday at 8am0 8 * * 1
First of every month0 9 1 * *
Weekdays at 7:30am30 7 * * 1-5

Step 5: Managing Categories and Tags Programmatically

Good taxonomy makes your blog discoverable. The WordPress MCP lets you manage categories and tags as part of the same publishing flow. Ask Claude to check existing categories before creating new ones to avoid duplicates:

Check if a "Tutorials" category exists on blog.ameya.page.
If not, create it. Then publish this post under that category.

Claude will call categories.list first, then conditionally call categories.create only if the category doesn’t exist — idempotent behavior that’s safe to run repeatedly.


Step 6: Safety and Review Best Practices

Auto-publishing is powerful, but a few guardrails will save you from embarrassing mistakes:

  • Always draft first for important posts. For evergreen content or brand-representing articles, use status: draft. Claude will give you an edit link to review before going live.
  • Check content warnings. After every posts.create call, the API response includes a _content_warnings field. If WordPress silently stripped any blocks or HTML elements, this field lists exactly what was removed.
  • Audit scheduled posts periodically. Scheduled auto-posts pull from live web searches. Set a monthly reminder to review recent auto-published posts and archive any that feel off-brand.
  • Confirmation for destructive operations. The WordPress MCP enforces a confirmation step before any delete or permanent operation — Claude describes exactly what it’s about to delete and waits for your explicit “yes”.

Real-World Use Cases

  • Developer blogs: Auto-publish release notes and changelogs by piping GitHub release data through Claude into WordPress
  • News aggregators: Weekly curated roundups assembled from RSS feeds or web searches, published every Sunday night
  • Course creators: Lesson summaries and resource posts generated from a course outline, published as a companion blog
  • Personal knowledge bases: Book notes, article summaries, and reading logs auto-published from highlights and annotations
  • Product blogs: Feature announcements drafted from a product spec document and published to a company blog

Conclusion

The Cloud WordPress MCP turns Claude Code from a coding assistant into a full content publishing partner. By combining Claude’s language capabilities with direct WordPress API access, you get a workflow where writing, formatting, categorising, and publishing happen in a single natural-language instruction — no context-switching, no copy-pasting, no dashboard required.

The sweet spot is structured, recurring content — roundups, summaries, announcements, and series — where consistent format matters and speed is an asset. For high-stakes flagship content, use it to draft and let your human voice do the final polish.

Start simple: ask Claude to write and draft your next post. Once you see how clean the output is, you’ll wonder why you ever opened the WordPress editor manually.

Leave a Reply

Trending

Discover more from Mind, Machine and Meaning

Subscribe now to keep reading and get access to the full archive.

Continue reading