Overview
Create, edit, and manage WordPress posts, pages, and media.
Setup
Run with npx:
npx -y @modelcontextprotocol/server-wordpressConfiguration
WORDPRESS_SITE_URL and WORDPRESS_APPLICATION_PASSWORDDocumentation
WordPress MCP
Overview
The WordPress MCP server enables AI agents to create, edit, and manage WordPress posts, pages, and media. Perfect for content creation automation and blog management.
Features
- Post Management: Create, edit, publish posts
- Page Management: Manage static pages
- Media Upload: Upload and manage media files
- Category/Tag Management: Organize content
- User Management: View and manage users
Installation
npx -y @modelcontextprotocol/server-wordpress
Configuration
{
"mcpServers": {
"wordpress": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-wordpress"],
"env": {
"WORDPRESS_SITE_URL": "https://your-site.com",
"WORDPRESS_APPLICATION_PASSWORD": "your-app-password"
}
}
}
}
Application Password Setup
- Log into WordPress admin
- Go to Users → Profile
- Scroll to "Application Passwords"
- Generate a new application password
- Use it as the
WORDPRESS_APPLICATION_PASSWORD
Available Tools
| Tool | Description |
|---|---|
list_posts | List blog posts |
get_post | Get post details |
create_post | Create a new post |
update_post | Update a post |
delete_post | Delete a post |
list_pages | List pages |
create_page | Create a new page |
upload_media | Upload media file |
Usage Examples
Create a Blog Post
Create a new blog post titled "Getting Started with AI Agents" with draft status.
Publish a Post
Publish the draft post with ID 123.
Upload an Image
Upload the image at /path/to/image.jpg and attach it to post 456.
Pros
- ✅ Full WordPress integration
- ✅ Content automation
- ✅ Media management
Cons
- ❌ Requires WordPress site
- ❌ Application password setup
- ❌ Limited to WordPress REST API
