Hub MCP — Enterprise-Grade Remote MCP Server for AI Agents
Remote MCP server enabling AI agents like Claude to manage dozens of WordPress sites and query Search Console, GA4, and Google Ads through a single connection—with zero shared passwords and full auditability.
Streamable HTTP server built with Node.js 22, TypeScript, and Hono featuring OAuth 2.1 + PKCE (15m token rotation), AES-256-GCM secret encryption, explicit mutation gates, and SSRF protection.
Operational Challenge
Agencies managing dozens of client WordPress sites alongside Google Search Console, GA4, and Google Ads struggle with credential sprawl and per-site connector overhead. Granting an AI agent access to production properties requires strict permission boundaries, full traceability, and hard safeguards against accidental destructive actions.
Architecture Decisions
- Single remote MCP gateway (Streamable HTTP): Built on Node.js 22 + TypeScript + Hono. AI clients like Claude authenticate via OAuth 2.1 with PKCE, using short-lived 15-minute access tokens with refresh rotation.
- Isolated integration modules: Operates WordPress sites via a companion bridge while enforcing strict read-only boundaries on Search Console, GA4, and Google Ads running inside isolated child processes.
- Defense-in-depth governance:
- Mandatory
dev/prodenvironment tagging per site and Owner-only write-mode elevation. - Explicit
confirm: truegate for destructive mutations, batch simulation (dry-run) before execution, and redacted audit logging. - Anti-SSRF network guards and untrusted external content boundaries.
- Mandatory
- Cryptographic vault & ops: Credentials encrypted at rest via AES-256-GCM with an out-of-DB master key; Owner login hardened with
scrypt+ TOTP or Passkeys; web health dashboard andhubrecovery CLI deployed via Docker Compose and MariaDB.
Key Outcome
AI agents can query cross-client marketing telemetry and execute governed WordPress workflows over one connection without exposing underlying credentials—backed by 200+ automated tests.