Black Friday20% off ProPlans →
Back to Blog
Guide
November 22, 2026
4 min read

How to Let AI Post to WordPress Without Giving It the Keys

N
Nagaraj Dev
Plugin Developer & Creator

AI agents can now talk to WordPress. Claude Code, Claude Desktop, Cursor and others connect through MCP, the Model Context Protocol, and call tools on your site the way you would click buttons.

That is useful. It also raises a simple question: what are you letting the agent do?

Two kinds of connection

Most WordPress connections for AI agents fall into one of two groups.

Full access. The agent works through the WordPress REST API as a user, often with an Application Password. It can do what that user can do: publish, edit any post, delete pages, upload files, change settings. Some tools give the agent dozens of these abilities at once.

Narrow access. The agent gets a few tools built for one job, such as creating a draft. It cannot reach anything else, however it is asked.

Neither is wrong. A developer managing a test site may want full access. But for writing content, the job most people want an AI for, narrow access does everything you need and far less can go wrong.

What can go wrong with full access

Nothing dramatic is needed. Ordinary things are enough:

  • A misunderstood request. "Tidy up the old posts" can mean very different things to you and to the agent.
  • A confident mistake. An agent publishes a post with a wrong price, a wrong date or a made-up quote, and readers see it before you do.
  • Instructions hidden in content. An agent that reads a web page or a document can come across text written to steer it, and act on it. This is called prompt injection, and there is no complete fix for it yet.
  • A leaked credential. A key pasted in the wrong chat or committed to a repository is as powerful as the user it belongs to.

With full access, each of these can reach your live site. With a drafts-only connection, each one ends as a draft you read and delete.

A checklist before you connect an agent

Ask these questions about any WordPress AI connection:

  1. Can it publish? If yes, a person is no longer the last step.
  2. Can it edit or delete existing posts? If yes, a mistake can damage work that is already live.
  3. Is it off until you switch it on? A connection should not be open just because the plugin is installed.
  4. Does each app get its own key, and can you revoke one? One shared password for everything means one leak exposes everything.
  5. Does it respect WordPress roles? A key made by an Author should not be able to do what an Administrator can.
  6. Are there limits? A rate limit stops a looping agent, or a stolen key, from creating thousands of posts.
  7. Is there a record? You should be able to see what each key did, and when.
  8. Can it fetch from anywhere? If the agent can give your server a link to download, the server should refuse private and internal addresses, or the agent can use your site to look inside your own network.

How DocxToWP answers them

We built the DocxToWP WordPress MCP server in DocxToWP Pro 1.6.0 around that list.

QuestionDocxToWP Pro
Can it publish?No. Every import is a draft, whatever the request says.
Can it edit or delete?No. There are four tools: site info, import Markdown, import Word, and read back a draft.
Off by default?Yes. An administrator switches it on in DocxToWP Pro → AI Agents.
Per-app keys?Yes. Up to 25, each named, shown once, stored only as a fingerprint, revocable in one click.
WordPress roles?Yes. A key acts as the user who created it, and the same import restrictions apply as in the normal importer.
Limits?Yes. 60 requests a minute and 30 imports an hour per key, plus your Max File Size.
A record?Yes. Every AI import is in the Activity Log with the key's name and the source. No document content and no keys are stored there.
Fetching links?https only, public addresses only, every redirect checked, a 15-second timeout, and images checked by their actual bytes.

Each key can also read back only the drafts it created. It cannot browse your other posts.

Keep the content in the right place

One more thing worth knowing: with DocxToWP, the post goes from your AI app to your WordPress site, directly. It does not pass through DocxToWP's own servers, and we never see it. Your AI provider does see it, because it writes it. That is covered by their terms, not ours.

Review is the feature

A drafts-only connection can sound like a limitation. In practice, it is how most people already work with writers: the draft comes in, an editor reads it, and the editor publishes. The AI does the slow part, writing and formatting, and you keep the part that matters, deciding what goes live under your name.

To try it:

The AI agent connection is part of DocxToWP Pro, from $49/year.

AI writes the draft. You decide what goes live.

Connect Claude Code, Claude Desktop or Cursor to WordPress with a connection that can only create drafts. Off by default, per-app keys, rate limits and a full activity log.

See Pro plans

Frequently asked questions

It depends on what the connection lets the agent do. A connection that can only create drafts is low-risk: the worst case is a draft you delete. A connection with full access can publish, change or delete anything the user behind it can.

No. Every import is saved as a draft whatever the request says. There is no tool for publishing, editing, deleting, or changing settings.

Through DocxToWP, only what it needs to write a post: your post types, categories, tags, authors, which SEO plugin is active, and the drafts its own key created.

Someone with the key could create drafts, at most 30 an hour, and nothing else. Revoke the key in DocxToWP Pro → AI Agents → Keys and it stops working at once. The drafts are listed in the Activity Log with the key that sent them.

An Application Password gives the agent everything that WordPress user can do through the REST API. For an administrator, that is the whole site. Use one only if you need that much access, and make a separate, limited user for it.

Related Articles

Import your first Word document in under 60 seconds

Start free. Import a Word document without copy-pasting or rebuilding its formatting. No account, no credit card. Straight from WordPress.org.