
WordPress
Connects AI assistants to WordPress sites through the REST API, allowing natural language management of content, themes, plugins, and site settings. Provides 190+ tools for complete WordPress control without needing to use the admin dashboard.
Integrates with WordPress REST API to provide complete site management including posts, pages, media uploads, user management, comments, categories, tags, plugins, themes, menus, and site settings through 49+ tools with Basic authentication and robust error handling.
What it does
- Create and edit posts, pages, and custom content types
- Upload and manage media files
- Install and configure themes and plugins
- Manage users, comments, and site settings
- Execute database queries and custom code
- Create and modify menus and widgets
Best for
About WordPress
WordPress is a community-built MCP server published by raheesahmed that provides AI assistants with tools and capabilities via the Model Context Protocol. Easily manage WP sites: posts, pages, users, plugins, themes, comments & more. Reliable wp manage tools integrated with It is categorized under productivity, developer tools.
How to install
You can install WordPress in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
WordPress is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
WordPress MCP Server
Enable AI to manage WordPress sites like a professional developer
190+ tools for complete WordPress control
Video Demo : https://youtu.be/6hwMqXQFKN0
π Support This Project
If this project helps you, consider supporting its development:
Cryptocurrency Donation
| Select Coin | Select Network | Contract | Deposit Address |
|---|---|---|---|
| πͺ USDT (TetherUS) | π TRX (Tron TRC20) | Ending in jLj6t | TBJBb7fKyRdhqmWETyZoNP4X98mPk2Jxrt |
Your support helps maintain and improve this project! π
WPMCP server gives AI agents complete control over WordPress sites. Connect it to Claude, Cline, or any MCP-compatible AI, and manage WordPress through natural language.
Key Capabilities:
- β Content Management - Posts, pages, media, users, comments
- β File System Access - Read and write theme/plugin files
- β Theme Customization - Create child themes, modify styles, customize block themes
- β Plugin Control - Activate, deactivate, and modify plugins
- β Menu Management - Create menus, add items, assign to locations
- β Custom Content Types - Manage post types and taxonomies
- β Shortcodes & Cron - Execute shortcodes, schedule tasks
- β Widget System - Manage sidebars and widgets
- β Database Operations - Execute queries, manage options, inspect tables
- β WooCommerce Integration - Products, orders, customers, inventory, reports
- β Gutenberg Blocks - Block types, patterns, reusable blocks, templates
- β Advanced SEO - Sitemaps, redirects, schema markup, Open Graph, analysis
- β Security Monitoring - Site health, updates, integrity checks, debug logs
- β Performance Optimization - Cache management, database optimization, image processing
- β Backup & Migration - Full/partial backups, restore, export/import, cloning
- β User Roles - Custom roles, capabilities, permissions, role management
- β Complete Security - Multi-layer validation and automatic backups
Quick Start
1. Install
npm i -g [email protected]
2. Configure
Add to your MCP client (Claude Desktop, Cline, etc.):
{
"mcpServers": {
"wordpress": {
"command": "npx",
"args": ["-y", "[email protected]"],
"env": {
"WORDPRESS_URL": "https://your-site.com",
"WORDPRESS_USERNAME": "admin",
"WORDPRESS_PASSWORD": "your-app-password"
}
}
}
}
3. Install WordPress Plugin (Required)
- Install
wpmcp-plugin/wpmcp.zipto/wp-content/plugins/wpmcp-plugin/ - Activate via WordPress Admin β Plugins β "WordPress MCP Server Plugin"
- Ensure you have
edit_themesandedit_pluginscapabilities
What the plugin enables:
- File system operations (read, write, delete, copy, move)
- Shortcode execution
- Cron job management
- All advanced WordPress features
See wpmcp-plugin/README.md for detailed setup guide.
4. Use
"Create a child theme called 'My Custom Theme'"
"Activate Akismet plugin"
"Read the style.css file from my theme"
"Create a blog post about WordPress and publish it"
Available Tools (130+)
π See WPMCP_TOOLS.MD for complete detailed list of all 130 tools.
| Category | Tools | What You Can Do |
|---|---|---|
| Posts (15) | create, update, delete, search, schedule, publish, duplicate, bulk | Manage all blog content |
| Pages (4) | create, update, delete, hierarchy | Build site structure |
| Media (5) | upload, update, delete, featured images | Manage images and files |
| Users (4) | create, update, delete, roles | User management |
| Categories (4) | create, update, delete, hierarchy | Organize content |
| Tags (2) | create, get | Tag content |
| Comments (4) | create, update, delete, moderate | Manage discussions |
| Settings (4) | get, update site settings | Configure WordPress |
| SEO (2) | meta description, focus keywords | Optimize for search |
| File System (8) | read, write, delete, copy, move | Edit any file |
| Theme Manager (13) | activate, child themes, theme.json, templates | Complete theme control |
| Plugin Manager (10) | activate, deactivate, read/write files | Full plugin control |
| Menu Manager (8) | create, add items, assign locations | Full navigation control |
| Custom Types (7) | get post types, taxonomies, manage terms | Advanced content types |
| Shortcodes (3) | list, execute, check existence | Shortcode system |
| Cron Jobs (5) | list, schedule, unschedule, run manually | Task scheduling |
| Widgets (6) | get sidebars, widgets, types, update | Widget management |
| Database (6) | execute queries, manage options, list tables | Database operations |
| WooCommerce (15) | products, orders, customers, inventory, coupons | E-commerce management |
| Gutenberg Blocks (12) | block types, patterns, reusable blocks, templates | Modern block editor |
| Security (7) | site health, updates, integrity, debug logs | Security monitoring |
| Performance (8) | cache, optimization, cleanup, image processing | Performance tuning |
What You Can Do
Content Management
"Create a blog post about AI and publish it"
"Upload an image and set it as featured image for post 5"
"Get all draft posts"
"Create a new page called 'About Us'"
Theme Customization
"Create a child theme of Twenty Twenty-Five"
"Read my theme's functions.php file"
"Add custom CSS to make headers blue"
"Get the theme.json configuration"
"List all files in my theme"
Menu Management Examples
// Create menu
{
"name": "Main Navigation",
"description": "Primary site menu"
}
// Add menu item
{
"title": "Home",
"url": "https://yoursite.com",
"menus": 3
}
// Get menu locations
// No parameters needed
// Assign menu to location
{
"location": "primary",
"menuId": 3
}
Plugin Management
"Show me all installed plugins"
"Activate the Contact Form 7 plugin"
"Read the main WooCommerce plugin file"
"Deactivate Hello Dolly"
"Check if Yoast SEO is installed"
Menu Management
"Create a new menu called 'Main Navigation'"
"Add a Home link to the menu"
"Get all registered menu locations"
"Assign the Main Navigation menu to primary location"
"Show me all menu items in the Main menu"
Custom Post Types & Taxonomies
"Show me all registered post types"
"Get details for the 'page' post type"
"Get all taxonomies"
"Show me all categories"
"Create a new category called 'Technology'"
Shortcodes
"List all registered shortcodes"
"Execute [gallery ids='1,2,3']"
"Check if 'contact-form' shortcode exists"
Cron Jobs & Scheduled Tasks
"Show me all scheduled cron jobs"
"Schedule a daily backup task"
"Run WordPress cron manually"
"Get available cron schedules"
Widgets
"Get all widget areas"
"Show me all available widget types"
"Get widgets in the sidebar"
"List inactive widgets"
File Operations
"Read style.css from my theme"
"Create a new custom.css file in my theme"
"Copy functions.php to functions-backup.php"
"Delete old-template.php with backup"
Security Features
All operations are secure:
- β Only allowed directories (themes, plugins, uploads)
- β Only safe file extensions (.php, .css, .js, etc.)
- β Malware pattern detection
- β PHP syntax validation
- β Automatic backups before changes
- β WordPress permission system
- β File size limits (10MB)
WordPress Authentication
Self-Hosted WordPress:
- Install Basic Auth plugin
- Use your WordPress admin username and password
WordPress.com:
- Requires Business plan or higher
- Generate Application Password in Settings β Security
Project Structure
src/tools/
βββ posts.ts # 15 post management tools
βββ pages.ts # 4 page tools
βββ media.ts # 5 media tools
βββ filesystem.ts # 8 file system tools
βββ themes.ts # 13 theme management tools
βββ plugins.ts # 10 plugin management tools
βββ menus.ts # 8 menu management tools
βββ all-features.ts # Users, categories, tags, comments, settings, SEO
filesystem-plugin/
βββ wpmcp-filesystem.php # Required for file operations
Development
# Clone repository
git clone https://github.com/RaheesAhmed/wordpress-mcp-server.git
cd wordpress-mcp-server
# Install dependencies
npm install
# Build
npm run build
# Run
npm start
Testing
All features tested on live WordPress:
- β 21/21 tests passed
- β File operations working
- β Theme management verified
- β Plugin control confirmed
- β Security validated
API Examples
Create Post
{
"title": "My Post",
"content": "<p>Content here</p>",
"status": "publish"
}
Create Child Theme
{
"parentTheme": "twentytwentyfive",
"childName": "My Custom Theme"
}
Activate Plugin
{
"plugin": "akismet/akismet"
}
Read Theme File
{
"theme": "mytheme",
"filePath": "functions.php"
}
Write File
{
"path": "wp-content/themes/mytheme/custom.css",
"content": "/* Custom styles */",
"createBackup": true
}
Contributing
- Fork the repos
README truncated. View full README on GitHub.
Alternatives
Related Skills
Browse all skillsUI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
Leveraging AI coding assistants and tools to boost development productivity, while maintaining oversight to ensure quality results.
Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.
Creates educational Teams channel posts for internal knowledge sharing about Claude Code features, tools, and best practices. Applies when writing posts, announcements, or documentation to teach colleagues effective Claude Code usage, announce new features, share productivity tips, or document lessons learned. Provides templates, writing guidelines, and structured approaches emphasizing concrete examples, underlying principles, and connections to best practices like context engineering. Activates for content involving Teams posts, channel announcements, feature documentation, or tip sharing.
Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.