rickmcp

Rick MCP Banner # ⚑ Rick MCP ### The Standard, Enterprise-Grade Model Context Protocol (MCP) Server for WordPress & WooCommerce [![WordPress Tested](https://img.shields.io/badge/WordPress-6.2%20%E2%80%93%206.7-21759B?style=for-the-badge&logo=wordpress&logoColor=white)](https://wordpress.org/) [![PHP Version](https://img.shields.io/badge/PHP-8.0%2B-777BB4?style=for-the-badge&logo=php&logoColor=white)](https://www.php.net/) [![WooCommerce Ready](https://img.shields.io/badge/WooCommerce-Compatible-96588A?style=for-the-badge&logo=woocommerce&logoColor=white)](https://woocommerce.com/) [![MCP Spec](https://img.shields.io/badge/MCP-JSON--RPC%202.0%20%7C%20Streamable%20HTTP%20%2B%20SSE-10B981?style=for-the-badge)](https://modelcontextprotocol.io/) [![Automated Tests](https://img.shields.io/badge/Tests-108%20Passed%20%E2%9C%93-brightgreen?style=for-the-badge)](./tests) [![License: GPLv2+](https://img.shields.io/badge/License-GPLv2%2B-blue?style=for-the-badge)](./LICENSE) [![Security: Zero Telemetry](https://img.shields.io/badge/Privacy-100%25%20Zero%20Telemetry-EF4444?style=for-the-badge)](./SECURITY.md)

Connect Claude Desktop, Cursor, Windsurf, ChatGPT, Antigravity, VS Code, or any MCP-compatible AI agent directly to your WordPress & WooCommerce site in under 60 seconds.
Full-site administrative power, Gutenberg block awareness, 4-tier security guardrails, two-phase dry-run safety previews, and 1-click time-machine rollback.


🎬 Watch 20-Second Product Launch Video & Animation (with Audio)

