# β‘ Rick MCP
### The Standard, Enterprise-Grade Model Context Protocol (MCP) Server for WordPress & WooCommerce
[](https://wordpress.org/)
[](https://www.php.net/)
[](https://woocommerce.com/)
[](https://modelcontextprotocol.io/)
[](./tests)
[](./LICENSE)
[](./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)
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:
readOnlyHint, destructiveHint, and idempotentHint annotations), Dynamic Resource Templates (wordpress://..., woocommerce://...), and built-in Prompts.parse_blocks / serialize_blocks) or raw HTML seamlessly.Rick MCP v1.2.0 delivers production-grade security controls, expanded WooCommerce capabilities, and official MCP Resource Templates:
enforce_draft_only): Prevent AI agents from publishing posts, pages, or products directly to the live site. When enabled, all created content is automatically constrained to draft status for administrative review.Access-Control-Allow-Origin headers for browser-based AI workspaces.wp_mcp_woo_list_orders), with a new built-in seo_specialist preset for focused content marketing agents.resources/templates/list) with dynamic URI matching for:
wordpress://posts/{id}: Inspect full post content, Gutenberg block tree, and metadata.woocommerce://orders/{id}: Inspect line items, billing/shipping addresses, and financial totals.woocommerce://products/{id}: Inspect product pricing, stock status, and variations.wp_mcp_woo_manage_reviews: List, approve, hold, spam, trash, or reply to customer product reviews.wp_mcp_woo_manage_variations: List, create, update prices/stock, and delete product variations.wp_mcp_set_post_featured_image): Assign or remove thumbnails with snapshot rollback safety.admin.php?page=rickmcp.βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 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 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
git clone https://github.com/m4tinbeigi-official/rickmcp.git wp-content/plugins/rickmcp
Store & Content Manager, Content & SEO Editor, SEO Specialist, Read Only, or Full Site Admin).wpmcp_live_... secret token immediately.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_desktop_config.json directly from the dashboard and place it in:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"my-wordpress-site": {
"command": "npx",
"args": [
"-y",
"@m4tinbeigi/wp-mcp-bridge",
"--url",
"https://example.com/wp-json/wp-mcp/v1/mcp",
"--token",
"wpmcp_live_YOUR_GENERATED_TOKEN"
]
}
}
}
claude mcp add my-wordpress-site npx -y @m4tinbeigi/wp-mcp-bridge --url "https://example.com/wp-json/wp-mcp/v1/mcp" --token "wpmcp_live_YOUR_GENERATED_TOKEN"
mcp.json from the dashboard and save it inside your projectβs .cursor/mcp.json folder.{
"mcpServers": {
"my-wordpress-site": {
"url": "https://example.com/wp-json/wp-mcp/v1/mcp",
"headers": {
"Authorization": "Bearer wpmcp_live_YOUR_GENERATED_TOKEN"
}
}
}
}
codex mcp add my-wordpress-site --url "https://example.com/wp-json/wp-mcp/v1/mcp" --header "Authorization: Bearer wpmcp_live_YOUR_GENERATED_TOKEN"
antigravity-mcp.json and place it in ~/.gemini/antigravity/mcp/my-wordpress-site.json or configure in Antigravity agent settings.{
"mcpServers": {
"my-wordpress-site": {
"url": "https://example.com/wp-json/wp-mcp/v1/mcp",
"headers": {
"Authorization": "Bearer wpmcp_live_YOUR_GENERATED_TOKEN"
}
}
}
}
agy mcp add my-wordpress-site --url "https://example.com/wp-json/wp-mcp/v1/mcp" --header "Authorization: Bearer wpmcp_live_YOUR_GENERATED_TOKEN"
mkdir -p ~/.gemini/antigravity/mcp && cat << 'EOF' > ~/.gemini/antigravity/mcp/my-wordpress-site.json
{
"mcpServers": {
"my-wordpress-site": {
"url": "https://example.com/wp-json/wp-mcp/v1/mcp",
"headers": {
"Authorization": "Bearer wpmcp_live_YOUR_GENERATED_TOKEN"
}
}
}
}
EOF
Rick MCP includes a built-in RFC 8414 & RFC 7591 OAuth 2.1 Authorization Server:
https://example.com/.well-known/oauth-authorization-serverhttps://example.com/wp-json/wp-mcp/v1/oauth/registerhttps://example.com/wp-json/wp-mcp/v1/oauth/authorizehttps://example.com/wp-json/wp-mcp/v1/oauth/tokenIn 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"
}
}
}
}
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=="
}
}
}
}
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 |
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 |
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. |
127.0.0.1, 10.0.0.0/8, 192.168.0.0/16), AWS metadata endpoints (169.254.169.254), and dangerous protocols (file://, gopher://).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).
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
Extend Rick MCP from custom plugins or themes with just a few lines of code:
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' => [] ];
},
]
);
} );
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' ];
},
]
);
} );
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.
Rick MCP trademark.Created and actively maintained by Rick Sanchez: