Connect your WordPress sites to MCP Forest and create AI-powered content management tools
The WordPress integration allows you to create MCP servers that can interact with your WordPress sites through the WordPress REST API. This enables AI assistants to manage content, users, media, and more.
MCP Forest supports multiple authentication methods for WordPress. Choose the one that best fits your security requirements.
Available in WordPress 5.6+ or with plugin
Application passwords are the most secure method as they don't require your actual WordPress password and can be revoked individually.
Using WordPress username and password
Basic authentication requires your actual WordPress password. Use only if Application Passwords are not available.
Token-based authentication for advanced users
JWT tokens provide stateless authentication and are ideal for high-traffic applications or when you need fine-grained control.
MCP Forest automatically generates these tools based on your WordPress REST API endpoints:
Here's an example of how to configure your WordPress integration in MCP Forest:
{
"name": "my-wordpress-site",
"platform": "wordpress",
"config": {
"baseUrl": "https://your-wordpress-site.com",
"authentication": {
"type": "application_password",
"username": "your-username",
"password": "your-application-password"
},
"endpoints": {
"posts": "/wp-json/wp/v2/posts",
"pages": "/wp-json/wp/v2/pages",
"media": "/wp-json/wp/v2/media",
"users": "/wp-json/wp/v2/users",
"categories": "/wp-json/wp/v2/categories",
"tags": "/wp-json/wp/v2/tags",
"comments": "/wp-json/wp/v2/comments"
},
"features": {
"customPostTypes": true,
"customFields": true,
"multisite": false
}
}
}Ensure WordPress REST API is enabled. Check if you can access https://yoursite.com/wp-json/wp/v2/
Verify your credentials. For Application Passwords, ensure the plugin is active and you're using the correct username/password combination.
Check that your WordPress user has the necessary capabilities for the actions you're trying to perform (publish_posts, edit_posts, etc.).