WordPress MCP Server
Planned integration for WooCommerce functionality (currently on roadmap).
Enables full WordPress site management through the REST API, including creating, reading, updating, and deleting posts, managing pages and media, querying plugins, and controlling content workflow from draft to published status.
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., "@WordPress MCP Server create a draft post about our new product launch"
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.
WordPress MCP Server
Manage your WordPress site with AI. Create posts, update content, and query your site—all through natural conversation.
What is this?
WordPress MCP is a Model Context Protocol server that connects AI assistants like Claude Code and Cursor to your WordPress site via the REST API.
Instead of switching between your terminal and WordPress admin, just ask:
You: "Create a draft post about our new product launch"
You: "Show me all posts from last week"
You: "Update post 42 to published status"
You: "What plugins are installed on my site?"Related MCP server: WordPress MCP Server
Demo
Here's a real conversation showing the draft-to-publish workflow:
You: Create a draft post titled "Why AI Tools Matter for Content Creators"
Claude: I'll create that draft post for you.
✓ Created draft post:
ID: 142
Title: Why AI Tools Matter for Content Creators
Status: draft
Link: https://your-site.com/?p=142
You: Add some content about productivity and automation
Claude: I'll update the post with content about productivity and automation.
✓ Updated post 142 with new content.
You: Show me my draft posts
Claude: Here are your draft posts:
| ID | Title | Date |
|-----|-------------------------------------------|------------|
| 142 | Why AI Tools Matter for Content Creators | 2026-01-03 |
| 138 | Upcoming Features Preview | 2026-01-02 |
| 135 | Team Update Q1 | 2025-12-28 |
You: Publish post 142
Claude: ✓ Published! Your post is now live at:
https://your-site.com/2026/01/03/why-ai-tools-matter-for-content-creators/Features
Full CRUD for Posts - Create, read, update, and delete posts
Content Management - List pages, media, and plugins
Search & Filter - Find posts by status, keyword, or date
Draft Workflow - Create drafts, review, then publish
Secure Auth - Uses WordPress Application Passwords
Quick Start
1. Install
git clone https://github.com/gaupoit/wordpress-mcp.git
cd wordpress-mcp
uv sync2. Create a WordPress Application Password
Go to WordPress Admin → Users → Profile
Scroll to Application Passwords
Enter a name (e.g., "Claude Code") and click Add New
Copy the generated password (you won't see it again!)
3. Configure Claude Code
Add to your Claude Code MCP config (~/.claude.json):
{
"mcpServers": {
"wordpress": {
"command": "uv",
"args": ["run", "--directory", "/path/to/wordpress-mcp", "wordpress-mcp"],
"env": {
"WORDPRESS_URL": "https://your-site.com",
"WORDPRESS_USER": "your-username",
"WORDPRESS_APP_PASSWORD": "xxxx-xxxx-xxxx-xxxx"
}
}
}
}4. Restart Claude Code
# Quit and restart
claudeVerify with /mcp - you should see "wordpress" listed.
Available Tools
Reading Content
Tool | Description |
| Get site name, URL, timezone |
| List posts (filter by status, search) |
| Get single post with full content |
| List all pages |
| List media library items |
| List installed plugins |
Writing Content
Tool | Description |
| Create a new post (draft or published) |
| Update title, content, status, or excerpt |
| Move to trash or permanently delete |
Example Workflows
Blog Publishing
You: "Create a draft post titled 'Getting Started with AI' with an intro paragraph"
You: "Show me my draft posts"
You: "Update post 123 - add a conclusion section"
You: "Publish post 123"Content Audit
You: "List all draft posts"
You: "Search posts for 'outdated'"
You: "What plugins are currently active?"Bulk Operations
You: "Show me all posts with 'beta' in the title"
You: "Get the full content of post 45, 46, and 47"
You: "Move posts 45 and 46 to trash"Environment Variables
Variable | Required | Description |
| Yes | Your WordPress site URL (e.g., |
| Yes | WordPress username |
| Yes | Application password (not your login password!) |
Requirements
Python 3.10+
WordPress 5.6+ (for Application Passwords)
WordPress REST API enabled (default on most sites)
Troubleshooting
"Authentication failed"
Verify your Application Password is correct (no spaces)
Ensure the user has permission to access REST API
Check if a security plugin is blocking REST API
"Connection refused"
Verify
WORDPRESS_URLincludeshttps://Check if your site is behind a firewall/VPN
Server not appearing in Claude Code
Run
/mcpto see error messagesTest manually:
cd wordpress-mcp && uv run wordpress-mcpRestart Claude Code completely (
/quitthenclaude)
Roadmap
Categories and tags management
User management
Custom post types support
Media upload
Comments management
WooCommerce integration
Contributing
Contributions welcome! Please open an issue first to discuss what you'd like to change.
License
MIT
Built with FastMCP and the WordPress REST API.
Available Tools
9 toolswp_create_postA
Create a new WordPress post.
Args:
title: The title of the post.
content: The content/body of the post (supports HTML and Gutenberg blocks).
status: Post status - 'draft', 'publish', 'pending', 'private'. Default is 'draft'.
excerpt: Optional excerpt/summary of the post.
Returns:
Created post with id, title, status, date, and link.
Inputs: title (required), content (required), status, excerpt.
wp_delete_postA
Delete a WordPress post.
Args:
post_id: The ID of the post to delete.
force: If False (default), moves to trash. If True, permanently deletes.
Returns:
Confirmation with id, deleted status, and previous post info.
Inputs: post_id (required), force.
wp_get_mediaA
Get media items from WordPress media library.
Args:
per_page: Number of items to return (1-100). Default is 10.
media_type: Filter by type - 'image', 'video', 'audio', or 'application'.
Returns:
List of media items with id, title, url, mime_type, and alt_text.
Inputs: per_page, media_type. Returns: result
wp_get_pagesA
Get pages from WordPress.
Args:
per_page: Number of pages to return (1-100). Default is 10.
search: Search term to filter pages by title/content.
Returns:
List of pages with id, title, status, slug, and link.
Inputs: per_page, search. Returns: result
wp_get_pluginsA
Get installed plugins from WordPress. Requires authentication.
Args:
status: Filter by status - 'active', 'inactive', or 'all'. Default is 'all'.
Returns:
List of plugins with name, plugin slug, status, version, and description.
Inputs: status. Returns: result
wp_get_postA
Get a single post by ID with full content.
Args:
post_id: The ID of the post to retrieve.
Returns:
Post with id, title, content (raw), excerpt, status, date, slug, and link.
Inputs: post_id (required).
wp_get_postsA
Get posts from WordPress.
Args:
status: Post status filter - 'publish', 'draft', or 'all'. Default is 'publish'.
per_page: Number of posts to return (1-100). Default is 10.
search: Search term to filter posts by title/content.
Returns:
List of posts with id, title, status, date, slug, excerpt, and link.
Inputs: status, per_page, search. Returns: result
wp_site_infoB
Get WordPress site information.
Returns:
Site info including name, description, url, home, gmt_offset, and timezone.
Inputs: no named parameters.
wp_update_postA
Update an existing WordPress post.
Args:
post_id: The ID of the post to update.
title: New title (optional).
content: New content (optional).
status: New status - 'draft', 'publish', 'pending', 'private', 'trash' (optional).
excerpt: New excerpt (optional).
Returns:
Updated post with id, title, status, date, and link.
Inputs: post_id (required), title, content, status, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Every tool has a clearly distinct purpose targeting specific WordPress resources and actions. There is no ambiguity between tools like wp_get_post (single post retrieval), wp_get_posts (multiple posts listing), wp_get_pages (pages listing), and wp_get_media (media library access). Each tool's name and description make its unique function immediately apparent.
All tools follow a perfect wp_verb_noun naming pattern throughout the entire set. The structure is consistently snake_case with clear action verbs (create, delete, get, update) followed by specific nouns (post, media, pages, plugins, site_info). This predictable naming convention makes the tool set highly readable and discoverable.
With 9 tools, this server is well-scoped for WordPress content management. Each tool earns its place by covering essential WordPress operations: post CRUD (create, get, update, delete), content listing (posts, pages, media), plugin management, and site information. The count is neither too sparse nor bloated, providing comprehensive coverage without overwhelming complexity.
The tool set provides excellent coverage for WordPress content management with complete post lifecycle operations and key content retrieval functions. Minor gaps exist: there's no media upload/creation tool, no page creation/update/delete operations, and no user management tools. However, the core post workflow is fully covered, and agents can work effectively with the provided surface.
Maintenance
Related MCP Connectors
Manage your WordPress site from your AI assistant: posts, pages, media, comments and WooCommerce.
Manage your WordPress site from ChatGPT or Claude: posts, WooCommerce, SEO, images and upkeep.
Manage WordPress blogs and WooCommerce shops from Claude, ChatGPT, Cursor and other MCP apps.
Manage a WordPress site from your AI assistant: read, search, propose edits, Search Console data.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with WordPress sites through the REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.MIT
- 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 gradedqualityDmaintenanceEnables AI assistants to interact with WordPress blog systems for automated content management and publishing via the WordPress REST API.1MIT
- AlicenseNot gradedqualityDmaintenanceConnects WordPress sites to AI agents, enabling content management through natural language commands via the WordPress REST API.21 npm2MIT