Skip to content

Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.

3.1 KB
Raw Blame

WordPress

Content management system for blogs and websites.

Capabilities

Integration Available Notes
API ✓ REST API (WP REST API)
MCP - Not available
CLI ✓ WP-CLI for server-side management
SDK ✓ Various client libraries

Authentication

  • Type: Application Password, JWT, or OAuth
  • Header: Authorization: Basic {base64(username:app_password)}
  • Setup: Users > Your Profile > Application Passwords

Common Agent Operations

List posts

GET https://example.com/wp-json/wp/v2/posts?per_page=10

Authorization: Basic {base64(username:app_password)}

Get post

GET https://example.com/wp-json/wp/v2/posts/{post_id}

Authorization: Basic {base64(username:app_password)}

Create post

POST https://example.com/wp-json/wp/v2/posts

Authorization: Basic {base64(username:app_password)}

{
  "title": "Post Title",
  "content": "<p>Post content here</p>",
  "status": "draft",
  "categories": [1],
  "tags": [5, 6]
}

Update post

PUT https://example.com/wp-json/wp/v2/posts/{post_id}

Authorization: Basic {base64(username:app_password)}

{
  "title": "Updated Title",
  "status": "publish"
}

List pages

GET https://example.com/wp-json/wp/v2/pages?per_page=20

Authorization: Basic {base64(username:app_password)}

List categories

GET https://example.com/wp-json/wp/v2/categories

Create category

POST https://example.com/wp-json/wp/v2/categories

{
  "name": "Category Name",
  "slug": "category-name"
}

Upload media

POST https://example.com/wp-json/wp/v2/media

Authorization: Basic {base64(username:app_password)}
Content-Disposition: attachment; filename="image.jpg"
Content-Type: image/jpeg

[binary image data]

List users

GET https://example.com/wp-json/wp/v2/users

Authorization: Basic {base64(username:app_password)}

WP-CLI Commands

# List posts
wp post list --post_type=post --post_status=publish

# Create post
wp post create --post_title="Title" --post_content="Content" --post_status=publish

# Update post
wp post update 123 --post_title="New Title"

# Export database
wp db export backup.sql

# Search/replace in database
wp search-replace 'old-domain.com' 'new-domain.com'

# Install plugin
wp plugin install yoast-seo --activate

# Update plugins
wp plugin update --all

Post Statuses

  • publish - Live on site
  • draft - Not published
  • pending - Awaiting review
  • private - Private post
  • future - Scheduled
  • trash - In trash

Common Endpoints

Endpoint Resource
/wp/v2/posts Blog posts
/wp/v2/pages Pages
/wp/v2/media Images/files
/wp/v2/categories Categories
/wp/v2/tags Tags
/wp/v2/users Users
/wp/v2/comments Comments

When to Use

  • Blog content management
  • Page updates
  • Media management
  • Site configuration
  • Plugin/theme management

Rate Limits

  • No default limits
  • Server/host dependent

Relevant Skills

  • content-strategy
  • seo-audit
  • programmatic-seo