[Quickstart](#-60-second-quickstart) β€’ [What's New in v1.2.0](#-whats-new-in-v120) β€’ [Architecture](#%EF%B8%8F-architecture) β€’ [Client Setup](#-connect-your-favorite-ai-client) β€’ [Capabilities](#-modular-capabilities-catalog) β€’ [Add-ons](#-14-installable-famous-plugin--theme-add-ons) β€’ [Security](#%EF%B8%8F-enterprise-4-tier-security-matrix) β€’ [WP-CLI](#-wp-cli-command-reference)

πŸ“‘ Table of Contents


✨ Why Rick MCP?

Traditional AI connectors rely on fragile webhooks, brittle REST wrappers, or third-party cloud services that intercept your business data and charge recurring subscription fees. Rick MCP turns WordPress itself into a native, high-performance, self-hosted Model Context Protocol (MCP) server:


πŸ”₯ What’s New in v1.2.0

Rick MCP v1.2.0 delivers production-grade security controls, expanded WooCommerce capabilities, and official MCP Resource Templates:


πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           AI Clients: Claude Desktop, Cursor, Windsurf, Antigravity     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                     β”‚ JSON-RPC 2.0 (MCP Protocol)
            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
            β–Ό                                                 β–Ό
   Streamable HTTP / SSE                            Local Stdio Bridge
   /wp-json/wp-mcp/v1/mcp                           npx @m4tinbeigi/wp-mcp-bridge
            β”‚                                                 β”‚
            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                     β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                           Rick MCP Core Engine                          β”‚
β”‚                                                                         β”‚
β”‚  [1] Emergency Kill Switch & Sliding-Window Rate Limiter                β”‚
β”‚  [2] Global IP Allowlist & Custom CORS Policy Enforcement               β”‚
β”‚  [3] SHA-256 Scoped Bearer Token & Application Password Authenticator   β”‚
β”‚  [4] Strict WordPress RBAC (current_user_can) & 4-Tier Risk Matrix      β”‚
β”‚  [5] Two-Phase Dry-Run Engine & Confirmation Token Validator            β”‚
β”‚  [6] Draft-Only Policy Gate & Media Upload MIME/Size Guardrails         β”‚
β”‚  [7] Pre-Mutation Snapshot Engine (Full Object Serialization)           β”‚
β”‚  [8] Structured Audit Logger with Real-time Email & Webhook Alerts      β”‚
β”‚  [9] Modular Registry: Core + WooCommerce + SEO + 14 Famous Add-ons     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                     β”‚
                                     β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚     WordPress Core APIs, Gutenberg Block Registry & WooCommerce Engine  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ 60-Second Quickstart

Step 1: Install & Activate Rick MCP

  1. Download or clone this repository into your plugins folder:
    git clone https://github.com/m4tinbeigi-official/rickmcp.git wp-content/plugins/rickmcp
    
  2. Activate Rick MCP from WordPress Admin β†’ Plugins.
  3. Navigate to Rick MCP in your admin sidebar.

Step 2: Generate a Scoped Token

  1. Open the Quick Connect tab in the Rick MCP dashboard.
  2. Choose a Permission Preset (Store & Content Manager, Content & SEO Editor, SEO Specialist, Read Only, or Full Site Admin).
  3. Click Generate Token and copy your wpmcp_live_... secret token immediately.

πŸ”Œ Connect Your Favorite AI Client (1-Click & Fast Setup)

Rick MCP features a dedicated AI Client Connection Hub directly inside WordPress Admin β†’ Rick MCP β†’ Quick Connect with 1-click config file downloads, 1-line terminal commands, and live connection verification for the leading AI platforms:

🟣 Claude (Anthropic Claude Desktop & Claude Code CLI)


πŸ”΅ Codex (Cursor IDE, VS Code Codex & Codex CLI)


🌌 Antigravity (Google DeepMind Agent & AGY CLI)


🟒 ChatGPT Custom Connectors (OAuth 2.1 + PKCE)

Rick MCP includes a built-in RFC 8414 & RFC 7591 OAuth 2.1 Authorization Server:

Option 4: VS Code (Cline / Roo Code)

In VS Code MCP settings, add:

{
  "mcpServers": {
    "wordpress-rick-mcp": {
      "url": "https://example.com/wp-json/wp-mcp/v1/mcp",
      "headers": {
        "Authorization": "Bearer wpmcp_live_YOUR_GENERATED_TOKEN"
      }
    }
  }
}

Option 5: WordPress Application Passwords (HTTP Basic Auth)

Rick MCP seamlessly supports native WordPress Application Passwords:

{
  "mcpServers": {
    "my-wordpress-site": {
      "url": "https://example.com/wp-json/wp-mcp/v1/mcp",
      "headers": {
        "Authorization": "Basic YWRtaW46eHh4eCB4eHh4IHh4eHggeHh4eA=="
      }
    }
  }
}

🧰 Modular Capabilities Catalog

Every module can be independently enabled or disabled in Rick MCP β†’ Modules & Risk Matrix:

Module Key AI Tools & Capabilities Default Status
Content & Gutenberg wp_mcp_list_posts, wp_mcp_get_post, wp_mcp_create_post, wp_mcp_update_post, wp_mcp_delete_post, wp_mcp_bulk_update_posts, wp_mcp_manage_taxonomies, wp_mcp_moderate_comments, wp_mcp_list_revisions, wp_mcp_set_post_featured_image βœ… Enabled
Media Library wp_mcp_list_media, wp_mcp_upload_media_from_url (SSRF-guarded), wp_mcp_update_media_meta, wp_mcp_upload_media_base64, wp_mcp_bulk_audit_alt_text βœ… Enabled
Navigation & Theme wp_mcp_list_menus, wp_mcp_save_menu, wp_mcp_get_theme_overview, wp_mcp_get_theme_json, wp_mcp_manage_fse_templates, wp_mcp_list_widgets βœ… Enabled
WooCommerce Suite wp_mcp_woo_list_products, wp_mcp_woo_get_product, wp_mcp_woo_create_product, wp_mcp_woo_update_product, wp_mcp_woo_bulk_update_prices (Dry-Run), wp_mcp_woo_list_orders, wp_mcp_woo_update_order, wp_mcp_woo_refund_order, wp_mcp_woo_create_coupon, wp_mcp_woo_store_analytics, wp_mcp_woo_list_customers, wp_mcp_woo_shipping_and_gateways, wp_mcp_woo_bulk_update_stock, wp_mcp_woo_manage_reviews, wp_mcp_woo_manage_variations βœ… Enabled (auto-detected)
SEO & Custom Fields wp_mcp_get_seo_meta, wp_mcp_update_seo_meta (Supports Yoast SEO, Rank Math, All in One SEO, and ACF fields) βœ… Enabled
Universal Discovery wp_mcp_site_overview, wp_mcp_list_post_types_and_taxonomies, wp_mcp_list_gutenberg_blocks, wp_mcp_discover_rest_routes, wp_mcp_call_rest_route, wp_mcp_export_client_config βœ… Enabled
Abilities API Bridge wp_mcp_discover_abilities, wp_mcp_get_ability_info, wp_mcp_execute_ability (Direct bi-directional bridge to canonical WordPress Abilities API & mcp-adapter) βœ… Enabled
Plugin Add-ons Engine Dynamic discovery and execution for 31 famous plugin & theme adapters βœ… Enabled
Multisite Network wp_mcp_network_list_sites, wp_mcp_network_site_summary via safe switch_to_blog πŸ”’ Opt-In
Users & Roles wp_mcp_list_users, wp_mcp_update_user_role (Strict privilege-escalation prevention) πŸ”’ Opt-In
System & Diagnostics wp_mcp_get_settings, wp_mcp_update_setting, wp_mcp_manage_cron, wp_mcp_get_site_health, wp_mcp_read_debug_log, wp_mcp_db_inspect, wp_mcp_db_cleanup, wp_mcp_export_data πŸ”’ Opt-In
Plugins & Extensions wp_mcp_list_plugins, wp_mcp_toggle_plugin (Guarded against self-lockout), wp_mcp_install_wporg_plugin πŸ”’ Opt-In

🧩 31 Installable Famous-Plugin & Theme Add-ons

Rick MCP ships with 31 modular, independent adapters pre-bundled in the addons/ directory. Each add-on can be activated, deactivated, deleted, reinstalled, or extended:

Add-on Slug Target WordPress Plugin / Theme Capabilities Unlocked for AI Agents
elementor Elementor Website Builder Inspect _elementor_data widget trees, update headings/text with snapshot rollback, list templates, and regenerate CSS cache
acf Advanced Custom Fields Inspect ACF field groups, read schema definitions, and update structured post and options fields
meta-box Meta Box Custom Fields Read and update Meta Box field values on posts and settings with rollback snapshot
jet-engine JetEngine Dynamic Content Inspect Crocoblock JetEngine post types, taxonomies, and manage post meta fields
pods Pods Framework List Pods content types and save/retrieve custom field values
bricks-builder Bricks Builder Inspect and update Bricks builder JSON element trees (_bricks_page_content_2) and templates
divi Divi Builder & Theme Inspect Divi builder status, raw layouts, and Divi Library layout templates
spectra Spectra Gutenberg Blocks Inspect Brainstorm Force Spectra block settings and regenerate asset cache
contact-form-7 Contact Form 7 List forms, inspect form tags and mail templates, create and update forms
wpforms WPForms List forms, decode form JSON schemas, and create or update forms
gravity-forms Gravity Forms List forms, read field schemas, and fetch recent entry submissions via GFAPI
fluent-forms Fluent Forms List forms, inspect form schemas, and fetch submission entry logs
formidable-forms Formidable Forms List forms, read schemas, and retrieve entry responses
easy-digital-downloads Easy Digital Downloads (EDD) Inspect digital downloads, store payments/orders, and manage discount codes
woocommerce-subscriptions WooCommerce Subscriptions Manage recurring subscriptions, next renewal dates, and status changes with rollback
learndash LearnDash LMS Inspect courses (sfwd-courses), lessons, topics, quizzes, and learner curriculum
tutor-lms Tutor LMS List courses, inspect curriculum topics, and monitor student enrollments
memberpress MemberPress Membership List membership plans (memberpressproduct) and content protection access rules
redirection Redirection List 301/302/307 redirects, add new rules, and safely delete redirect entries
litespeed-cache LiteSpeed Cache Purge all cache, purge specific post IDs, and inspect cache purge status
wp-rocket WP Rocket Clear domain and post cache, trigger sitemap preloading, inspect optimization status
polylang Polylang Multilingual List site languages, inspect translations, and link multilingual post translations
wpml WPML Multilingual Inspect active languages and translate posts across TRID translation groups
updraftplus UpdraftPlus Backup Trigger on-demand instant database/file backups before risky operations and list backups
wordfence Wordfence Security Inspect WAF firewall status, version, and list blocked IP addresses
woodmart-theme WoodMart Theme & Shop Manage theme options, HTML Blocks (cms_block), Theme Builder layouts, Header Builder, and purge theme cache with rollback
astra-theme Astra Theme & Pro Manage Customizer options (astra-settings), 9-color global palettes, Custom Layouts & Hooks (astra-advanced-hook), page layout meta, and asset cache refresh
flatsome-theme Flatsome Theme & UX Builder Read and update Flatsome theme mods, UX Blocks (blocks post type), and product layouts
generatepress-theme GeneratePress & GP Premium Manage theme settings (generate_settings), GP Elements hooks and block elements
kadence-theme Kadence Theme Manage theme options, global color palettes, and typography presets
jannah-theme Jannah Theme & Taqyeem Manage news/magazine options (tie_options), post layout & video/audio embeds, Taqyeem review & rating boxes, built-in advertising spaces, and transient cache purge

πŸ›‘οΈ Enterprise 4-Tier Security Matrix

Rick MCP is engineered from the ground up for zero-trust environments:

 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚                   4-Tier Risk Matrix                   β”‚
 β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
 β”‚ Tier 1 β”‚ Safe (Read)     β”‚ Immediate execution         β”‚
 β”‚ Tier 2 β”‚ Standard Write  β”‚ Capability + Snapshot       β”‚
 β”‚ Tier 3 β”‚ Bulk/Structural β”‚ Two-Phase Dry-Run Required  β”‚
 β”‚ Tier 4 β”‚ Critical Admin  β”‚ Disabled by Default (Opt-In)β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Risk Tier Typical Operations Enforcement Policy
Tier 1 β€” Safe Listing posts, reading products, analytics, site overview Executed immediately. Labeled with readOnlyHint: true.
Tier 2 β€” Standard Write Creating a post, updating a single product price, setting featured media Checked against user capabilities (edit_posts, manage_woocommerce). Automatic Pre-Mutation Snapshot captured.
Tier 3 β€” Bulk / Structural Bulk price updates, bulk stock sync, menu restructuring, refunds Enforces Two-Phase Dry-Run. The tool returns a preview diff and a short-lived confirmation_token. Mutation only occurs after explicit user re-submission.
Tier 4 β€” Critical Admin User role escalation, plugin toggle, DB cleanup, system options Disabled by default. Requires explicit administrator opt-in in settings, strict capabilities (manage_options), and confirmation tokens.

Defense-in-Depth Features:


βͺ 1-Click Rollback & Mutation Snapshots

Before any database write occurs, Rick MCP captures a full JSON snapshot of the target object (post, product, meta, menu, option, or Elementor widget tree).

  1. Open Rick MCP β†’ Audit Log & Rollback in your WordPress admin.
  2. Review the chronological timeline of all AI actions, tool names, parameters, and risk tiers.
  3. Click Rollback on any mutated entry to restore the exact previous state in milliseconds.
  4. Export the complete audit log to CSV or JSON for compliance and security auditing.
  5. Click Prune Snapshots to free up database space without deleting audit event records.

πŸ’» WP-CLI Command Reference

Manage Rick MCP directly over SSH or in automated CI/CD deployment pipelines:

# Check server health, active connections, and module status
wp mcp status

# Mint a new scoped token for an AI client
wp mcp token create --user=1 --label="Production Claude" --preset=store_manager --ttl=90

# List all issued tokens and expiration dates
wp mcp token list

# Immediately revoke a compromised token
wp mcp token revoke 3

# Activate the Emergency Kill Switch (halts all MCP traffic)
wp mcp kill-switch on

# Resume normal AI operations
wp mcp kill-switch off

# List status of all 12 famous-plugin add-ons
wp mcp addons list

# Activate or deactivate an add-on
wp mcp addons activate elementor
wp mcp addons deactivate tutor-lms

# Prune audit log entries older than 30 days
wp mcp cleanup-logs --days=30

πŸ‘¨β€πŸ’» Developer Extensibility (Hooks & Filters)

Extend Rick MCP from custom plugins or themes with just a few lines of code:

Register a Custom MCP Tool

add_action( 'wp_mcp_register_tools', function ( \WpMcp\Mcp\Registry $registry ) {
    $registry->register_tool(
        'my_plugin_get_bookings',
        [
            'module'      => 'discovery',
            'title'       => 'Get Recent Bookings',
            'description' => 'Retrieve upcoming calendar bookings from My Custom Plugin.',
            'capability'  => 'manage_options',
            'risk_tier'   => 'safe',
            'annotations' => [
                'readOnlyHint'    => true,
                'destructiveHint' => false,
                'idempotentHint'  => true,
            ],
            'inputSchema' => [
                'type'       => 'object',
                'properties' => [
                    'limit' => [ 'type' => 'integer', 'default' => 10 ],
                ],
            ],
            'callback'    => function ( array $args ) {
                return [ 'bookings' => [] ];
            },
        ]
    );
} );

Register a Dynamic MCP Resource Template

add_action( 'wp_mcp_register_resources', function ( \WpMcp\Mcp\Registry $registry ) {
    $registry->register_resource_template(
        'myplugin://bookings/{id}',
        [
            'module'      => 'discovery',
            'name'        => 'Custom Booking by ID',
            'description' => 'Retrieve detailed information for a specific booking ID.',
            'mimeType'    => 'application/json',
            'capability'  => 'manage_options',
            'callback'    => function ( array $params ) {
                $booking_id = absint( $params['id'] ?? 0 );
                return [ 'booking_id' => $booking_id, 'status' => 'confirmed' ];
            },
        ]
    );
} );

πŸ§ͺ Testing & Verification

Rick MCP includes a comprehensive, standalone test suite that runs without requiring a live database:

# Lint all PHP files
composer lint

# Run the automated unit & MCP protocol test suite (108 tests)
composer test
Running WP-MCP Automated Test Suite...

1. Activation & Default Settings (5 passed)
2. Scoped Token Management & Authenticator (6 passed)
3. MCP Protocol Handshake, Resources, Prompts & Scope Filtering (8 passed)
4. Content Creation, Gutenberg Blocks, Snapshot & 1-Click Rollback (6 passed)
5. WooCommerce Variable Products & Two-Phase Dry-Run Guard (6 passed)
6. Security Hardening (SSRF, Allowlist, Kill Switch, Rate Limit) (12 passed)
7. Modular Famous-Plugin Add-ons Lifecycle & Execution (15 passed)
8. Author Metadata, Links & Plugin Row Meta (6 passed)
9. OAuth 2.1 + PKCE, Extended Modules, i18n & 12 Add-ons (28 passed)
10. v1.2.0 Enhancements: Settings, Scoping, Templates, Draft-Only, Reviews, Variations & Audit Export (16 passed)

========================================
Results: 108 passed, 0 failed.

βš–οΈ License & Trademark Protection


πŸ‘¨β€πŸ’» About the Author

Created and actively maintained by Rick Sanchez:


Rick MCP β€” Built with precision for the open WordPress, WooCommerce & AI ecosystem by Rick Sanchez.