WordPressMCP Server
Provides tools for managing WordPress content through the REST API, including operations for posts, pages, users, plugins, and custom post types with support for creating, reading, updating, and deleting content.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
WordPressMCP Server
Minimal MCP server that exposes WordPress REST tools over stdio. It supports
posts, pages, categories, tags, users, plugins, and dynamic CPT routing via
type/post_type.
Requirements
Node.js 18+ (fetch API required)
WordPress Application Password
Optional: MCP REST Helper plugin for Yoast SEO meta via REST: https://github.com/jahzlariosa/mcp-rest-helper
Related MCP server: WordPress MCP Server
Setup
Install dependencies:
npm installCreate a
.envfile (see.env.example):
WP_URL="https://your-site.example"
WP_USER="your-username"
WP_APP_PASS="xxxx xxxx xxxx xxxx xxxx xxxx"
# Optional image generation
IMAGE_GEN_PROVIDER="openai"
OPENAI_API_KEY="your-openai-api-key"
OPENAI_BASE_URL="https://api.openai.com/v1"
OPENAI_IMAGE_MODEL="gpt-image-1"Run the server:
npm startMCP Host Config (config.toml)
If your AI host uses a config.toml to register MCP servers, add an entry like:
[mcp.servers.WordPressMCP]
command = "node"
args = ["/absolute/path/to/server.mjs"]
env = { WP_URL = "https://your-site.example", WP_USER = "your-username", WP_APP_PASS = "xxxx xxxx xxxx xxxx xxxx xxxx" }If your host does not support inline env, configure it to load .env or set
WP_URL, WP_USER, and WP_APP_PASS in the process environment.
Notes
The server uses the stdio transport, so run it under your MCP host.
For custom post types, pass
typeorpost_typewith the CPT slug or REST base. Example:type: "announcement"routes to/wp-json/wp/v2/announcement.create_postalso supportsstatusoverrides likeannouncement:draftto target a CPT without a separatetypearg.Taxonomy tools are available for categories and tags (
list_*,get_*,create_*,update_*,delete_*).list_postsacceptscategories,tags,categories_exclude, andtags_excludefilters;create_post/update_postacceptcategoriesandtags.Media tools are available for uploads (
upload_media) and inspection (list_media,get_media). Providedata_base64, adata_url, orsource_url(optionally withsource_headers), then use the returned mediaidasfeatured_media(orfeatured_image) oncreate_post,update_post,create_page, andupdate_page.Optional:
generate_imageuses the configured provider (currently OpenAI) to return image data or URLs that can be fed intoupload_media. Useresponse_format: "b64_json"orresponse_format: "url"as needed.Yoast SEO meta can be set via a
yoastobject oncreate_post,update_post,create_page, andupdate_page(title, description, focus keyphrase, keyphrase synonyms, related keyphrases, canonical, robots noindex/nofollow, and OG/Twitter overrides). Premium fields require Yoast Premium to be active.Premium Yoast fields available in
yoast:focuskw_synonyms,focuskeywords,keywordsynonyms(provide the raw Yoast string/JSON format).
WordPress Helper Plugin
If you need to update Yoast SEO fields through the REST API, install the MCP REST Helper plugin from https://github.com/jahzlariosa/mcp-rest-helper. It registers the Yoast meta keys (including premium keyphrase fields when Yoast Premium is active) for all REST-enabled post types so MCP updates can persist.
You can install it from GitHub:
Download the zip from https://github.com/jahzlariosa/mcp-rest-helper/releases and unzip it into
wp-content/plugins/.Or clone directly:
git clone https://github.com/jahzlariosa/mcp-rest-helper.gitintowp-content/plugins/mcp-rest-helper.
Sponsorship
If this project helps, consider supporting it:
Project Layout
server.mjs: entrypoint, tool registrationsrc/config.mjs: env parsing and validationsrc/wpClient.mjs: WordPress REST clientsrc/wpUtils.mjs: query/form helpers and post-type parsingsrc/postTypeResolver.mjs: cached CPT resolversrc/tools/: tool registration modules
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Manage your WordPress site from your AI assistant: posts, pages, media, comments and WooCommerce.
Manage WordPress blogs and WooCommerce shops from Claude, ChatGPT, Cursor and other MCP apps.
WordPress plugin exposing 60 MCP tools via OAuth 2.1: posts, pages, media, users, comments and SEO.
Manage your WordPress site from ChatGPT or Claude: posts, WooCommerce, SEO, images and upkeep.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with WordPress sites through REST APIs, allowing programmatic management of posts, users, comments, categories, and tags with secure authentication.2950MIT
- 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
- AlicenseNot gradedqualityBmaintenanceEnables interaction with WordPress sites through the WordPress REST API via natural language, supporting single and multi-site management, content and taxonomy operations, media uploads, and more.159 npm100GPL 3.0
- AlicenseAqualityDmaintenanceEnables to interact with WordPress sites through the WordPress REST API, fetching posts, pages, categories, and site information.73MIT