[Hosting] MCP server for environment debugging

1

Hi guys,

Been doing some performance testing on eatplaydrink.capetown across local/staging/prod (the site’s meaty enough that debugging is getting tedious). Right now it’s the usual: SSH in, run a WP-CLI command, check the output, run another one, compare results manually. Works, but it’s fragile.

Was thinking — if WPMU DEV exposed an MCP server (basically just a standardised interface for running WP-CLI, querying logs, checking plugin state, etc.), you could actually hook that directly into local dev tooling or AI debugging without handing over raw shell access. Schema validation, permission scoping, all built in.

Probably niche right now, but performance debugging and environment reconciliation are getting more common, and having a standardised interface would make it way easier to build better tooling on top.

Curious if it’s worth building into the Hub at some point.

  • Amin Nazemi
    • Staff

    Hi Marcel

    Trust you are doing well today.

    This feature could be useful, but I’m not sure if we can implement it on our server. Could you provide an example or share any source code related to MCP servers?

    I will bring your idea to the attention of our Development team; however, I can’t make any promises or provide estimated timelines at this moment.

    Best Regards,
    Amin

  • Marcel
    • WordPress Whisperer Wrangler

    Hi Amin,

    Thanks for getting back to me!

    To clarify what I’m asking for: MCP (Model Context Protocol) is an open standard, not something that needs to be built from scratch. It has official SDKs and a growing ecosystem of implementations. The best starting points are:

    – Spec and overview: https://modelcontextprotocol.io
    – TypeScript SDK: https://github.com/modelcontextprotocol/typescript-sdk
    – Python SDK: https://github.com/modelcontextprotocol/python-sdk

    In practical terms, what I’m suggesting is that WPMU DEV could expose some of the server management capabilities that already exist in the Hub (WP-CLI commands, log access, file operations, etc.) through an MCP server interface. This would allow AI development tools and automation agents to interact with WPMU DEV-hosted sites in a structured, permission-scoped way, rather than requiring raw SSH access.

    Example: AI-assisted performance diagnostics

    Imagine I’m investigating slow page load times on a site. With an MCP server exposed by WPMU DEV, I could ask Claude something like:

    “The homepage is taking 4+ seconds to load. Check the server logs for the last hour, run a WP-CLI cache flush, and tell me if there are any slow query warnings.”

    Claude would then, in sequence:

    1. Call the MCP tool to pull recent server/error logs
    2. Parse them and identify slow DB queries or cache misses
    3. Call the MCP tool to run wp cache flush (wp hosting clearcache all)
    4. Report back with findings and confirm the cache was cleared

    All of that happens with scoped permissions. Claude can only do what the MCP server explicitly exposes. It can’t rm -rf anything, can’t access other clients’ sites, can’t escalate beyond what the tool definitions allow. Every action is validated against the protocol schema before it executes.

    Right now, achieving the same thing requires either SSHing in manually and doing it yourself, or using the Hub2 interface. MCP turns it into a safe, repeatable, AI-callable operation.

    Happy to elaborate further if it would help the dev team understand the use case. This is a fairly new space but it’s moving fast, and I think WPMU DEV is well-positioned to be ahead of the curve here.

    Thanks again for passing it along!

    Marcel

  • Ali Ali
    • Staff

    Hi Marcel

    Thank you for submitting this feature request.

    Indeed, I find it interesting and good to have.

    I want to inform you that we added your inquiry as a feature request.
    This requires careful evaluation, planning, and development to ensure that it meets our quality standards as well as the specific needs of our users.

    Furthermore, we take into account the priority of requests from all our members and strive to maintain a balanced roadmap for new features and enhancements. This means that we need to evaluate the potential value and impact of each request against other ongoing projects and customer needs.

    While we cannot provide you with an exact timeline at this point, please be assured that we have noted your suggestion and it will be carefully considered in our ongoing development discussions.

    We appreciate your patience and understanding as we work to deliver the best possible experience for all our members.

    Best regards,
    Ali