WordPress MCP Server
Enables creating, updating, retrieving, listing, and deleting WordPress posts with full metadata (status, excerpt, categories, tags, featured image), listing categories and tags, and uploading media files through the WordPress REST API using an application password.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
WordPress MCP Server π
A Model Context Protocol (MCP) server for WordPress that enables Claude AI to create, update, and manage WordPress blog posts via the WordPress REST API.
β¨ Features
π Create new posts (draft or published)
βοΈ Update existing posts
π List posts with filtering
π Get post details
ποΈ Delete posts
π·οΈ List categories and tags
πΌοΈ Upload media files
π― Full support for post metadata (categories, tags, featured images, excerpts)
Related MCP server: mcp-wordpress
π Quick Start
Prerequisites
Docker installed
WordPress site with REST API enabled (default in WordPress 4.7+)
WordPress Application Password
Claude Desktop (optional, for integration)
1. Generate WordPress Application Password
Log into your WordPress admin dashboard
Navigate to Users β Profile
Scroll to Application Passwords section
Enter a name (e.g., "MCP Server")
Click Add New Application Password
Copy the generated password (you won't see it again!)
2. Clone and Build
# Clone the repository
git clone https://github.com/SixFiveMil/wp-mcp-server.git
cd wp-mcp-server
# Build the Docker image
docker build -t wordpress-mcp-server .3. Configure Environment
Create a .env file (copy from .env.example):
cp .env.example .envEdit .env with your credentials:
WORDPRESS_URL=https://your-site.com
WORDPRESS_USERNAME=your-username
WORDPRESS_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx4. Test the Server
docker run -i --rm \
-e WORDPRESS_URL=https://your-site.com \
-e WORDPRESS_USERNAME=your-username \
-e WORDPRESS_APP_PASSWORD=your-app-password \
wordpress-mcp-serverOr use docker-compose:
# Edit docker-compose.yml with your credentials first
docker-compose upπ§ Claude Desktop Integration
Installation
Locate your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the WordPress MCP server configuration:
{
"mcpServers": {
"wordpress": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "WORDPRESS_URL=https://your-site.com",
"-e", "WORDPRESS_USERNAME=your-username",
"-e", "WORDPRESS_APP_PASSWORD=your-app-password",
"wordpress-mcp-server"
]
}
}
}Restart Claude Desktop
π Usage Examples
Once configured, you can use Claude to interact with your WordPress site:
Create a Draft Post
Create a draft blog post titled "My First Post" with the content "Hello World!"Publish a Post
Create a published post titled "Announcing Our New Product" with this content: [your content]List Recent Posts
Show me the 5 most recent posts from my WordPress siteUpdate a Post
Update post ID 123 to change the status to publishedWork with Categories
List all categories on my WordPress siteUpload an Image
Upload the image at /path/to/image.jpg to WordPressπ οΈ Available Tools
Tool | Description |
| Create new WordPress posts with full metadata support |
| Update existing posts |
| Get details of a specific post by ID |
| List posts with filtering options (status, search, pagination) |
| Delete or trash posts |
| List all available categories |
| List all available tags |
| Upload media files to WordPress |
π API Documentation
create_post
{
"title": "Post Title",
"content": "Post content in HTML or plain text",
"status": "draft|publish|pending|private",
"excerpt": "Optional excerpt",
"categories": [1, 2, 3],
"tags": [4, 5, 6],
"featured_media": 123
}update_post
{
"post_id": 123,
"title": "Updated Title",
"content": "Updated content",
"status": "publish"
}list_posts
{
"per_page": 10,
"page": 1,
"status": "any|publish|draft|pending|private",
"search": "search term"
}π Security Notes
β οΈ Never commit your Application Password to version control
β Use environment variables or secrets management
π Application Passwords can be revoked anytime from WordPress profile
π‘οΈ The REST API respects your WordPress user permissions
π Use HTTPS for your WordPress site in production
π Troubleshooting
Authentication Errors
Verify your Application Password is correct (spaces are automatically removed)
Ensure your WordPress user has permission to create/edit posts
Check that REST API is enabled on your WordPress site
Connection Errors
Verify the WordPress URL is correct and accessible
Ensure your WordPress site uses HTTPS
Check if there's a firewall blocking the connection
Confirm the WordPress REST API endpoint is accessible at
/wp-json/wp/v2/
Docker Issues
Ensure Docker is running:
docker psVerify the image built successfully:
docker images | grep wordpress-mcpCheck Docker logs:
docker logs wordpress-mcp-serverTry rebuilding:
docker build --no-cache -t wordpress-mcp-server .
π€ Contributing
Contributions are welcome! Here are some ways you can help:
π Report bugs
π‘ Suggest new features
π Improve documentation
π§ Submit pull requests
See CONTRIBUTING.md for more details.
Development Setup
# Clone the repo
git clone https://github.com/SixFiveMil/wp-mcp-server.git
cd wp-mcp-server
# Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run tests (if available)
pytestπΊοΈ Roadmap
Future features under consideration:
Support for custom post types
Custom fields management
Comments management
User management
Bulk operations
Media gallery management
SEO metadata support (Yoast, RankMath)
Multisite support
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
Built with Model Context Protocol (MCP)
Powered by WordPress REST API
Made for Claude by Anthropic
π Support
π§ Issues: GitHub Issues
π¬ Discussions: GitHub Discussions
π Website: Code and Cypher
Made with β€οΈ for the WordPress and AI community
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage your WordPress site from ChatGPT or Claude: posts, WooCommerce, SEO, images and upkeep.
Manage WordPress blogs and WooCommerce shops from Claude, ChatGPT, Cursor and other MCP apps.
Read, write, translate and sync WordPress and Webflow blog articles from Claude.
Manage your WordPress site from your AI assistant: posts, pages, media, comments and WooCommerce.
Related MCP Servers
- AlicenseBqualityDmaintenanceConnects Claude to WordPress sites through the REST API, enabling AI-assisted content creation, publishing, media management, user administration, and site maintenance tasks through natural language.4723MIT
- AlicenseCqualityDmaintenanceEnables Claude Code to read, edit, and manage WordPress pages, posts, shortcodes, and media via the WordPress REST API.8018 npm3MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude Code to directly manage WordPress sites via natural language, including posts, pages, categories, tags, media, and multiple site support.MIT
- FlicenseAqualityCmaintenanceEnables Claude to read context, create, and edit pages on WordPress sites via the REST API using Application Passwords.6-