Decorative doodle

Publish to WordPress from Claude Code

Claude Code can create and schedule WordPress posts and pages through Postiz. Add the Postiz MCP server with one command, sign in with OAuth, connect your WordPress site in Postiz, and ask Claude Code to publish a markdown file as a post with a featured image, or create a new page, from the command line.

Setup GuideGitHub

Please make sure there is always a human in the loop.

Last updated: September 2026

Decorative doodleDecorative doodle

How to post to WordPress from Claude Code

Add the Postiz MCP server to Claude Code once, sign in with OAuth, connect WordPress in Postiz, and then describe the post in plain language. Setup takes about a minute.

Setup once, then just ask

# One-time setup: add the Postiz MCP server (OAuth, no API key)
claude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic

# Or install the Postiz skill instead
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key

# Then ask Claude Code:
> Publish docs/blog/v2-4-release.md to
  WordPress as a post with ./assets/cover.png
  as the featured image, tomorrow at 8am

Claude Code: Done! WordPress post scheduled
  for tomorrow at 8:00 AM with featured image.

What can Claude Code do on WordPress?

On WordPress, Claude Code can publish a post or a page with a title and a featured image to any site you have connected in Postiz.

📝

Posts & Pages

Create both blog posts and static pages. Just say which one you want.

🖼

Featured Images

Upload and set featured images for your posts and pages. Eye-catching thumbnails drive more clicks from your site.

📄

Content Management

Manage your WordPress content by asking Claude Code. Create, schedule, and organize posts without touching the admin panel.

📅

Scheduled Publishing

Schedule posts and pages for future publication with precise timestamps. Plan your content calendar in advance.

🤖

AI-Powered Workflows

Let AI agents draft, format, and publish your WordPress content. From idea to published post without manual intervention.

🔄

Multi-Site Support

Connect multiple WordPress sites and publish to any of them. Manage all your sites from a single Postiz account.

How does Claude Code post to WordPress through Postiz?

You describe what you want in plain language and Claude Code handles the Postiz calls for you. Here is how a typical conversation goes.

1

Find Your WordPress Integration

Ask Claude Code whether your WordPress account is connected. It also checks which options the platform supports.

Example conversation

> Is my WordPress account connected to Postiz?

Claude Code: Yes — your WordPress account is connected
  and ready. Want me to post something?
2

Prepare Your Content

Write your content and optionally upload a featured image. WordPress supports HTML content for rich formatting.

Example conversation

> Draft a WordPress post about our new
  feature launch

Claude Code: Here's a draft for WordPress:
  "We just shipped something big..."
  Want me to add media and schedule it?
3

Create Your Post

Create a WordPress post or page with your content, title, featured image, and content type settings.

Example conversation

> Yes — add screenshot.png and schedule
  it for tomorrow at 9am

Claude Code: Done! Scheduled on WordPress for
  tomorrow at 9:00 AM.

WordPress Settings Reference

Mention any of these in plain language and Claude Code sets them for you. These are the WordPress options it can apply to any post.

FieldTypeDescription
__typestringMust be "wordpress"
titlestringPost or page title (min 2 characters)
main_imageobjectFeatured image: {id: string, path: string}
typestringContent type: "post" or "page"

Common Configurations

Ask Claude Code for any of these common WordPress publishing scenarios and it applies the matching settings.

Simple Blog Post

Just ask

> Post it with: Simple Blog Post

Claude Code: Got it. Applying:
  title: Getting Started with WordPress Automation
  type: post

Blog Post with Featured Image

Just ask

> Post it with: Blog Post with Featured Image

Claude Code: Got it. Applying:
  title: 10 Tips for Better Code Reviews
  main_image: id=img-abc123, path=https://uploads.postiz.com/code-reviews.jpg
  type: post

Static Page

Just ask

> Post it with: Static Page

Claude Code: Got it. Applying:
  title: About Our Company
  main_image: id=img-xyz789, path=https://uploads.postiz.com/about-hero.jpg
  type: page

Example prompts for WordPress in Claude Code

These are prompts you can type into a Claude Code session, or pass to claude -p in a script. Claude Code reads your repo, calls Postiz, and confirms before publishing.

Create a page instead of a post

Claude Code

> Create a WordPress page titled "Changelog"
  from CHANGELOG.md

Claude Code: type: page, title: Changelog.
  Ready to publish, approve?

Blog post with featured image

Claude Code

> Publish ./posts/scaling-postgres.md as a
  WordPress post with ./assets/pg.png as the
  featured image, Wednesday 9am

Claude Code: Uploaded pg.png as main_image.
  Scheduled for Wednesday 9:00 AM.

Release post on tag, headless

Claude Code

$ claude -p "Write a WordPress post summarizing
  the latest git tag and schedule it via Postiz
  for 9am tomorrow."

# Add to your release pipeline

WordPress limits and gotchas to know

WordPress publishing through Postiz has a few required settings that Claude Code handles for you.

  • ✓title is required (minimum 2 characters).
  • ✓type is required and must be post or page. Say page when you want a static page.
  • ✓main_image is the featured image, uploaded through Postiz and passed with an id and path.
  • ✓The WordPress site must be connected in Postiz first; if you run several sites, name the one you mean.

What is Claude Code?

Claude Code is Anthropic's agentic coding tool that lives in your terminal. It handles software engineering tasks — writing features, fixing bugs, and answering questions about your codebase — and it can run shell commands and MCP tools like Postiz.

