# wp-content-mcp
WordPress MCP server for posts and pages management.
## Installation
```bash
npm install wp-content-mcp
```
## Configuration
Set environment variables:
```bash
export WORDPRESS_URL=https://your-site.com
export WORDPRESS_USERNAME=your-username
export WORDPRESS_APP_PASSWORD=your-app-password
```
## Usage with Claude Desktop
Add to your Claude Desktop config:
```json
{
"mcpServers": {
"wp-content": {
"command": "npx",
"args": ["wp-content-mcp"],
"env": {
"WORDPRESS_URL": "https://your-site.com",
"WORDPRESS_USERNAME": "your-username",
"WORDPRESS_APP_PASSWORD": "your-app-password"
}
}
}
}
```
## Tools (12 tools)
### Posts
- **create_post** - Create a new WordPress post
- **update_post** - Update an existing post
- **delete_post** - Delete or trash a post
- **get_post** - Retrieve a post by ID
- **list_posts** - List posts with filtering
### Pages
- **create_page** - Create a new page
- **update_page** - Update an existing page
### Advanced
- **duplicate_post** - Duplicate a post or page
- **schedule_post** - Schedule future publication
- **bulk_edit_posts** - Bulk update multiple posts
- **get_revisions** - Get revision history
- **trash_restore_post** - Trash or restore posts
## License
MIT