home / mcp / wordpress author mcp server
Provides role-based WordPress management via MCP with semantic operations and document sessions.
Configuration
View docs{
"mcpServers": {
"aaronsb-wordpress-mcp": {
"command": "node",
"args": [
"/path/to/wordpress-mcp/src/server.js",
"--personality=author"
],
"env": {
"WORDPRESS_URL": "https://your-site.com",
"WORDPRESS_USERNAME": "your-username",
"WORDPRESS_APP_PASSWORD": "your-app-password"
}
}
}
}You are using a WordPress Author MCP Server that translates your natural language intents into WordPress actions, while keeping editing flows clean, secure, and version-controlled. It provides personality-based tool mappings, semantic operations, and a document session workflow so you can draft, edit, publish, and manage WordPress content with AI-assisted productivity.
You interact with the WordPress Author MCP Server through a client that supports MCP. Choose the Author personality to get full authoring capabilities, including drafting, editing, publishing, scheduling, and media management. Work in document sessions to pull content into an editing session, make precise line-based edits or larger replacements, and then push changes back to WordPress in a single update.
Prerequisites for running the MCP server include having Node.js and a functioning WordPress site with appropriate credentials. You will also need the WordPress Feature API plugin to enable semantic operations beyond the basic REST API.
Step-by-step commands you will run to set up locally:
# Clone the MCP server repository
git clone https://github.com/aaronsb/wordpress-mcp
cd wordpress-mcp
# Install dependencies
npm install
# Run the interactive setup (helps configure credentials and environment)
npm run setupThe server relies on credentials and environment configuration to connect to your WordPress site. You should provide WordPress site URL, username, and an application password. You can store credentials globally or per-project using an .env file.
WordPress always enforces its own permissions. The MCP server presents tools based on the chosen personality, but WordPress will deny actions outside the actual user permissions. For example, a Contributor trying to publish will receive a 403 from WordPress, and the MCP server will surface a helpful message. All edits and operations respect WordPress roles and capabilities.
Use document sessions to pull content for editing, view or edit content in a structured way, and sync changes back to WordPress in one update. The system supports line-based editing for precise changes, context-aware search/replace, and automatic format conversion between Markdown and WordPress HTML.
If you encounter authentication errors, verify that your WordPress Application Password is correct and that the WordPress site URL matches the credential configuration. Ensure the WordPress Feature API plugin is active so semantic operations are available.
Create a draft post ready for drafting content before publishing
Create a draft page to begin static content with hierarchy potential
Edit an existing draft post or page
Submit a draft for editorial approval
View editor comments and feedback on drafts or published posts
Fetch posts or pages into an editing session using an opaque document handle
Read a pulled document with line numbers for precise editing
Replace content at a specific line number within the editing session
Insert content at a precise line position in the document session
Replace a range of lines in the document session
Context-aware search and replace within a document session
Fallback string replacement within the document session
Push all local edits back to WordPress in a single update action
List active editing sessions for reference
Manually end an editing session and cleanup resources
Create and publish a new post immediately (authorial publishing)
Create and publish a new page, with optional parent hierarchy
Publish, schedule, or manage the publication workflow for content
Upload and manage media assets in WordPress
Move your own posts or pages to trash
Perform bulk actions on multiple posts/pages (trash, restore, delete, change status)
View and manage all posts and pages in the site
Review pending posts and comments for editorial process
Approve or reject comments and manage moderation
Create, update, and organize categories