Not the same as Claude Cowork (Anthropic's desktop agent for knowledge workers) or the Postiz connector for Claude.ai (chat in the browser or desktop app). Claude Code runs in your terminal and IDE and can read your repository while it writes WordPress posts.

💻

Terminal & IDE Native

Claude Code runs in your terminal, with extensions for VS Code and JetBrains. You type what you want in plain English and it handles Postiz for you.

🔧

Agentic Execution

Claude Code plans and works through multi-step tasks on its own — discovering channels, uploading media, and scheduling posts — and asks for permission before it acts.

⚡

Parallel Tasks

Run several Claude Code sessions side by side, or spawn subagents in one. Schedule posts to different platforms while it handles other coding work.

How Postiz Works with Claude Code

Claude Code discovers Postiz through the Postiz skill or the Postiz MCP server. It reads the SKILL.md (or the MCP tool list) to learn what it can do, then chains calls together for social media workflows.

  • ✓Install the Postiz skill, or add the Postiz MCP server with claude mcp add
  • ✓Claude Code discovers the Postiz tools over MCP, or reads SKILL.md when you use the skill
  • ✓MCP route: sign in with OAuth, no API key. Skill route: set POSTIZ_API_KEY
  • ✓Claude Code asks for permission before running commands
  • ✓Works alongside your coding tasks in parallel

Install Postiz

# Option A: add the Postiz MCP server
claude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic

# Option B: install the Postiz skill
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key

# Then just ask
claude "list my social media integrations"

WordPress Publishing with Claude Code

Tell Claude Code what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.

💻

Just Ask Claude Code

Terminal and IDE integration

Tell Claude Code what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.

Claude Code CLI

$ claude "Post to Wordpress about our
  new feature launch, schedule for
  tomorrow at 9am"

Claude Code: I'll handle that.
  Found your Wordpress integration.
  Composing and scheduling the post.

  Done! Your post is scheduled.
  Post ID: abc-123
💻

Parallel Tasks

Multiple tasks at once

Claude Code runs headless with claude -p, so several tasks can run in parallel. Schedule posts to different platforms while it works on other coding tasks.

Claude Code Parallel Tasks

# Run multiple posting tasks in parallel
$ claude -p "Schedule a post about our
  launch to X for tomorrow 9am" &

$ claude -p "Write a LinkedIn article
  about our new feature and schedule
  for tomorrow noon" &

$ claude -p "Fix the bug in auth.ts"

# All three tasks run simultaneously

Why Claude Code + Postiz for WordPress

Claude Code's autonomous execution makes Postiz a natural fit. The agent reads the SKILL.md to understand every available command, then autonomously chains them together for WordPress workflows.

  • ✓Runs in your terminal or IDE — just type what you want
  • ✓Permission-based execution — you stay in control
  • ✓Parallel task support — post while coding
  • ✓Featured images uploaded and attached automatically
  • ✓Cross-post to WordPress + other platforms in a single session
  • ✓Powered by Claude — Anthropic's most capable models

SKILL.md (auto-discovered)

---
name: postiz
description: Social media automation
  CLI for scheduling posts across
  30+ platforms including WordPress
metadata:
  claude-code:
    requirements:
      env:
        - POSTIZ_API_KEY
      binaries:
        - postiz
---

# Available Commands
- postiz integrations:list
- postiz integrations:settings <id>
- postiz posts:create
- postiz upload <file>
- postiz analytics:platform <id>

# WordPress Settings
title, main_image, type

Also Works with Claude Cowork

Postiz works with any AI agent that can run commands or call MCP tools. That includes Claude Cowork, Anthropic's desktop agent, and the Claude.ai connector. See the agents overview for every supported agent.

C

Claude Cowork

by Anthropic

Claude Cowork reads the Postiz skill so it knows what it can do, then autonomously discovers your WordPress integration, uploads your featured image, sets the content type, and publishes the post.

Claude Cowork

> Publish my code review tips article
  to WordPress as a blog post with
  a featured image

Claude Cowork: Done! Scheduled on WordPress for
  tomorrow at 9:00 AM.

Post to WordPress and other platforms from Claude Code

One request can schedule the same content to WordPress and other channels, and each platform keeps its own settings. Every platform below has its own Claude Code guide.

Example

> Post "Excited to announce our new feature!" to
  WordPress and LinkedIn tomorrow at 9am, then schedule
  a daily tip on WordPress every weekday at 10am

Claude Code: Done! Scheduled:
  - WordPress + LinkedIn: tomorrow 9:00 AM
  - Daily tips on WordPress: Mon-Fri 10:00 AM

See all 25 platforms in the Claude Code social media guide, compare agents on the AI agents overview, read about the Postiz MCP server, or check pricing. For the channel itself, seeWordPress scheduling features in Postiz.

WordPress and Claude Code: frequently asked questions

How do I publish to WordPress from Claude Code?

Add the Postiz MCP server to Claude Code, sign in to Postiz with OAuth, and connect your WordPress site in Postiz. Then point Claude Code at a markdown file, say whether it is a post or page, and name a featured image. It uploads the image, sets the fields, asks for permission, and publishes or schedules.

Can Claude Code create WordPress pages as well as posts?

Yes. The WordPress type setting accepts post or page. Ask for a page when you want static content such as a changelog or documentation page, and Claude Code sets type to page. Posts are the default for blog content and appear in your feed and categories.

Can Claude Code set a featured image on a WordPress post?

Yes. Reference an image in your repo or a URL and Claude Code uploads it through Postiz and passes it as main_image with an id and path. If you connect over the custom Postiz MCP link, you can also ask Claude Code to generate the featured image first.

Can Claude Code publish WordPress posts from my release pipeline?

Yes. Run claude -p with a prompt describing the post from a release workflow or cron job. Claude Code reads the git history or changelog, drafts the post, sets type and title, and schedules it through Postiz before exiting. The Postiz MCP server or skill must be configured on that machine.

Start publishing to WordPress

Install Postiz Agent and automate your WordPress content strategy with AI-powered scheduling and publishing.