wp-mcp
Allows interaction with WooCommerce store data (products, orders, customers, etc.) through the WordPress REST API via the generic REST endpoint.
Provides tools to manage a WordPress site via the REST API: create, read, update, delete posts and pages; manage users, plugins, themes, media, categories, tags, and site settings; also supports calling any custom REST endpoint.
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., "@wp-mcp list my recent posts"
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.
wp-mcp — WordPress connector for Claude
Lets you chat with Claude and have it read and change a WordPress site directly.
Just want to use it, not develop it? Non-technical setup guide for Claude Desktop: INSTALL-DESKTOP.md. Download
dist/wp-mcp.mjs— it is a single self-contained file that needs only Node installed, nonpm install, no cloning.
Works with any self-hosted WordPress 5.6+. Nothing is installed on the site —
it uses the REST API that ships with core, authenticated with an Application
Password. Multiple sites can be configured; every tool takes an optional site.
Install
Requires Node 20+. Pick one of the two.
Option 1 — Single file (fastest, nothing to clone)
curl -fsSL -o ~/wp-mcp.mjs https://raw.githubusercontent.com/amolb1986/wp-mcp/main/dist/wp-mcp.mjs
claude mcp add wordpress -s user -- node ~/wp-mcp.mjsdist/wp-mcp.mjs is a self-contained bundle — no npm install, no dependencies.
Option 2 — Clone (for development, or to run the tests)
git clone https://github.com/amolb1986/wp-mcp.git
cd wp-mcp
npm install
claude mcp add wordpress -s user -- node "$(pwd)/src/index.js"Then connect a WordPress site
# Option 1 (single file) — pass credentials as environment variables:
claude mcp remove wordpress -s user
claude mcp add wordpress -s user \
-e WP_URL=https://example.com \
-e WP_USER=your-username \
-e WP_APP_PASSWORD="abcd efgh ijkl mnop qrst uvwx" \
-- node ~/wp-mcp.mjs
# Option 2 (cloned) — use the setup CLI, which supports multiple sites:
node bin/setup.js add mysite https://example.com your-username "abcd efgh ijkl mnop qrst uvwx"Restart Claude Code, then ask: "list the WordPress sites you can access".
Using Claude Desktop instead? See INSTALL-DESKTOP.md — no terminal needed beyond installing Node.
Related MCP server: AutoWP MCP Server
Setup details
1. Create an Application Password on the site
In wp-admin: Users → Profile → Application Passwords. Name it Claude,
click Add, and copy the generated password (shown once, looks like
abcd efgh ijkl mnop qrst uvwx).
This is not your login password. It can be revoked from the same screen at any time without changing your account, and it inherits your user's capabilities — so an Editor account can edit posts but not touch plugins.
2. Register the site
cd ~/wp-mcp
node bin/setup.js add mysite https://example.com your-username "abcd efgh ijkl mnop qrst uvwx"That verifies the connection immediately and tells you which role you connected as.
Add --read-only to make a site read-only. Useful if you ever point this at production:
node bin/setup.js add prod https://www.example.com me "…" --read-only3. Use it
The connector is registered with Claude Code as wordpress. Restart Claude Code
and ask things like:
list the draft pages on mysite read the "Pricing" page and rewrite the intro to be shorter create a draft post titled "Q3 update" with these bullets … which plugins are active on dev?
Managing sites
node bin/setup.js list # show configured sites
node bin/setup.js test # check every site connects
node bin/setup.js default mysite
node bin/setup.js remove prodCredentials live in ~/.wp-mcp/sites.json, written chmod 600.
Tools
Tool | What it does |
| List configured sites and test each connection |
| Show the authenticated user, roles, capabilities |
| Discover post types and taxonomies, including custom ones |
| List posts/pages/custom types, filtered and searched |
| Fetch one item with its raw block/HTML body |
| Search all content at once |
| Create content (defaults to draft) |
| Update fields on an existing item |
| Trash, or permanently delete with |
| Categories, tags, custom terms |
| Media library; upload from a local path or URL |
| Users and roles |
| List plugins, activate/deactivate |
| Installed themes |
| Read or change site settings |
| Call any REST route — WooCommerce, ACF, menus, plugin namespaces |
wp_rest is the escape hatch: anything the site exposes over REST is reachable
even if there is no dedicated tool for it. wp_rest with path: "" lists every
available route on the site.
Safety
Creating content defaults to draft, never publish.
Deleting trashes by default; permanent deletion needs
force: true.--read-only(orWP_MCP_READONLY=1) rejects every non-GET request.You are limited to whatever the WordPress user can do. For a dev site where Claude should manage plugins, use an Administrator account; to be conservative, use an Editor.
Environment variables
Variable | Purpose |
| Configure a single site without a config file |
| Name for that env-configured site (default |
| Alternate path to |
| Force read-only across all sites |
| Accept self-signed certificates (dev servers only) |
| Request timeout, default 30000 |
Troubleshooting
"Could not reach …" — the site is not reachable from this machine. If it is an
internal dev host, connect to the VPN first. Check with
curl -I https://example.com/.
Self-signed certificate — set WP_MCP_INSECURE_TLS=1.
401 incorrect_password — some hosts strip the Authorization header. Add to
.htaccess on the site:
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [E=HTTP_AUTHORIZATION:%1]Site behind HTTP Basic auth — that uses the same Authorization header as
Application Passwords and will conflict. Allowlist your IP, or exempt
/wp-json from basic auth.
rest_no_route — that route does not exist on the site. Run wp_rest with
path: "" to see what is actually available.
Tests
npm testtest/smoke.js spawns the real MCP server over stdio against a stub WordPress
REST API and exercises every tool, plus auth failure, unreachable host,
read-only mode, and sites without pretty permalinks. test/cli.js covers the
setup CLI. 71 checks total, no network access needed.
Available Tools
20 toolswp_create_contentCreate a post / pageA
Create new content on a site. Defaults to draft status so nothing goes live by accident — pass status 'publish' only when the user asked for it to be published.
Inputs: date, meta, site, slug, +11 more.
wp_create_termCreate a taxonomy termC
Create a new category, tag, or custom taxonomy term.
Inputs: name (required), site, slug, parent, +2 more.
wp_delete_contentDelete a post / pageA
Move an item to trash (recoverable). Pass force: true to delete permanently — that cannot be undone, so confirm with the user first.
Inputs: id (required), site, force, post_type.
wp_get_contentGet one post / pageA
Fetch a single item in full, including its raw block/HTML content — this is what you read before editing something.
Inputs: id (required), site, post_type.
wp_list_contentList posts / pages / custom contentA
List content of any post type with filters and search. Returns compact summaries, not full bodies — call wp_get_content for the full text of one item.
Inputs: page, site, slug, tags, +9 more.
wp_list_mediaList mediaB
List items in the media library, newest first.
Inputs: page, site, search, per_page, +1 more.
wp_list_pluginsList pluginsA
List installed plugins and whether each is active. Requires an administrator account.
Inputs: site.
wp_list_post_typesList post typesA
List the post types available on a site (post, page, and any custom types such as products or case studies), with the REST route to use for each.
Inputs: site.
wp_list_taxonomiesList taxonomiesA
List the taxonomies on a site (categories, tags, and custom taxonomies) and the REST base for each.
Inputs: site.
wp_list_termsList taxonomy termsA
List the terms in a taxonomy (e.g. all categories or tags), so you can map names to the numeric IDs that content tools expect.
Inputs: site, search, per_page, taxonomy.
wp_list_themesList themesA
List installed themes and which one is active.
Inputs: site.
wp_list_usersList usersB
List users on the site with their roles.
Inputs: site, roles, search, per_page.
wp_manage_pluginActivate or deactivate a pluginA
Change a plugin's active status. This takes effect on the live site immediately — confirm with the user before deactivating anything on a site people are using.
Inputs: plugin (required), status (required), site.
wp_restCall any REST endpointA
Call any WordPress REST route directly. Use this for anything the dedicated tools do not cover — WooCommerce, ACF, menus, or a plugin's own namespace. Discover routes by calling GET on an empty path.
Inputs: path (required), body, site, query, +1 more.
wp_searchSearch a siteA
Search across all searchable content on a site at once. Faster than listing each post type when you do not know where something lives.
Inputs: query (required), site, type, subtype, +1 more.
wp_settingsRead or change site settingsA
Read general site settings, or change them by passing updates. Affects the whole site — confirm before changing anything beyond a dev sandbox.
Inputs: site, updates.
wp_sitesList WordPress sitesA
List every WordPress site this connector is configured for, and test whether each one is reachable and the credentials work. Run this first when something is not working.
Inputs: no named parameters.
wp_update_contentUpdate a post / pageA
Update an existing item. Only the fields you pass are changed. Note that content replaces the whole body — read it with wp_get_content first if you are making a partial edit.
Inputs: id (required), date, meta, site, +12 more.
wp_upload_mediaUpload mediaA
Upload a file to the media library from a local path or a public URL, and get back the media ID to use as a featured image or in content.
Inputs: source (required), site, title, caption, +2 more.
wp_whoamiCurrent WordPress userA
Show the authenticated user on a site, including roles and capabilities. Use this to check what changes you are actually allowed to make.
Inputs: site.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools have clearly distinct purposes (e.g., wp_list_content vs wp_get_content, wp_list_taxonomies vs wp_list_terms), and descriptions clarify boundaries. However, wp_search and wp_list_content both serve content discovery, and wp_rest is a catch-all that can overlap with any dedicated tool, creating minor selection ambiguity.
The wp_ prefix is consistent, and the majority follow a verb_noun pattern (list_*, create_*, get_*, update_*, delete_*). A few exceptions like wp_whoami, wp_sites, wp_search, wp_settings, and wp_rest break the pattern, but the overall style remains readable and predictable.
With 20 tools, the server is on the heavier side but still within reason for a WordPress management tool. Each tool covers a distinct domain (content, terms, media, plugins, themes, settings), and the count is not bloated; the generic wp_rest tool could potentially have reduced the number, but the dedicated tools provide clear value.
Content CRUD is fully covered, and basic operations exist for terms, media, plugins, and settings. However, obvious gaps include term update/delete, media delete, user creation/update/delete, and theme activation. While wp_rest can fill these gaps, the dedicated tool surface is incomplete for a fully-featured WordPress management server.
Maintenance
Related MCP Connectors
Manage WordPress blogs and WooCommerce shops from Claude, ChatGPT, Cursor and other MCP apps.
Manage your WordPress site from ChatGPT or Claude: posts, WooCommerce, SEO, images and upkeep.
Read, write, translate and sync WordPress and Webflow blog articles from Claude.
Manage your WordPress site from your AI assistant: posts, pages, media, comments and WooCommerce.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables interaction with WordPress sites through the REST API, supporting content management for posts, pages, users, plugins, and custom post types with Application Password authentication.2,530 npm2MIT
- AlicenseBqualityDmaintenanceConnects Claude to WordPress sites through the REST API, enabling AI-assisted content creation, publishing, media management, user administration, and site maintenance tasks through natural language.4723MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI models like Claude to manage WordPress sites through the WordPress REST API, supporting operations like post creation, taxonomy management, and site configuration. It features secure authentication via Application Passwords and provides tools for comprehensive content administration.1MIT
- AlicenseCqualityDmaintenanceEnables Claude Code to read, edit, and manage WordPress pages, posts, shortcodes, and media via the WordPress REST API.8012 npm3MIT