- Explore MCP Servers
- mcp-wp
Mcp Wp
What is Mcp Wp
mcp-wp is a Model Context Protocol (MCP) server designed for WordPress, enabling users to interact with their WordPress sites using natural language through MCP-compatible clients like Claude for Desktop.
Use cases
Use cases for mcp-wp include automating content creation and management, enhancing user experience by allowing voice or text commands for site administration, and integrating with other applications that support MCP.
How to use
To use mcp-wp, download and install Claude Desktop, configure the settings by copying the example configuration file, replace placeholder values with your actual WordPress site details, and restart Claude Desktop.
Key features
Key features of mcp-wp include tools for managing posts, pages, media, and users. Users can list, create, update, and delete posts, pages, and media items, as well as manage user accounts with filtering and pagination options.
Where to use
mcp-wp can be used in any WordPress environment where natural language interaction is desired, such as content management, website administration, and user engagement.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Wp
mcp-wp is a Model Context Protocol (MCP) server designed for WordPress, enabling users to interact with their WordPress sites using natural language through MCP-compatible clients like Claude for Desktop.
Use cases
Use cases for mcp-wp include automating content creation and management, enhancing user experience by allowing voice or text commands for site administration, and integrating with other applications that support MCP.
How to use
To use mcp-wp, download and install Claude Desktop, configure the settings by copying the example configuration file, replace placeholder values with your actual WordPress site details, and restart Claude Desktop.
Key features
Key features of mcp-wp include tools for managing posts, pages, media, and users. Users can list, create, update, and delete posts, pages, and media items, as well as manage user accounts with filtering and pagination options.
Where to use
mcp-wp can be used in any WordPress environment where natural language interaction is desired, such as content management, website administration, and user engagement.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
WordPress MCP Server
This is a Model Context Protocol (MCP) server for WordPress, allowing you to interact with your WordPress site using natural language via an MCP-compatible client like Claude for Desktop. This server exposes various WordPress data and functionality as MCP tools.
Usage
Claude Desktop
- Download and install Claude Desktop.
- Open Claude Desktop settings and navigate to the “Developer” tab.
- Copy the contents of the
claude_desktop_config.json.examplefile. - Click “Edit Config” to open the
claude_desktop_config.jsonfile. - Copy paste the contents of the example file into the config file. Make sure to replace the placeholder values with your actual values for the WordPress site. To generate the application keys, follow this guide - Application Passwords.
- Save the configuration.
- Restart Claude Desktop.
Features
This server currently provides tools to interact with core WordPress data:
- Posts:
list_posts: List all posts (supports pagination and searching).get_post: Retrieve a specific post by ID.create_post: Create a new post.update_post: Update an existing post.delete_post: Delete a post.
- Pages:
list_pages: List all pages (supports pagination and filtering).get_page: Retrieve a specific page by ID.create_page: Create a new page.update_page: Update an existing page.delete_page: Delete a page.
- Media:
list_media: List all media items (supports pagination and searching).get_media: Retrieve a specific media item by ID.create_media: Create a new media item from a URL.update_media: Update an existing media item.delete_media: Delete a media item.
- Users:
list_users: List all users with filtering, sorting, and pagination options.get_user: Retrieve a specific user by ID.create_user: Create a new user.update_user: Update an existing user.delete_user: Delete a user.
- Categories:
list_categories: List all categories with filtering, sorting, and pagination options.get_category: Retrieve a specific category by ID.create_category: Create a new category.update_category: Update an existing category.delete_category: Delete a category.
- Comments:
list_comments: List all comments with filtering, sorting, and pagination options.get_comment: Retrieve a specific comment by ID.create_comment: Create a new comment.update_comment: Update an existing comment.delete_comment: Delete a comment.
- Plugins:
list_plugins: List all plugins installed on the site.get_plugin: Retrieve details about a specific plugin.activate_plugin: Activate a plugin.deactivate_plugin: Deactivate a plugin.create_plugin: Create a new plugin.
More features and endpoints will be added in future updates.
Using with npx and .env file
You can run this MCP server directly using npx without installing it globally:
npx -y @instawp/mcp-wp
Make sure you have a .env file in your current directory with the following variables:
WORDPRESS_API_URL=https://your-wordpress-site.com WORDPRESS_USERNAME=wp_username WORDPRESS_PASSWORD=wp_app_password
Development
Prerequisites
- Node.js and npm: Ensure you have Node.js (version 18 or higher) and npm installed.
- WordPress Site: You need an active WordPress site with the REST API enabled.
- WordPress API Authentication: Set up authentication for the WordPress REST API. This typically requires an authentication plugin or method (like Application Passwords).
- MCP Client: You need an application that can communicate with the MCP Server. Currently, Claude Desktop is recommended.
Installation and Setup
-
Clone the Repository:
git clone <repository_url> cd wordpress-mcp-server -
Install Dependencies:
npm install -
Create a
.envfile:Create a
.envfile in the root of your project directory and add your WordPress API credentials:WORDPRESS_API_URL=https://your-wordpress-site.com WORDPRESS_USERNAME=wp_username WORDPRESS_PASSWORD=wp_app_passwordReplace the placeholders with your actual values.
-
Build the Server:
npm run build -
Configure Claude Desktop:
- Open Claude Desktop settings and navigate to the “Developer” tab.
- Click “Edit Config” to open the
claude_desktop_config.jsonfile. - Add a new server configuration under the
mcpServerssection. You will need to provide the absolute path to thebuild/server.jsfile and your WordPress environment variables. - Save the configuration.
Running the Server
Once you’ve configured Claude Desktop, the server should start automatically whenever Claude Desktop starts.
You can also run the server directly from the command line for testing:
npm start
or in development mode:
npm run dev
Security
- Never commit your API keys or secrets to version control.
- Use HTTPS for communication between the client and server.
- Validate all inputs received from the client to prevent injection attacks.
- Implement proper error handling and rate limiting.
Project Overview
MCP WordPress Tools
Welcome to the MCP WordPress Tools project. This repository provides custom tools for managing WordPress functionalities, including media and plugins integration.
Folder Structure
wp/ ├── README.md # This documentation file └── src/ └── tools/ ├── media.ts # Handles media operations └── plugins.ts # Handles plugin operations
Getting Started
- Explore the source code under the
src/tools/directory to review how media and plugin functionalities are implemented. - Update or extend functionalities as needed to integrate with your WordPress workflow.
Contribution
Feel free to open issues or make pull requests to improve this project.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










