Skip to main content

WPWriter for WordPress

WPWriter's official MCP server lets agents generate content and manage a self-hosted WordPress site. The WPWriter for WordPress card with the Official badge connects to https://mcp.wpwriter.com/mcp over streamable HTTP. The URL is pre-filled.

Signing in authorizes the WPWriter account. Connecting the WordPress site is a separate step on that site. WordPress.com and Jetpack sites use the separate WordPress card. See Connect WPWriter to your AI assistant.

Connect in Willow​

Willow registers itself with WPWriter. There is no OAuth app to create and no redirect URL to allow.

  1. Go to MCP Servers → + Add MCP server, open the WPWriter for WordPress card with the Official badge, and click + Use.
  2. Keep Willow OAuth under Sign-in and sign in with a WPWriter account.

API key​

Generate an MCP API key in the WPWriter dashboard. Keys start with wpw_ and are shown only once. See MCP reference.

In Willow, choose API key under Sign-in. Paste the key alone. Leave the header as Authorization and the scheme as Bearer.

Connect the WordPress site​

The site needs WordPress 4.7 or newer. Enter the site URL exactly as the site serves it, including www. See Requirements and Connect your WordPress site.

  1. Ask the assistant to connect the WordPress site, and give it the site address.
  2. Open the approval link it returns. The link opens that site's WordPress admin.
  3. Click Yes, I approve.

The site needs HTTPS, Application Passwords left enabled, and permalinks set to anything except Plain.

Connector plugin​

Install the WPWriter Connector plugin when the approval link cannot complete, or when you want its SEO fields for Yoast, Rank Math, and AIOSEO. The plugin also connects when the host blocks the Authorization header.

  1. In WordPress, go to Plugins → Add New, search for WPWriter, install it, and activate it.
  2. Go to Settings → Permalinks, choose Post name, and save.
  3. Open the WPWriter menu. Under Connect New Account, name the connection and click Generate Pairing Code. The code expires after 10 minutes and works once. Generate it while logged in as a user who can edit posts and pages. An administrator account can reach content, plugins, SEO, and design.
  4. Paste the site URL and the pairing code into the assistant. Or open the WPWriter dashboard, click Add Site, and paste them there.

AI provider key​

Content generation needs an OpenAI, Claude, or Gemini key in WPWriter. Go to Settings → AI Models → Add New Model, choose the provider, and paste that provider's key. You pay the provider directly. See AI Providers & API Keys.

MCP calls use the same subscription quotas as the WPWriter web UI. The free tier includes 1 site, 15 AI post generations, and 20 AI images. See MCP reference.

Troubleshooting​

The approval link fails. Confirm HTTPS, Application Passwords, and permalinks other than Plain. Then use the connector plugin. If REST routes fail, open Settings → Permalinks and click Save Changes to rebuild them.

401 Unauthorized. The API key must start with wpw_ and still be active. Generate a new key in the WPWriter dashboard.

Content generation fails. Add an AI provider key in WPWriter. Ask the assistant to run check_readiness. It reports what is missing.

The pairing code is rejected. Generate a new code. Each code lasts 10 minutes and can be used once.

Additional resources​