- Explore MCP Servers
- the-wordpress-mcp-server
The Wordpress Mcp Server
What is The Wordpress Mcp Server
The-wordpress-mcp-server is a Model Context Protocol (MCP) server designed for integration with WordPress. It allows users to interact with WordPress sites through the WordPress REST API, enabling operations such as creating, retrieving, and updating posts using the JSON-RPC 2.0 protocol.
Use cases
Use cases for the-wordpress-mcp-server include automating blog post creation, managing content updates programmatically, and integrating WordPress with other applications or services that require access to WordPress data.
How to use
To use the-wordpress-mcp-server, clone the repository, install the necessary dependencies using ‘npm install’, and build the project with ‘npm run build’. Configure the server by adding your WordPress credentials in the MCP settings file, specifying the site URL, username, and application password.
Key features
Key features of the-wordpress-mcp-server include the ability to create new posts, retrieve existing posts, and update posts. It supports optional parameters for site URL, username, and password, allowing for flexible configuration.
Where to use
The-wordpress-mcp-server can be used in various fields where WordPress integration is required, such as web development, content management systems, and application development that involves WordPress as a backend.
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 The Wordpress Mcp Server
The-wordpress-mcp-server is a Model Context Protocol (MCP) server designed for integration with WordPress. It allows users to interact with WordPress sites through the WordPress REST API, enabling operations such as creating, retrieving, and updating posts using the JSON-RPC 2.0 protocol.
Use cases
Use cases for the-wordpress-mcp-server include automating blog post creation, managing content updates programmatically, and integrating WordPress with other applications or services that require access to WordPress data.
How to use
To use the-wordpress-mcp-server, clone the repository, install the necessary dependencies using ‘npm install’, and build the project with ‘npm run build’. Configure the server by adding your WordPress credentials in the MCP settings file, specifying the site URL, username, and application password.
Key features
Key features of the-wordpress-mcp-server include the ability to create new posts, retrieve existing posts, and update posts. It supports optional parameters for site URL, username, and password, allowing for flexible configuration.
Where to use
The-wordpress-mcp-server can be used in various fields where WordPress integration is required, such as web development, content management systems, and application development that involves WordPress as a backend.
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
A Model Context Protocol (MCP) server for WordPress integration, compatible with Windows, macOS, and Linux.
Overview
This MCP server enables interaction with WordPress sites through the WordPress REST API. It provides tools for creating, retrieving, and updating posts using JSON-RPC 2.0 protocol.
Installation
- Clone the repository
- Install dependencies:
npm install
- Build the project:
npm run build
Configuration
Add the server to your MCP settings file with environment variables for WordPress credentials:
{
"mcpServers": {
"wordpress": {
"command": "node",
"args": [
"path/to/build/index.js"
],
"env": {
"WORDPRESS_SITE_URL": "https://your-wordpress-site.com",
"WORDPRESS_USERNAME": "your-username",
"WORDPRESS_PASSWORD": "your-app-password"
}
}
}
}
The environment variables are:
- WORDPRESS_SITE_URL: Your WordPress site URL
- WORDPRESS_USERNAME: WordPress username
- WORDPRESS_PASSWORD: WordPress application password
You can also provide these credentials in the request parameters if you prefer not to use environment variables.
Available Methods
create_post
Creates a new WordPress post.
Parameters:
- siteUrl: (optional if set in env) WordPress site URL
- username: (optional if set in env) WordPress username
- password: (optional if set in env) WordPress application password
- title: Post title
- content: Post content
- status: (optional) ‘draft’ | ‘publish’ | ‘private’ (default: ‘draft’)
get_posts
Retrieves WordPress posts.
Parameters:
- siteUrl: (optional if set in env) WordPress site URL
- username: (optional if set in env) WordPress username
- password: (optional if set in env) WordPress application password
- perPage: (optional) Number of posts per page (default: 10)
- page: (optional) Page number (default: 1)
update_post
Updates an existing WordPress post.
Parameters:
- siteUrl: (optional if set in env) WordPress site URL
- username: (optional if set in env) WordPress username
- password: (optional if set in env) WordPress application password
- postId: ID of the post to update
- title: (optional) New post title
- content: (optional) New post content
- status: (optional) ‘draft’ | ‘publish’ | ‘private’
Security Note
For security, it’s recommended to use WordPress application passwords instead of your main account password. You can generate an application password in your WordPress dashboard under Users → Security → Application Passwords.
Example Usage
Using environment variables:
{
"jsonrpc": "2.0",
"id": 1,
"method": "create_post",
"params": {
"title": "My New Post",
"content": "Hello World!",
"status": "draft"
}
}
Without environment variables:
{
"jsonrpc": "2.0",
"id": 1,
"method": "create_post",
"params": {
"siteUrl": "https://your-wordpress-site.com",
"username": "your-username",
"password": "your-app-password",
"title": "My New Post",
"content": "Hello World!",
"status": "draft"
}
}
Requirements
- Node.js 20.0.0 or higher
- WordPress site with REST API enabled
- WordPress application password for authentication
License
MIT License - See LICENSE file for details
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.










