Integrations
Enables interaction with WordPress sites through the WordPress REST API, providing tools for managing posts, users, comments, categories, tags, and custom endpoints. Supports creating, retrieving, updating, and deleting WordPress content programmatically.
Comprehensive WordPress MCP Server
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with WordPress sites through the WordPress REST API. This server provides tools for managing all aspects of WordPress programmatically, including posts, users, comments, categories, tags, and custom endpoints.
Features
Post Management
- Create, retrieve, update, and delete WordPress posts
- Filter posts by various parameters
- Pagination support for post listings
User Management
- Retrieve user information by ID or login
- Update user details
- Delete users
Comments Management
- Create, retrieve, update, and delete comments
- Filter comments by post
- Pagination support for comment listings
Taxonomy Management
- Manage categories and tags
- Create, retrieve, update, and delete taxonomies
- Find categories and tags by slug
Site Information
- Retrieve general WordPress site information
Custom Requests
- Support for custom REST API endpoints
- Custom HTTP methods (GET, POST, PUT, DELETE)
- Custom data and parameters
Prerequisites
- Node.js v18 or higher
- A WordPress site with REST API enabled
- WordPress application password for authentication
Installation
- Clone this repository:
- Install dependencies:
- Build the server:
WordPress Configuration
Before using the server, you need to set up your WordPress site:
- Ensure your WordPress site has REST API enabled (enabled by default in WordPress 4.7+)
- Create an application password:
- Log in to your WordPress admin panel
- Go to Users → Profile
- Scroll down to "Application Passwords"
- Enter a name for the application (e.g., "MCP Server")
- Click "Add New Application Password"
- Copy the generated password (you won't be able to see it again)
MCP Configuration
Add the server to your MCP settings file (usually located at ~/AppData/Roaming/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
):
Available Tools
Post Management
1. create_post
Creates a new WordPress post.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passwordtitle
(required): Post titlecontent
(required): Post contentstatus
(optional): Post status ('draft', 'publish', or 'private', defaults to 'draft')
Example:
2. get_posts
Retrieves WordPress posts with pagination.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passwordperPage
(optional): Number of posts per page (default: 10)page
(optional): Page number (default: 1)customParams
(optional): Additional query parameters
Example:
3. update_post
Updates an existing WordPress post.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passwordpostId
(required): ID of the post to updatetitle
(optional): New post titlecontent
(optional): New post contentstatus
(optional): New post status ('draft', 'publish', or 'private')
Example:
4. delete_post
Deletes a WordPress post.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passwordpostId
(required): ID of the post to delete
Example:
User Management
1. get_users
Retrieves WordPress users.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passwordperPage
(optional): Number of users per page (default: 10)page
(optional): Page number (default: 1)
2. get_user
Retrieves a specific WordPress user by ID.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passworduserId
(required): ID of the user to retrieve
3. get_user_by_login
Retrieves a WordPress user by login name.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passworduserLogin
(required): Login name of the user to retrieve
Comment Management
1. get_comments
Retrieves WordPress comments.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passwordperPage
(optional): Number of comments per page (default: 10)page
(optional): Page number (default: 1)postIdForComment
(optional): Filter comments by post ID
2. create_comment
Creates a new comment on a post.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passwordpostIdForComment
(required): ID of the post to comment oncommentContent
(required): Content of the commentcustomData
(optional): Additional comment data
Category and Tag Management
1. get_categories
Retrieves WordPress categories.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passwordperPage
(optional): Number of categories per page (default: 10)page
(optional): Page number (default: 1)
2. create_category
Creates a new WordPress category.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passwordcategoryName
(required): Name of the category to createcustomData
(optional): Additional category data (description, parent, etc.)
Custom Requests
1. custom_request
Makes a custom request to any WordPress REST API endpoint.
Parameters:
siteUrl
(required): Your WordPress site URLusername
(required): WordPress usernamepassword
(required): WordPress application passwordcustomEndpoint
(required): API endpoint pathcustomMethod
(optional): HTTP method ('GET', 'POST', 'PUT', 'DELETE', default: 'GET')customData
(optional): Data for POST/PUT requestscustomParams
(optional): URL parameters for GET requests
Example:
Response Format
All tools return responses in the following format:
Success Response
Error Response
Security Considerations
- Always use HTTPS URLs for your WordPress site
- Use application passwords instead of your main WordPress password
- Keep your application passwords secure and don't share them
- Consider using WordPress roles and capabilities to limit access
- Regularly rotate application passwords
Development
To contribute to the development:
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests (when available)
- Submit a pull request
For development mode with automatic recompilation:
License
This project is licensed under the ISC License.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
You must be authenticated.
Enables AI assistants to interact with WordPress sites through REST APIs, allowing programmatic management of posts, users, comments, categories, and tags with secure authentication.
- Features
- Prerequisites
- Installation
- WordPress Configuration
- MCP Configuration
- Available Tools
- Response Format
- Security Considerations
- Development
- License
- Contributing