Skip to content

WordPress

Content management system for blogs and websites.

Capabilities

IntegrationAvailableNotes
APIREST API (WP REST API)
MCP-Not available
CLIWP-CLI for server-side management
SDKVarious 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

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

Authorization: Basic {base64(username:app_password)}

Get post

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

Authorization: Basic {base64(username:app_password)}

Create post

bash
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

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

Authorization: Basic {base64(username:app_password)}

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

List pages

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

Authorization: Basic {base64(username:app_password)}

List categories

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

Create category

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

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

Upload media

bash
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

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

Authorization: Basic {base64(username:app_password)}

WP-CLI Commands

bash
# 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

EndpointResource
/wp/v2/postsBlog posts
/wp/v2/pagesPages
/wp/v2/mediaImages/files
/wp/v2/categoriesCategories
/wp/v2/tagsTags
/wp/v2/usersUsers
/wp/v2/commentsComments

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

Released under the MIT License.