WordPress MCP Server
Provides tools for AI assistants to read and edit WordPress pages/posts and ACF fields, manage media alt text, read/update SEO metadata, run AI Site Auditor reports, and create drafts or update content with safety restrictions.
Reads and updates Yoast SEO title and meta description fields on WordPress content, enabling AI-driven SEO audits and fixes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WordPress MCP Server Find pages missing meta descriptions and suggest one for each."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WordPress MCP Server
An MCP server that lets Claude (and other AI assistants) work with a WordPress site: read and edit pages, ACF fields, image alt text and SEO meta, and run AI audits with the AI Site Auditor plugin.
Instead of copying content between WordPress and a chat window, you can ask:
"Find pages without a meta description and suggest one for each."
"Which images on the Pricing page have no alt text? Write alt text and apply it after I approve."
"Create a draft landing page for our Zero Trust service, using the same block structure as the Cloud Security page."
Tools
Tool | What it does | Changes the site |
| Site name, connected user and roles, content types, AI Site Auditor status, server mode | No |
| Lists pages, posts or custom post types, with search and status filters | No |
| Reads a page as plain text or Gutenberg block markup, with ACF fields and SEO meta | No |
| Lists images and their alt text, can show only images without alt | No |
| SEO title and meta description (Yoast, Rank Math or AI Site Auditor) | No |
| Last AI Site Auditor report for a page | No |
| Runs AI Site Auditor on a page: scores, issues, suggested title, meta description and alt text | Saves a report only |
| Creates a page or post, always as a draft | Yes |
| Updates title, content, excerpt or ACF fields | Yes, drafts only by default |
| Saves the SEO title and meta description where the SEO plugin reads them | Yes |
| Saves alt text to the Media Library and to the | Yes |
There is also a prompt, seo_accessibility_review, that walks the assistant through reviewing recent pages and proposing fixes for approval.
Related MCP server: WordPress MCP Server
Safety by design
AI makes mistakes, so the server limits what it can do:
No delete tools. The server cannot delete posts, media or users.
New content is always a draft. A person publishes it in WordPress.
Published content is protected.
wp_update_contentrefuses to change published, scheduled or private posts unlessWP_MCP_ALLOW_PUBLISHED_EDITS=true.Read-only mode. With
WP_MCP_READ_ONLY=true, write tools are not registered at all.WordPress permissions apply. The server uses an Application Password of a real user, so it can do only what that user's role allows. An Editor account is enough for content work.
Revisions. WordPress keeps a revision of every content change, so it can be undone from the editor.
Tools carry MCP annotations (
readOnlyHint,destructiveHint), so clients can ask for confirmation before changes.
Requirements
Node.js 18 or newer
WordPress 5.6 or newer (Application Passwords)
Optional: AI Site Auditor 1.1 or newer for the audit, SEO and alt text tools
Setup
1. Install
git clone https://github.com/YOUR-USERNAME/wordpress-mcp-server.git
cd wordpress-mcp-server
npm installnpm install also builds the server into dist/.
2. Create an Application Password
In WordPress go to Users → Profile → Application Passwords, enter a name (for example "Claude MCP") and click Add New Application Password. Copy the password; it is shown only once.
Use a user with the lowest role that fits the job (Editor for content). If the Application Passwords section is missing on a local site without HTTPS, add this to wp-config.php:
define( 'WP_ENVIRONMENT_TYPE', 'local' );3. Connect it to your AI client
Claude Desktop: open Settings → Developer → Edit Config and add:
{
"mcpServers": {
"wordpress": {
"command": "node",
"args": ["/full/path/to/wordpress-mcp-server/dist/index.js"],
"env": {
"WP_URL": "http://my-site.local",
"WP_USER": "admin",
"WP_APP_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"
}
}
}
}Restart Claude Desktop. If it cannot find node, put the full path from which node in "command".
Claude Code:
claude mcp add wordpress \
-e WP_URL=http://my-site.local \
-e WP_USER=admin \
-e WP_APP_PASSWORD="xxxx xxxx xxxx xxxx xxxx xxxx" \
-- node /full/path/to/wordpress-mcp-server/dist/index.jsCursor and other MCP clients: use the same command, arguments and environment variables.
Configuration
Variable | Default | Description |
| required | Site URL, e.g. |
| required | WordPress username |
| required | Application Password (spaces are fine) |
|
| Only register read tools |
|
| Allow |
|
| Request timeout. Audits can take up to a minute |
Never commit real credentials. .env is in .gitignore; .env.example shows the format.
How it works
Transport: stdio. The AI client starts the server as a child process and talks JSON-RPC over stdin/stdout. Logs go to stderr so they never break the protocol.
WordPress API: the core REST API (
/wp/v2/...) for content and media, and the AI Site Auditor REST API (/aisa/v1/...) for audits, SEO meta and alt text. Requests use the?rest_route=URL form, so they work even with plain permalinks.Auth: HTTP Basic auth with an Application Password.
Input validation: every tool has a Zod schema; the MCP SDK turns it into JSON Schema for the model and validates the arguments before the handler runs.
Model-friendly output: content comes back as readable text (or raw blocks when the model is going to edit it), long content is cut at
max_chars, and audit reports are trimmed to what is useful.Errors the model can act on: a wrong password, a missing plugin, a protected published page or an unknown post type come back as clear messages that say what to do next, not stack traces.
Project structure
src/
├── index.ts Starts the MCP server over stdio, registers the review prompt
├── config.ts Reads and validates environment variables
├── wp-client.ts WordPress REST client: auth, errors, post type lookup
├── tools.ts Tool definitions and handlers
└── format.ts HTML to text, truncation, SEO length hints
test/
├── mock-wp.mjs Fake WordPress REST API
├── server.test.mjs End-to-end tests through a real MCP client over stdio
└── format.test.mjs Unit testsTests
npm testThe end-to-end tests start the built server exactly as Claude Desktop does (a child process over stdio), connect with the official MCP client, and run every tool against a fake WordPress REST API. They cover the safety rules (drafts only, protected published content, read-only mode), wrong credentials, a site that is down, and a site without AI Site Auditor.
Limitations and next steps
Gutenberg block markup is edited as a string. Elementor pages store content in
_elementor_data, which this server does not edit.ACF fields are available only when the field group has Show in REST API turned on.
Next: WooCommerce products, WPML/Polylang translations, a Streamable HTTP transport for remote use.
License
MIT
Available Tools
11 toolswp_audit_pageAudit a page with AI Site AuditorAIdempotent
Runs AI Site Auditor on one page: rule-based SEO and accessibility checks plus a Claude review, with scores, issues, a suggested SEO title and meta description, and alt text suggestions for images. Takes 20–60 seconds and uses the site's Anthropic API credits, so audit only the pages you need. It saves a report and does not change the page.
Inputs: id (required).
wp_create_draftCreate a draftA
Creates a new page or post. It is always saved as a draft, so a person reviews and publishes it in WordPress. content can be Gutenberg block markup or plain HTML. Returns the edit link.
Inputs: title (required), acf, slug, parent, +3 more.
wp_get_audit_reportRead the last audit reportARead-only
Returns the last AI Site Auditor report saved for a page, without running a new audit. Needs AI Site Auditor.
Inputs: id (required).
wp_get_contentRead a page or postARead-only
Reads one page or post: title, status, excerpt, content, ACF fields (when ACF exposes them to REST) and the SEO title and meta description (when AI Site Auditor is active). format "text" returns readable text; "blocks" returns the raw Gutenberg block markup, use it before editing content.
Inputs: id (required), format, max_chars, post_type.
wp_get_seoRead SEO title and meta descriptionBRead-only
Returns the SEO title and meta description saved for a post, from Yoast SEO, Rank Math or AI Site Auditor. Empty means not set. Needs AI Site Auditor.
Inputs: id (required).
wp_list_contentList pages and postsBRead-only
Lists pages, posts or custom post type items with ID, title, status, URL and last modified date. Use search to find items by text.
Inputs: page, order, search, status, +3 more.
wp_list_mediaList imagesARead-only
Lists images from the Media Library with their alt text. Set missing_alt_only to find images that need alt text (the filter applies to the current page of results, so check the next pages too).
Inputs: page, search, per_page, missing_alt_only.
wp_site_infoSite infoARead-only
Start here. Returns the site name and URL, the connected user and roles, available content types, whether AI Site Auditor is active, and what this server is allowed to change.
Inputs: no named parameters.
wp_update_alt_textUpdate image alt textAIdempotent
Sets alt text for an image. With post_id and AI Site Auditor active, it updates both the Media Library and every of that image inside the post content; otherwise only the Media Library. Describe what the image shows and why it matters on the page, under 125 characters, without 'image of'. Set decorative for purely decorative images (empty alt).
Inputs: attachment_id (required), post_id, alt_text, decorative.
wp_update_contentUpdate a page or postADestructiveIdempotent
Changes the title, content, excerpt or ACF fields of a page or post. Read it first with wp_get_content (format "blocks") and send the full new content, not a fragment. WordPress keeps a revision, so changes can be undone. Published content can only be changed if the server allows it.
Inputs: id (required), acf, title, content, +2 more.
wp_update_seoUpdate SEO title and meta descriptionAIdempotent
Saves the SEO title and/or meta description for a post where the site's SEO plugin reads them (Yoast SEO, Rank Math, or AI Site Auditor itself). Aim for a 30–60 character title and a 70–160 character description. Needs AI Site Auditor.
Inputs: id (required), title, description.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool maps to a distinct resource+action, and the description explicitly separates similar pairs (wp_get_audit_report reads a saved report vs wp_audit_page runs a new one). The only real friction is SEO overlap: wp_get_seo's output is also returned by wp_get_content, and wp_update_seo partially overlaps wp_update_content, though the descriptions clarify the split.
Strong, predictable wp_verb_noun convention throughout (wp_list_content, wp_get_content, wp_update_content, wp_list_media, wp_create_draft, etc.) in consistent snake_case. The lone deviation is wp_site_info, which is noun-only rather than verb-led, but it is still readable and self-evident.
Eleven tools sit squarely in the well-scoped range, and each covers a distinct slice of the content/SEO/audit workflow with no redundant entries. Read/write pairs are balanced rather than bloated.
The surface covers discovery, read, create, update, SEO metadata, media alt text, and auditing, which is solid lifecycle coverage for a review-then-publish workflow. Gaps remain (no delete/trash, no media upload, no taxonomy or publish operation), but publishing and deleting in WP admin appears intentional and agents can work around it.
Maintenance
Related MCP Connectors
WordPress for AI agents: researched posts, page edits and SEO fields as drafts you approve.
Manage a WordPress site from your AI assistant: read, search, propose edits, Search Console data.
WordPress SEO for your AI assistant: change plans, approval in chat, rollback. Needs TamRank PRO.
Get content approved & published faster: draft, send approval links and publish from your AI chat.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage WordPress sites through natural conversation, supporting post creation, content updates, site queries, and draft-to-publish workflows via the WordPress REST API.9MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to manage WordPress content, design, SEO, WooCommerce, and more through natural language commands.1004MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to read and edit WordPress sites over the REST API, including Divi 4, Divi 5, and Gutenberg content, with safety features like round-trip verification, draft-based editing, and dry-run previews.45MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to inspect a WordPress blog, reuse existing media and taxonomy, prepare and update drafts, and publish only after explicit human approval through a narrow, auditable interface.MIT