WordPress MCP Server
Click on "Install 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 ServerCreate a new draft post titled 'Hello World' on my-site"
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
A Model Context Protocol (MCP) server that bridges AI assistants to WordPress, enabling natural-language management of posts, pages, media, comments, users, plugins, and settings across multiple sites simultaneously.
What is MCP?
The Model Context Protocol is an open standard that lets AI clients (like Claude Desktop and Claude Code) interact with external tools and data sources through a unified interface. This server implements MCP to expose WordPress REST API operations as callable tools, so an AI assistant can manage your WordPress sites through conversation.
AI Client (Claude) --MCP--> WordPress MCP Server --REST API--> WordPress SitesRelated MCP server: wp-mcp
Features
23 tools covering the full WordPress content lifecycle
Multi-site support -- manage multiple WordPress installations from a single server
Tag-based filtering -- organize sites by tag and run operations against groups
Bulk execution -- execute any tool across multiple sites in one call
Fleet health monitoring -- check reachability and status of all configured sites
Async architecture -- built on Python's asyncio for non-blocking API calls
Structured logging -- SQLite-backed request/response logging for auditability
Available Tools
Tool | Description |
| List all configured WordPress sites, optionally filtered by tag |
| Check the health/reachability of a single WordPress site |
| Check the health of all configured sites (or those matching a tag) |
| List posts on a WordPress site |
| Create a new post on a WordPress site |
| Update an existing post on a WordPress site |
| Delete a post on a WordPress site |
| List pages on a WordPress site |
| Create a new page on a WordPress site |
| Update an existing page on a WordPress site |
| Delete a page on a WordPress site |
| List media items on a WordPress site |
| Update a media item on a WordPress site |
| List comments on a WordPress site |
| Update a comment on a WordPress site |
| Delete a comment on a WordPress site |
| List categories on a WordPress site |
| Create a new category on a WordPress site |
| List tags on a WordPress site |
| Create a new tag on a WordPress site |
| List users on a WordPress site |
| List installed plugins on a WordPress site |
| Get WordPress site settings |
| Execute a tool across multiple sites (filtered by tag) |
Tech Stack
Python 3.10+
MCP SDK (
mcp) -- Model Context Protocol frameworkhttpx -- async HTTP client for WordPress REST API calls
aiosqlite -- async SQLite for structured logging
python-dotenv -- environment-based credential management
pytest / pytest-asyncio / respx -- testing with async support and HTTP mocking
Installation
git clone https://github.com/ad02/WP-MCP-project.git
cd WP-MCP-project
pip install -e .For development (includes test dependencies):
pip install -e ".[dev]"Configuration
1. Site Configuration
Copy the example and edit it to register your WordPress sites:
cp config/sites.json.example config/sites.json{
"sites": [
{
"id": "my-site",
"name": "My WordPress Site",
"url": "https://example.com",
"username": "mcp-agent",
"app_password_env": "SITE_MY_SITE_APP_PASSWORD",
"tags": ["production"],
"enabled": true
}
]
}2. Credentials
Copy the example environment file and add your WordPress Application Passwords:
cp config/.env.example config/.envThen edit config/.env:
SITE_MY_SITE_APP_PASSWORD=abcd efgh ijkl mnop qrst uvwxNote: Application Passwords require WordPress 5.6+ and HTTPS. Generate them from Users > Profile > Application Passwords in the WordPress admin dashboard.
3. Connect to Claude
Claude Desktop -- add to your claude_desktop_config.json:
{
"mcpServers": {
"wp-mcp-hub": {
"command": "python",
"args": ["-m", "src"],
"cwd": "/path/to/WP-MCP-project"
}
}
}Claude Code -- add to your .claude/settings.json or project config:
{
"mcpServers": {
"wp-mcp-hub": {
"command": "python",
"args": ["-m", "src"],
"cwd": "/path/to/WP-MCP-project"
}
}
}Usage
Once connected, your AI client can call any of the 23 tools through natural conversation:
"List all posts on my-site" -- calls
wp-list-posts"Create a draft post titled 'Hello World' on my-site" -- calls
wp-create-post"Check the status of all production sites" -- calls
wp-fleet-statuswith tag filter"Delete comment 42 on my-site" -- calls
wp-delete-comment"Run wp-list-plugins across all sites tagged 'production'" -- calls
wp-bulk-execute
Testing
The test suite uses pytest with async support and HTTP response mocking (respx):
pytest -vTests cover configuration loading, WordPress API client behavior, tool registration, connection handling, batch execution, and structured logging.
Project Structure
WP-MCP-project/
├── src/
│ ├── __init__.py
│ ├── server.py # MCP server entry point
│ ├── tools.py # 23 tool definitions and handlers
│ ├── wp_client.py # Async WordPress REST API client
│ ├── config.py # Site configuration loader
│ ├── connection.py # Connection/health checking
│ ├── batch.py # Multi-site bulk execution
│ └── logger.py # SQLite-backed structured logging
├── config/
│ ├── .env.example # Template for credentials
│ └── sites.json.example # Template for site registry
├── tests/ # pytest test suite
├── pyproject.toml
└── README.mdLicense
This project is licensed under the MIT License.
Author
Roland Dalaguit -- github.com/ad02
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables AI assistants to manage WordPress sites and create content with AI-generated featured images.172MIT
- Alicense-qualityCmaintenanceA Model Context Protocol server that turns WordPress sites into AI-operable surfaces by exposing CRUD primitives for posts, users, comments, and settings. It supports both local STDIO and remote HTTP transports, allowing AI assistants to manage content and site configuration directly.689MIT
- Alicense-qualityDmaintenanceMCP server for WordPress content management that provides a secure interface for AI assistants to interact with WordPress sites, enabling content creation, editing, and media management without destructive operations.MIT
- Alicense-qualityDmaintenanceComprehensive MCP server to manage WordPress sites via natural language, enabling content creation, SEO, and multi-site administration through AI tools like Claude Desktop.888MIT
Related MCP Connectors
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
WordPress MCP server: publish posts, AI images, SEO and full site management, self-hosted
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ad02/wordpress-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server