
WordPress-MCP-Server
Dies ist der umfassendste WordPress MCP -Server. Beinhaltet Funktionen zur Durchführung von CRUD -Operationen für Benutzer, Blogs, Kategorien und vieles mehr. Holen Sie sich auch spezielle Statistiken.
3 years
Works with Finder
15
Github Watches
3
Github Forks
15
Github Stars
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:
git clone [repository-url]
cd wordpress-mcp-server
- Install dependencies:
npm install
- Build the server:
npm run build
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
):
{
"mcpServers": {
"wordpress": {
"command": "node",
"args": ["path/to/wordpress-mcp-server/build/index.js"]
}
}
}
Available Tools
Post Management
1. create_post
Creates a new WordPress post.
Parameters:
-
siteUrl
(required): Your WordPress site URL -
username
(required): WordPress username -
password
(required): WordPress application password -
title
(required): Post title -
content
(required): Post content -
status
(optional): Post status ('draft', 'publish', or 'private', defaults to 'draft')
Example:
{
"tool": "create_post",
"siteUrl": "https://example.com",
"username": "admin",
"password": "xxxx xxxx xxxx xxxx",
"title": "My First Post",
"content": "Hello, world!",
"status": "draft"
}
2. get_posts
Retrieves WordPress posts with pagination.
Parameters:
-
siteUrl
(required): Your WordPress site URL -
username
(required): WordPress username -
password
(required): WordPress application password -
perPage
(optional): Number of posts per page (default: 10) -
page
(optional): Page number (default: 1) -
customParams
(optional): Additional query parameters
Example:
{
"tool": "get_posts",
"siteUrl": "https://example.com",
"username": "admin",
"password": "xxxx xxxx xxxx xxxx",
"perPage": 5,
"page": 1
}
3. update_post
Updates an existing WordPress post.
Parameters:
-
siteUrl
(required): Your WordPress site URL -
username
(required): WordPress username -
password
(required): WordPress application password -
postId
(required): ID of the post to update -
title
(optional): New post title -
content
(optional): New post content -
status
(optional): New post status ('draft', 'publish', or 'private')
Example:
{
"tool": "update_post",
"siteUrl": "https://example.com",
"username": "admin",
"password": "xxxx xxxx xxxx xxxx",
"postId": 123,
"title": "Updated Title",
"content": "Updated content",
"status": "publish"
}
4. delete_post
Deletes a WordPress post.
Parameters:
-
siteUrl
(required): Your WordPress site URL -
username
(required): WordPress username -
password
(required): WordPress application password -
postId
(required): ID of the post to delete
Example:
{
"tool": "delete_post",
"siteUrl": "https://example.com",
"username": "admin",
"password": "xxxx xxxx xxxx xxxx",
"postId": 123
}
User Management
1. get_users
Retrieves WordPress users.
Parameters:
-
siteUrl
(required): Your WordPress site URL -
username
(required): WordPress username -
password
(required): WordPress application password -
perPage
(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 URL -
username
(required): WordPress username -
password
(required): WordPress application password -
userId
(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 URL -
username
(required): WordPress username -
password
(required): WordPress application password -
userLogin
(required): Login name of the user to retrieve
Comment Management
1. get_comments
Retrieves WordPress comments.
Parameters:
-
siteUrl
(required): Your WordPress site URL -
username
(required): WordPress username -
password
(required): WordPress application password -
perPage
(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 URL -
username
(required): WordPress username -
password
(required): WordPress application password -
postIdForComment
(required): ID of the post to comment on -
commentContent
(required): Content of the comment -
customData
(optional): Additional comment data
Category and Tag Management
1. get_categories
Retrieves WordPress categories.
Parameters:
-
siteUrl
(required): Your WordPress site URL -
username
(required): WordPress username -
password
(required): WordPress application password -
perPage
(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 URL -
username
(required): WordPress username -
password
(required): WordPress application password -
categoryName
(required): Name of the category to create -
customData
(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 URL -
username
(required): WordPress username -
password
(required): WordPress application password -
customEndpoint
(required): API endpoint path -
customMethod
(optional): HTTP method ('GET', 'POST', 'PUT', 'DELETE', default: 'GET') -
customData
(optional): Data for POST/PUT requests -
customParams
(optional): URL parameters for GET requests
Example:
{
"tool": "custom_request",
"siteUrl": "https://example.com",
"username": "admin",
"password": "xxxx xxxx xxxx xxxx",
"customEndpoint": "wp/v2/media",
"customMethod": "GET",
"customParams": {
"per_page": 5
}
}
Response Format
All tools return responses in the following format:
Success Response
{
"success": true,
"data": {
// WordPress API response data
},
"meta": {
// Optional metadata (pagination info, etc.)
}
}
Error Response
{
"success": false,
"error": "Error message here"
}
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:
npm run dev
License
This project is licensed under the ISC License.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
相关推荐
🧑🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.
🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.
⛓️Rugele ist ein leichter, leistungsstarker, leistungsstarker, eingebetteter Komponenten-Orchestrierungsregel-Motor-Rahmen für GO.
Dieses Repository dient zur Entwicklung des Azure MCP -Servers, wodurch Ihre Agenten die Leistung von Azure verleiht.
Dieses Projekt wurde erstellt, um zu demonstrieren, wie wir uns mit verschiedenen Modellkontextprotokollen (MCPs) verbinden können.
Reviews

user_WAWlO6US
The wordpress-mcp-server by prathammanocha is a fantastic solution for managing multiple WordPress sites with ease. Its seamless integration and user-friendly interface make it extremely convenient. As a dedicated user, I've found its performance reliable and its features robust. Highly recommend it for anyone looking to enhance their WordPress management experience!

user_9e8c8d2B
I've been using the wordpress-mcp-server by prathammanocha, and it has significantly streamlined my WordPress development process. The MCP integration enhances the server's capabilities, making it easier to manage and scale. It's user-friendly, reliable, and has become an essential tool in my workflow. Highly recommended!

user_CX7CfglW
I've been using the wordpress-mcp-server developed by prathammanocha and it has significantly improved my workflow. The setup is straightforward and the server is incredibly reliable. It's apparent that a lot of thought and effort has gone into creating this application. Highly recommend for anyone managing WordPress sites!

user_nUF91sEe
I've been using the wordpress-mcp-server created by prathammanocha, and it has revolutionized my workflow. Seamlessly integrating with my WordPress site, it offers stability and reliability, which is rare. The installation was straightforward, and the support provided is commendable. Highly recommended for anyone looking to enhance their WordPress server management!

user_znIxF48a
I've been using the wordpress-mcp-server by prathammanocha and I'm thoroughly impressed. The integration with WordPress is seamless, and it provides exceptional performance and reliability. This tool has significantly enhanced my workflow, making it easier to manage and deploy my projects. Highly recommend it to anyone looking for a robust MCP application!

user_SR0w0F3X
As a dedicated user of the wordpress-mcp-server by prathammanocha, I am thoroughly impressed with its functionality and ease of use. This server integration significantly enhances my WordPress experience by streamlining the content management process and boosting site performance. Highly recommended for anyone looking to improve their WordPress operations!

user_mO7trYWu
As a dedicated user of the WordPress MCP Server, I am thoroughly impressed with its seamless integration and performance. Created by prathammanocha, this server has significantly enhanced my website's functionality and user experience. The installation and setup process is straightforward and the extensive customization options are a huge plus. Highly recommended for anyone looking to elevate their WordPress site.

user_IrnJ9Woe
As a loyal user of the wordpress-mcp-server by Prathammanocha, I must say it offers an excellent solution for managing WordPress projects efficiently. The seamless integration and user-friendly interface make it a go-to tool for any developer. Highly recommended for enhancing productivity and streamlining website management tasks!