322 Bogert Ave, Ridgewood, NJ 07450 (201)562-7052
Menu
Call Me
Meeting
Close

Case Study: Connecting WordPress to AI Agents Without Opening the Door

Developer typing on a laptop with website layout panels connected to an AI assistant

WordPress runs a very large share of the web, and AI agents such as Claude can now read, draft, publish and maintain content when they are connected to a site. The question for any business is not whether this is possible, but whether it can be done without opening a door you cannot close. This case study explains how we built WP MCP, a free, open-source WordPress plugin that connects a site to AI agents, and the security model behind it. It ends with the questions any company should ask before connecting AI to its systems.

Key takeaways

  1. Most ways of connecting WordPress to AI require app passwords, OAuth flows, packages, proxies or cloud middleware.
  2. WP MCP makes an existing site ready for AI agents in minutes, with no third-party services in the trust chain.
  3. Every connection is time-limited, scoped, revocable and tied to the device that first uses it.
  4. Read-only is the default; admin tools and code editing are off unless explicitly enabled.
  5. The same principles apply to any AI integration your company considers.

The problem

The request was simple: “Can I connect Claude to our WordPress site?” The honest answer was “not easily”. Most paths at the time required some combination of application passwords, OAuth flows, npm packages, helper proxies, configuration files and cloud middleware. For someone who just wants an AI assistant to help run a site they already host, that is a wall. And every extra component is another place where access can leak.

The approach: a self-hosted connector

WP MCP is a WordPress plugin that makes an existing site ready for the Model Context Protocol (MCP), the open standard AI assistants use to work with outside tools. Setup takes four steps:

  1. Install the plugin.
  2. Generate a short-lived connection link in the WordPress admin.
  3. Paste the link into Claude.
  4. You are connected.

No proxy, no Node.js, no configuration files and no cloud middleware. Once connected, the AI can read content, search posts, browse media, review comments, draft articles and help maintain the site, within the permissions the site owner grants.

The moment the AI audited its creator

The first prototype took under an hour. Then the AI assistant helping to build it flagged the obvious risk: anyone who got hold of the connection link could use it. That observation shaped everything that followed. Instead of treating security as a feature to add later, we rebuilt the access model around it.

The security model

Every connection is limited by design

  • Time-limited: each connection expires after a window the site owner sets.
  • Scoped: a connection can be read-only or include admin tools, and acts as a specific WordPress user with that user’s permissions.
  • Revocable: the owner can end any connection at any time from the WordPress admin.
  • Tied to one device: a connection is locked to the IP address that first uses it, so a leaked link is far less useful.

Safe defaults

  • Read-only is the default. Writing anything requires a deliberate choice.
  • Admin tools are opt-in.
  • Code editing is off entirely unless the site owner explicitly enables it.

When code editing is on

Editing stays restricted to the active theme, with a list of files that can never be touched and a list of file types that can; file size limits; protection against path tricks and symbolic links; automatic backups before every change; and automatic rollback if a change would break the site with a PHP error.

Control stays with the site owner

The site administrator hands out links, sets the time window and revokes access from inside WordPress. There are no third-party services in the trust chain: the connection runs between the AI client and the site itself.

What it looks like in practice

We use this approach on our own projects. Content updates, metadata reviews, broken-link checks and structured data audits that used to take hours of clicking happen in a conversation, while every change remains visible, reversible and tied to a named user. People still decide what gets published. The AI does the repetitive work and flags issues, and the human reviews and approves.

Why a professional still matters

AI can now write working code in minutes, and “vibe coding” (letting AI build software while you describe what you want) is fun for a weekend experiment. For a business with real users, real leads and real money, the question is who will know what to do when something breaks. The most important skill in any technical profession is not building; it is understanding why something broke and how to fix it, and telling working code from a ticking time bomb. WP MCP exists because someone who understands both WordPress and AI designed the guardrails. That judgment is what businesses need around every AI integration.

What to demand from any AI integration

Whether you use our plugin, another connector or a vendor’s platform, ask these questions before you connect AI to your website, CRM or files:

  • Does access expire, or does it last forever by default?
  • Can access be limited to what the task needs, and revoked instantly?
  • Is read-only the default, with explicit approval for changes?
  • Are actions logged and tied to a named user?
  • Are there backups and a way to undo changes?
  • Which third parties sit between the AI and your system, and what do they store?
  • Who in your company approves new connections, and who reviews them?

If a vendor cannot answer these questions clearly, that is your answer.

Frequently asked questions

Is WP MCP free?

Yes. It is free and open source. You can review the code, use it and suggest improvements on GitHub.

Can the AI publish content without approval?

Only if the site owner grants a connection with write permissions. The default is read-only, and we recommend human review before anything is published.

AI connected to your systems should be secure by default and accountable by design. If you want help connecting AI to your website or business tools safely, see our AI Agents & Automation and WordPress Development services, and our AI Governance & Training work for the policies around them.

Published:

Updated:

    Schedule a Meeting

    Preferred date