Cadyra Privacy and Audit for MCP

Description

Cadyra Privacy & Audit for MCP is an open-source Privacy, Audit, and Access Control Gateway for WordPress sites using the Model Context Protocol (MCP) and the WordPress Abilities API.

When autonomous AI agents (such as Claude, ChatGPT, Cursor, n8n, or custom LangChain workers) connect to your WordPress site via MCP, they operate with significant programmatic power. Without dedicated guardrails, an autonomous agent can accidentally overwrite critical database options, expose customer PII to external cloud models, or fall into infinite execution loops that exhaust server resources.

Cadyra Privacy & Audit for MCP acts as an intelligent local security and privacy layer between your AI agents and WordPress Core, supporting regional PII detection for DACH / EU (GDPR / DSGVO), Switzerland (revDSG), United Kingdom (UK GDPR), USA (CCPA / CPRA & US State Laws), Canada (PIPEDA & Québec Law 25), and Australia (Privacy Act / APP) as well as EUR, CHF, GBP, USD, CAD, and AUD WooCommerce financial guardrails in Pro.

🛡️ Core Security & Privacy Pillars (Free Edition — Supported PII Regions: DACH/EU, CH, UK, USA, CA & AU)

  • 1. Gateway Isolation & Access Control: Confines registered AI agent credentials to the /wp-json/mcp/* namespace, preventing agents from calling raw REST endpoints or accessing user tables directly. (Per-agent scopes are available in the Pro extension.)
  • 2. One-Way Contact Data Redaction ([REDACTED] — DACH/EU, CH, UK, US, CA & AU): Outbound contact data minimization assistant across MCP responses and the interactive prompt sanitizer. Detects email addresses, DACH/EU (DE/AT), Swiss (CH), UK, US/Canadian NANP, Australian, and international +CC phone numbers, and IPv4/IPv6 addresses and masks them one-way via [REDACTED] placeholders before transmission to AI models (regional business/address/ID detectors, structured billing/user field masking, strict HTTP 403 data lock, real-time alerts, and reversible {{CADYRA_VAR_...}} AES-256-GCM vault pseudonymization are available in the separate PRO add-on).
  • 3. Privilege Escalation & Options Guard: Blocks agents from elevating user roles to administrator, modifying sensitive options (like siteurl, home, active_plugins), or deleting administrative accounts.
  • 4. Gutenberg Block & XSS Guard (Gutenberg Only in Free): Validates Gutenberg block grammar and blocks Stored-XSS script payloads before AI agents write post content (deep Elementor JSON and Divi 5 / Divi 4 AST validation are available in Pro).
  • 5. Media Firewall (Anti-XSS): Scans file uploads from AI agents, blocking malicious SVG payloads (Stored XSS) and executable files.
  • 6. Circuit Breaker & Loop Killer: Detects repetitive tool-call loops and trips an automatic circuit breaker (HTTP 429) to prevent token exhaustion and denial-of-service.
  • 7. Compatibility & Conflict Sentinel: Scans 18 caching engines, 16 WAFs, and server headers to auto-mitigate caching conflicts and ensure seamless MCP SSE streaming.

🔒 Local-Only Data Handling & Zero-Config Regional Coverage

  • Local-First Processing — No DPA Required with Cadyra: The plugin does not transmit site content, customer PII, or telemetry to Cadyra servers.
  • Local Security Audit Log: Authenticated MCP tool calls record a local database log entry (tx_id, ability name, sanitized parameters, authenticated WordPress user ID/login, and client IP address). Entries are automatically purged after 30 days, exportable as CSV/JSON, and integrated into WordPress Core’s Tools > Export / Erase Personal Data workflows as well as Settings > Privacy > Policy Guide.
  • Zero-Config Detection & Automatic WooCommerce Currency Sync: Built-in PII detectors across DACH/EU (DE, AT, FR & EU IBAN), Switzerland (CH revDSG), UK (GB UK GDPR), USA (US CCPA/CPRA), Canada (CA PIPEDA & Law 25), and Australia (AU Privacy Act) run simultaneously out of the box (best-effort pattern matching), while WooCommerce financial guardrails read your active store currency (woocommerce_currency) and inspect common Multi-Currency price fields without manual dropdown configuration.
  • Optional Administrator Webhooks (PRO Add-on): The Free plugin makes zero outbound network requests to third-party services. Only when using the separate PRO add-on and explicitly configuring an alert webhook URL (such as Slack, Microsoft Teams, or n8n) under Cadyra AI Guard > Settings, alert metadata (tx_id, ability name, site URL, and client identifier) is sent to that endpoint.

🚀 Pro / Commercial Capabilities (Managed via Freemius)

Free stands watch. Pro lets you pseudonymize reversibly, undo, prove and delegate.

The core blocks what an agent must not do. The add-on answers the questions commercial budgets are approved for: reversible local pseudonymization, what happens after a mistake, how to prove what happened, and who is allowed to do what.

Upgrade to Cadyra Privacy & Audit for MCP PRO to unlock:
* Reversible AES-256-GCM PrivacyVault (DACH/EU, FR, CH, UK, USA, CA & AU): Local pseudonymization across all of WordPress & WooCommerce (orders, customers, pages, users), adding native checksummed detectors for DACH / EU (DE/AT/CH streets & postcodes, French streets, German Steuer-ID & SVNR, EU/CH/UK Mod-97 IBANs), Switzerland (revDSG: EAN-13 AHV 756.*), United Kingdom (UK GDPR: Royal Mail postcodes SW1A 2AA, HMRC NINO & UTR), USA (CCPA/CPRA: 50-state ZIP+4, SSN, EIN/ITIN), Canada (PIPEDA & Law 25: A1A 1A1 postcodes, Québec French streets, Luhn SIN/NAS), and Australia (Privacy Act: State + Postcode, ATO Mod-11 TFN), plus names, Luhn payment cards, and dates of birth.
* 72h Rollback Time Machine: Captures the previous state of posts, pages, products, WooCommerce orders (incl. HPOS), coupons and options before an agent writes to them, and restores it with 1 click.
* Human-in-the-Loop Approval Gate: Holds destructive or high-impact abilities (as well as tier-3 PII requests) until approved by an administrator directly on the Dashboard, via email, or via webhook.
* WooCommerce & Multi-Currency Financial Safeguards: Helps prevent accidental zero-price product glitches, steep price drops, excessive coupon discounts, and unapproved order modifications across standard ISO-4217 WooCommerce base currencies as well as common secondary Multi-Currency product fields (WPML/WCML, CURCY, WOOCS/FOX, Aelia, REST meta_data).
* Granular Agent Scoping: Per-agent least privilege (role profiles, CRUD & draft-only locks, post-type restrictions, and page/post allowlists or denylists) instead of one shared agent credential for the whole site.
* Tamper-evident Audit Hash Chain & Evidence Package: SHA-256 hash chain over every log entry with break detection, controlled resealing, and HMAC-authenticated JSON/HTML compliance reports.
* Divi 5, Divi 4 & Elementor AST Validation: Structural validation of builder layouts beyond JSON shape, so an agent cannot produce a syntactically valid but broken page.

™️ Trademark Notice

Model Context Protocol and MCP are trademarks of The Linux Foundation. Cadyra Privacy & Audit for MCP is an independent third-party integration and is not affiliated with or endorsed by The Linux Foundation.

Screenshots

Installation

  1. Ensure the official WordPress MCP Adapter (mcp-adapter) is installed and active.
  2. Upload the cadyra-privacy-and-audit-for-mcp folder to your /wp-content/plugins/ directory, or install it via the WordPress Plugins menu.
  3. Activate Cadyra Privacy & Audit for MCP through the Plugins screen in WordPress.
  4. Navigate to Cadyra AI Guard > Settings to review your automatically detected regional, governance, and options allowlist settings.
  5. (Optional) Run the System Compatibility Scanner to verify FastCGI Authorization header forwarding.
  6. (Optional) Install the Cadyra Privacy & Audit for MCP PRO add-on and enter your Freemius Pro licence key to unlock the reversible PrivacyVault, 72h rollback, approval gates, multi-builder AST guard, and WooCommerce protection.

FAQ

Does Cadyra Privacy & Audit for MCP replace a legal GDPR / CCPA compliance review?

No. Software filters operate on known patterns and structured fields (best-effort risk reduction) and cannot catch every edge case or unstructured disclosure. Cadyra Privacy & Audit for MCP is a technical assistance tool designed to help reduce accidental PII exposure and support security of processing (Art. 25 & Art. 32 GDPR, CCPA/CPRA), while overall legal and organizational responsibility remains with the site operator.

Will the AI model never see personal data?

No software filter can promise that. Detection is pattern-based and runs locally on your server: Free redacts email addresses, regional/international phone numbers, and IP addresses one-way via [REDACTED] across MCP responses and in the manual prompt sanitizer; the separate Pro add-on adds structured billing/user field masking (billing_*, shipping_*, customer/user objects), regional business PII detectors (names, street addresses, ZIP/postcodes, SSN/SIN/TFN/AHV/NINO, EIN/ITIN, IBANs, payment cards, German IDs), reversible AES-256-GCM vault tokens, real-time alerts, and strict data lock (HTTP 403). Free text such as an unusual name without a salutation or unlisted foreign formats can still slip through.

Does this work with Claude, ChatGPT, Cursor, and n8n?

Yes. Cadyra hooks into the open Model Context Protocol (MCP) JSON-RPC 2.0 workflow and the official WordPress Abilities API to inspect requests from compatible MCP clients.

What happens if an AI agent enters an infinite loop?

The Cadyra Circuit Breaker monitors call velocity and tool signatures per session. If an agent calls the same tool repeatedly with identical parameters, Cadyra immediately trips and returns HTTP 429, protecting your server resources and API token budget.

Can I rollback changes made by an AI agent?

Yes. With the Pro license active, Cadyra’s 72h Rollback Time Machine snapshots posts, pages, products, WooCommerce orders, coupons and options before an agent changes them. You can view all agent transactions under Cadyra AI Guard > 72h Rollback and revert them with 1 click. Order line items are checked but not rebuilt: if an agent changed them, the rollback asks for confirmation and leaves them for manual review.

Does the WordPress mobile app keep working?

Yes. Only credentials you register as agents under Cadyra AI Guard > Settings > Agent access are confined to the MCP endpoints. Existing application passwords are classified as human on activation, so the WordPress app, WP-CLI, XML-RPC and other integrations keep working. MCP traffic is always guarded. Sites that want every application password treated as an agent can enable strict mode.

What data remains after uninstalling?

Deleting the plugin removes its options, transients, scheduled events, user meta and the snapshot table (snapshots can contain previous values with personal data). The audit log table is kept by default because it can serve as documentation; delete it as well with define( 'CADYRA_MCP_DROP_TABLES_ON_UNINSTALL', true ); in wp-config.php before uninstalling. A Pro licence is not touched by the free plugin; the Pro add-on releases its own activation when it is deleted.

Where do I purchase a Pro license?

You can purchase license keys securely via Freemius on cadyra.com.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Cadyra Privacy and Audit for MCP” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.2.0

  • Initial WordPress.org release of Cadyra Privacy & Audit for MCP.
  • Added: 13 standalone Free security & privacy modules for the WordPress MCP Adapter (mcp-adapter) and WordPress 6.9+ Abilities API.
  • Added: Zero-config one-way contact PII redaction ([REDACTED]) for emails, DACH/EU, CH, UK, US/CA NANP, AU & international phone numbers, and IPv4/IPv6 addresses across MCP responses and the interactive Pre-Flight Prompt Sanitizer.
  • Added: Dedicated Agent Access management (Application Password quarantine to /wp-json/mcp/* without disrupting WP-CLI, XML-RPC, or the WordPress mobile app).
  • Added: Privilege Escalation Guard, Strict Options Allowlist & Secret Masker, Gutenberg Block Grammar & Stored-XSS Guard, SVG/Media Upload Firewall, Indirect Prompt Injection Guard (OWASP LLM01), AI Sandbox & Draft Staging Guard, and Sliding-Window Loop Breaker (HTTP 429).
  • Added: Local SQL Audit Log with CSV/JSON export, 30-day automatic retention cleanup, WordPress Privacy Policy Guide integration, and GDPR Art. 15/17 personal data exporter & eraser hooks.
  • Added: 6-pillar Compatibility & Conflict Sentinel (18 caching layers, 16 WAFs, FastCGI Authorization header probe) and complete English + German (de_DE & de_DE_formal) localizations.