
WordPress MCP Server
Gives Claude direct access to your WordPress database through the Model Context Protocol, so you can draft posts, manage users, moderate comments, and update settings without touching wp-admin. Built on wp-node, it exposes CRUD operations for posts, comments, users, terms, metadata, and site options. Runs as a local STDIO server for direct database connections or as an HTTP server with a CLI proxy for remote access. The server respects WordPress roles and capabilities, so an admin sees every tool while a subscriber gets limited access. Useful when you want to batch-create content, audit user permissions, or automate editorial workflows through conversation instead of clicking through the dashboard.
- tools
- 20
- auth
- Secret needed
- transport
- STDIO
- env vars
- 13
- last updated
- Jul 22, 2026
Tools
20 toolsPublic tool metadata for what this MCP can expose to an agent.
wp_list_postsList WordPress posts with optional filters. Returns post ID, title, status, date, and categories. Use to browse existing content or find posts by keyword.3 params
List WordPress posts with optional filters. Returns post ID, title, status, date, and categories. Use to browse existing content or find posts by keyword.
per_pagenumbersearchstringstatusstringwp_get_postGet a single WordPress post with full content, metadata, categories, and tags. Use to inspect post content before editing.1 params
Get a single WordPress post with full content, metadata, categories, and tags. Use to inspect post content before editing.
idnumberwp_create_postCreate a new WordPress post. Provide title and content (HTML). Optionally set status (draft/publish), categories, and tags.5 params
Create a new WordPress post. Provide title and content (HTML). Optionally set status (draft/publish), categories, and tags.
categoriesarraycontentstringstatusstringtagsarraytitlestringwp_update_postUpdate an existing WordPress post. Change title, content, status, categories, or tags.6 params
Update an existing WordPress post. Change title, content, status, categories, or tags.
categoriesarraycontentstringidnumberstatusstringtagsarraytitlestringwp_delete_postDelete a WordPress post. Moves to trash by default.1 params
Delete a WordPress post. Moves to trash by default.
idnumberwp_list_pagesList WordPress pages. Returns page ID, title, status, and parent page. Use to browse site page structure.2 params
List WordPress pages. Returns page ID, title, status, and parent page. Use to browse site page structure.
per_pagenumberstatusstringwp_get_pageGet a single WordPress page with full content and metadata.1 params
Get a single WordPress page with full content and metadata.
idnumberwp_create_pageCreate a new WordPress page. Provide title and content (HTML). Optionally set parent page for hierarchy.4 params
Create a new WordPress page. Provide title and content (HTML). Optionally set parent page for hierarchy.
contentstringparentnumberstatusstringtitlestringwp_update_pageUpdate an existing WordPress page.4 params
Update an existing WordPress page.
contentstringidnumberstatusstringtitlestringwp_delete_pageDelete a WordPress page.1 params
Delete a WordPress page.
idnumberwp_list_mediaList media files in the WordPress library. Returns file URLs, types, and metadata.2 params
List media files in the WordPress library. Returns file URLs, types, and metadata.
media_typestringper_pagenumberwp_delete_mediaPermanently delete a media file from WordPress.1 params
Permanently delete a media file from WordPress.
idnumberwp_list_commentsList comments on WordPress posts. Filter by post ID.2 params
List comments on WordPress posts. Filter by post ID.
per_pagenumberpostnumberwp_create_commentCreate a new comment on a WordPress post.4 params
Create a new comment on a WordPress post.
author_emailstringauthor_namestringcontentstringpostnumberwp_update_commentUpdate or moderate a comment. Change content or approval status.3 params
Update or moderate a comment. Change content or approval status.
contentstringidnumberstatusstringwp_delete_commentPermanently delete a comment.1 params
Permanently delete a comment.
idnumberwp_list_categoriesList all WordPress categories with post counts.2 params
List all WordPress categories with post counts.
per_pagenumbersearchstringwp_list_tagsList all WordPress tags with post counts.2 params
List all WordPress tags with post counts.
per_pagenumbersearchstringwp_list_usersList WordPress users with their roles.2 params
List WordPress users with their roles.
per_pagenumbersearchstringwp_get_site_infoGet WordPress site information: name, description, URL, timezone, and available features.1 params
Get WordPress site information: name, description, URL, timezone, and available features.
_fieldsstringSponsors
Configuration
LOCAL_USERNAME*WordPress username to assume for capability checks
WP_DB_HOST*WordPress database host
WP_DB_PORTdefault: 3306WordPress database port
WP_DB_NAME*WordPress database name
WP_DB_USER*WordPress database user
WP_DB_PASSWORD*secretWordPress database password
LOCAL_MULTISITEdefault: falseEnable WordPress multisite mode
LOCAL_DEFAULT_BLOG_IDdefault: 1Default blog ID for multisite
LOCAL_DEFAULT_SITE_IDdefault: 1Default site ID for multisite
LOCAL_SSL_ENABLEDdefault: falseEnable SSL for database connection
LOCAL_SSL_CA_FILEPATHPath to SSL CA certificate file
LOCAL_SSL_CERT_FILEPATHPath to SSL certificate file
LOCAL_SSL_KEY_FILEPATHPath to SSL key file
Readme
wp-mcp
@rnaga/wp-mcp is a Model Context Protocol (MCP) server for WordPress that turns your site into an AI-operable surface. By exposing WordPress CRUD primitives to clients like Claude Desktop, an assistant can draft a post on demand, refine it collaboratively, and publish it straight into your database—no trip through wp-admin required.
Here are a few common scenarios this unlocks:
- Draft, revise, and publish posts directly from MCP clients such as Claude Desktop.
- Inspect WordPress users, their roles, and capabilities to audit site permissions or generate access reports.
Built on top of @rnaga/wp-node, the server ships with a curated MCP toolset covering posts, users, comments, terms, revisions, metadata, options, and site settings. The MCP server can manage the following database tables/resources:
Details
- Repository
- github.com/rnaga/wp-mcp
- Package
@rnaga/wp-mcp- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active