WordPress

WordPress

raheesahmed

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.

42655 views20Local (stdio)

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

WordPress developers automating site management tasksContent creators managing multiple WordPress sitesAgencies handling client WordPress maintenanceBuilding AI-powered WordPress management workflows
190+ management toolsFile system access for themes and pluginsNatural language WordPress control

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.

WPMCP Logo

WordPress MCP Server

Enable AI to manage WordPress sites like a professional developer

190+ tools for complete WordPress control

Also Available on glama.ai | Cursor.store

npm version License: MIT WordPress


Video Demo : https://youtu.be/6hwMqXQFKN0

πŸ’ Support This Project

If this project helps you, consider supporting its development:

Cryptocurrency Donation

Select CoinSelect NetworkContractDeposit Address
πŸͺ™ USDT (TetherUS)πŸ”— TRX (Tron TRC20)Ending in jLj6tTBJBb7fKyRdhqmWETyZoNP4X98mPk2Jxrt

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)

  1. Install wpmcp-plugin/wpmcp.zip to /wp-content/plugins/wpmcp-plugin/
  2. Activate via WordPress Admin β†’ Plugins β†’ "WordPress MCP Server Plugin"
  3. Ensure you have edit_themes and edit_plugins capabilities

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.

CategoryToolsWhat You Can Do
Posts (15)create, update, delete, search, schedule, publish, duplicate, bulkManage all blog content
Pages (4)create, update, delete, hierarchyBuild site structure
Media (5)upload, update, delete, featured imagesManage images and files
Users (4)create, update, delete, rolesUser management
Categories (4)create, update, delete, hierarchyOrganize content
Tags (2)create, getTag content
Comments (4)create, update, delete, moderateManage discussions
Settings (4)get, update site settingsConfigure WordPress
SEO (2)meta description, focus keywordsOptimize for search
File System (8)read, write, delete, copy, moveEdit any file
Theme Manager (13)activate, child themes, theme.json, templatesComplete theme control
Plugin Manager (10)activate, deactivate, read/write filesFull plugin control
Menu Manager (8)create, add items, assign locationsFull navigation control
Custom Types (7)get post types, taxonomies, manage termsAdvanced content types
Shortcodes (3)list, execute, check existenceShortcode system
Cron Jobs (5)list, schedule, unschedule, run manuallyTask scheduling
Widgets (6)get sidebars, widgets, types, updateWidget management
Database (6)execute queries, manage options, list tablesDatabase operations
WooCommerce (15)products, orders, customers, inventory, couponsE-commerce management
Gutenberg Blocks (12)block types, patterns, reusable blocks, templatesModern block editor
Security (7)site health, updates, integrity, debug logsSecurity monitoring
Performance (8)cache, optimization, cleanup, image processingPerformance 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:

  1. Install Basic Auth plugin
  2. Use your WordPress admin username and password

WordPress.com:

  1. Requires Business plan or higher
  2. 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

  1. Fork the repos

README truncated. View full README on GitHub.

Alternatives

Related Skills

Browse all skills
ui-design-system

UI 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.

18
ai-sdk

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".

6
ai-assisted-development

Leveraging AI coding assistants and tools to boost development productivity, while maintaining oversight to ensure quality results.

4
api-documenter

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.

4
teams-channel-post-writer

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.

4
openai-knowledge

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`.

4