DEV Community

Renato Marinho
Renato Marinho

Posted on

Why you shouldn't give your AI agent 'Publish' access to WordPress

I've spent enough time debugging broken API integrations and cleaning up botched deployments to know that features are often just liabilities in disguise.

When people talk about AI agents, they usually focus on the magic: the ability to browse the web, write code, or execute tasks. But as a senior engineer, my first instinct isn't 'how cool is this?' It's 'what is the blast radius if this agent hallucinates or ignores its system prompt?'

This is particularly dangerous when you start connecting LLMs to your CMS. If you give an AI agent full access to your WordPress instance via a generic, over-privileged MCP server, you aren't just giving it a writing tool; you're giving it the power to delete pages, modify plugins, or—worst of all—publish unvetted, hallucinated garbage directly to your live audience at 3 AM.

I built the WordPress Post Drafter specifically because I wanted to eliminate the manual friction of content creation without accepting that level of risk.

The Friction Problem

The current workflow for anyone using Claude or Cursor for content is a repetitive loop: You prompt the AI, it generates 1,500 words of SEO-optimized text, you copy it, you open WordPress, you create a new post, you paste it, you fix the formatting, and then you hit publish. It's a 'copy-paste nightmare' that breaks your flow every single time.

You want an automation, but most automation solutions are too heavy or too dangerous. You don't want to install some bloated, third-party plugin just to handle one API call, and you definitely don't want to configure complex OAuth flows for a simple task.

A Surgical, Zero-Trust Approach

The WordPress Post Drafter does exactly one thing: it takes content generated by the AI and saves it directly into your WordPress as a Draft.

I approached this with a zero-trust mindset. We aren't building a 'WordPress Manager'; we are building a surgical, one-way funnel.

Technically, there is no custom plugin required. That was a non-negotiable for me. Instead, the server leverages the native WordPress REST API (/wp-json/wp/v2/posts). The only setup you need is generating an Application Password—a feature that has been built into WordPress core since version 5.6. It's lightweight, it's standard, and it doesn't add to your site's attack surface.

The Security 'Secret' (That isn't a marketing claim)

If you look at the code for this MCP, you won't find complex permission logic or granular role management. Instead, you'll find something much more effective: hardcoded containment.

The payload is strictly locked to status: 'draft'.

I don't care how much the AI agent tries to circumvent this or how much it insists that the post is ready for the world—the server literally cannot execute a 'publish' command. Even if the LLM sends a request with status: 'publish', the MCP logic forces it back to a draft. This creates an absolute barrier between your AI-generated content and your live audience. You maintain 100% editorial control. The agent can act as a ghostwriter, but you remain the editor.

This is how we approach tool design at Vinkius. Whether it's our larger framework or a single MCP server, the goal is to provide 'safe hands.' When an agent has access to your WooCommerce store or your CRM via an MCP, security cannot be optional. It has to be baked into the execution context.

The Workflow for Engineers and Creators

You can essentially turn Claude or Cursor into a semi-autonomous SEO engine. You can prompt it to:

  1. Research a topic using its internal knowledge (or via other MCPs).
  2. Structure an SEO-optimized outline.
  3. Write the full HTML/Markdown content.
  4. Execute the create_wordpress_post_draft tool.

Within seconds, you'll see a new entry in your WordPress dashboard. You open it, review the formatting, check the facts, and click 'Publish' yourself. The friction is gone, but the safety net remains intact.

You can find this specific server here: https://vinkius.com/mcp/wordpress-post-drafter

If you are looking for more production-grade integrations that follow this same principle of containment and high performance, check out our full catalog at Vinkius.

Don't automate your responsibility away. Automate the boring parts so you can focus on the parts that actually matter.


MCPs are the music of AI Agents. We built the catalog. Discover Vinkius MCP Catalog.

Top comments (0)