wp-content-mcp
Reads and writes content on a WordPress site through its standard REST API, authenticated with an Application Password. Provides tools to find, read, create, update and trash posts, pages and custom post types (drafts by default), perform precise single-passage text replacements without disturbing block markup, list and create categories and tags by name, upload media such as images, video, audio and PDFs (e.g. to set featured images), report the current user's roles and permissions, and call arbitrary REST endpoints.
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.
wp-content-mcp
MCP server for WordPress content — let an AI assistant (Claude Desktop, Claude Code, Cursor, …) write blog posts and news, edit existing pages, manage categories and tags and upload images, through natural language.
No plugin needed. Works with any WordPress 5.6+ site over the standard REST API, authenticated with a built-in Application Password.
Drafts by default. New content is saved as a draft; the assistant only publishes when you ask it to.
Precise edits.
replace_textchanges one sentence or paragraph and leaves the rest of the page — including block markup — untouched.Runs locally over stdio. Your credentials stay on your machine; there is no telemetry and no proxy.
Install
pip install wp-content-mcpRequires Python 3.10+.
Related MCP server: WordPress MCP Server
Create an Application Password
In wp-admin go to Users → Profile → Application Passwords, enter a name (e.g. "Claude") and click Add New Application Password. Copy the password that appears; WordPress shows it only once.
Use an account with the Editor role (or Author, if it should only manage its own posts) rather than an administrator.
export WP_URL=https://example.com
export WP_USERNAME=your-username
export WP_APP_PASSWORD="abcd efgh ijkl mnop qrst uvwx"WP_URL must use https://. For a local test site, set WP_ALLOW_HTTP=1.
Register in your MCP client
Claude Code:
claude mcp add wordpress \
-e WP_URL=https://example.com \
-e WP_USERNAME=your-username \
-e WP_APP_PASSWORD="abcd efgh ijkl mnop qrst uvwx" \
-- wp-content-mcpClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"wordpress": {
"command": "wp-content-mcp",
"env": {
"WP_URL": "https://example.com",
"WP_USERNAME": "your-username",
"WP_APP_PASSWORD": "abcd efgh ijkl mnop qrst uvwx"
}
}
}
}Tools
Tool | What it does |
| Site name, logged-in user, roles and permissions |
| Find posts or pages (search, status, paging) |
| Read one post or page including its editable content |
| New post or page — draft unless you ask to publish |
| Change title, content, status, excerpt, slug, categories, tags, featured image or date |
| Replace one passage in a post or page |
| Move to trash (recoverable) |
| List categories or tags |
| Upload an image, video, audio file or PDF |
| Call any other REST endpoint |
Categories and tags are passed by name; missing ones are created.
Custom post types work too: pass their REST base as post_type.
Example prompts
"Write a news post about our new opening hours in the category News, as a draft."
"On the Contact page, change the phone number to 020 123 4567."
"Show me all draft posts and publish the one about the summer sale."
"Upload ~/Pictures/team.jpg with alt text 'Our team' and use it as the featured image of post 128."
How this differs from WordPress/mcp-adapter
The official mcp-adapter is a
framework for developers: it is a plugin that exposes abilities that other
plugins register, via WP-CLI or an HTTP proxy. wp-content-mcp is a ready-made
content tool: nothing to install on the site, ten tools that cover everyday
editing work, set up in two minutes.
Development
pip install -e ".[dev]"
pytestLicense
AGPL-3.0-or-later, see LICENSE. A commercial license is available, see LICENSE-COMMERCIAL.md.
WordPress is a registered trademark of the WordPress Foundation. This project is not affiliated with or endorsed by the WordPress Foundation.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage your WordPress site from your AI assistant: posts, pages, media, comments and WooCommerce.
WordPress for AI agents: researched posts, page edits and SEO fields as drafts you approve.
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.
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
- 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
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with WordPress blog systems for automated content management and publishing via the WordPress REST API.1MIT